query
stringlengths
7
33.1k
document
stringlengths
7
335k
metadata
dict
negatives
listlengths
3
101
negative_scores
listlengths
3
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
This method was generated by MyBatis Generator. This method corresponds to the database table d_notifica_priorita
@Select({ "select", "priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, ", "data_creazione, data_modifica, data_cancellazione", "from d_notifica_priorita", "where priorita_id = #{prioritaId,jdbcType=INTEGER}" }) @Results({ @Result(column = "priorita_id", property = "prioritaId", jdbcType = JdbcType.INTEGER, id = true), @Result(column = "priorita_cod", property = "prioritaCod", jdbcType = JdbcType.VARCHAR), @Result(column = "priorita_desc", property = "prioritaDesc", jdbcType = JdbcType.VARCHAR), @Result(column = "validita_inizio", property = "validitaInizio", jdbcType = JdbcType.TIMESTAMP), @Result(column = "validita_fine", property = "validitaFine", jdbcType = JdbcType.TIMESTAMP), @Result(column = "utente_operazione", property = "utenteOperazione", jdbcType = JdbcType.VARCHAR), @Result(column = "data_creazione", property = "dataCreazione", jdbcType = JdbcType.TIMESTAMP), @Result(column = "data_modifica", property = "dataModifica", jdbcType = JdbcType.TIMESTAMP), @Result(column = "data_cancellazione", property = "dataCancellazione", jdbcType = JdbcType.TIMESTAMP) }) DNotificaPriorita selectByPrimaryKey(Integer prioritaId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tList<DNotificaPriorita> selectAll();", "@Insert({ \"insert into d_notifica_priorita (priorita_cod, priorita_desc, \", \"validita_inizio, validita_fine, \",\n\t\t\t\"utente_operazione, data_creazione, \", \"data_modifica, data_cancellazione)\",\n\t\t\t\"values (#{prioritaCod,jdbcType=VARCHAR}, #{prioritaDesc,jdbcType=VARCHAR}, \",\n\t\t\t\"#{validitaInizio,jdbcType=TIMESTAMP}, #{validitaFine,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{utenteOperazione,jdbcType=VARCHAR}, #{dataCreazione,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{dataModifica,jdbcType=TIMESTAMP}, #{dataCancellazione,jdbcType=TIMESTAMP})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"prioritaId\")\n\tint insert(DNotificaPriorita record);", "public List<PrioridadTicket> obtenerTodasLasPrioridades() {\n return this.prioridadTicketFacade.findAll();\n }", "@Update({ \"update d_notifica_priorita\", \"set priorita_cod = #{prioritaCod,jdbcType=VARCHAR},\",\n\t\t\t\"priorita_desc = #{prioritaDesc,jdbcType=VARCHAR},\",\n\t\t\t\"validita_inizio = #{validitaInizio,jdbcType=TIMESTAMP},\",\n\t\t\t\"validita_fine = #{validitaFine,jdbcType=TIMESTAMP},\",\n\t\t\t\"utente_operazione = #{utenteOperazione,jdbcType=VARCHAR},\",\n\t\t\t\"data_creazione = #{dataCreazione,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_modifica = #{dataModifica,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_cancellazione = #{dataCancellazione,jdbcType=TIMESTAMP}\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(DNotificaPriorita record);", "@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true and p.juzgado=?1 and p.prioritario = true\")\r\n\tPage<ProcesoUsuario> findAllByPrioritario(Juzgado juzgado, Pageable pageable);", "public void setPriorite(java.lang.String priorite) {\r\n\t\tthis.priorite = priorite;\r\n\t}", "public PrioritaetEntity findByNr(int prioID) throws Exception;", "public List<PrioritaetEntity> findAll() throws Exception;", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public java.lang.String getPriorite() {\r\n\t\treturn priorite;\r\n\t}", "public java.lang.Long getId_cita_previa();", "@Delete({ \"delete from d_notifica_priorita\", \"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint deleteByPrimaryKey(Integer prioritaId);", "public int getIdPrestatario() {\n return idPrestatario;\n }", "public Empleado(String nombre, Prioridad prioridad) {\n\t\tthis.nombre = nombre;\n\t\tthis.prioridad = prioridad;\n\t}", "public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }", "public Set<Prenotazione> getPrenotazione() {\n return prenotazione;\n }", "public int getPrioritate() {\n return prioritate;\n }", "public PrioridadTicket obtenerPrioridadTicket(int codigo) {\n return this.prioridadTicketFacade.find(codigo);\n }", "public String empleadosPorPrioridad(ArrayList<Empleado> prioridad){\n String aux = \"los empleados son: \\n\";\n for (int i = 0; i < prioridad.size(); i++) {\n aux += \"nombre: \" + prioridad.get(i).getNombre() + \" -\" +\" Identificacion: \"+ prioridad.get(i).getIdentificacion() \n + \"\\n\";\n }\n return aux;\n }", "public void setPrioritate(int value) {\n this.prioritate = value;\n }", "@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();", "public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }", "private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "Date getPriorDate();", "public void savePrioritaet(String bezeichnung) throws Exception;", "public static void changePriority(Patient p, int prior){\r\n \t\tpatientArray.remove(p);\r\n \t\tlistModel.add(prior, p.getFirstName());\r\n \t}", "public ListaPorMenuPK() {\r\n\t}", "public void addProcesso(ProcessoPrioridade p) {\r\n\t\tthis.getEscalonadores().get(p.getPrioridade()-1).addProcesso(p);\r\n\t\tfor (int i=p.getPrioridade(); this.getEscalonadores().size()> i; i++) {\r\n\t\t\tif (this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\tthis.getEscalonadores().get(i).executandoVaiParaEspera();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getEscalonadores().get(p.getPrioridade()-1).temProcessosExecutando()){\r\n\t\t\tfor (int i=p.getPrioridade()-2 ; 0 <= i; i--) {\r\n\t\t\t\tif(this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\t\tthis.getEscalonadores().get(p.getPrioridade()-1).executandoVaiParaEspera();\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 List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}", "public List<Prevision> getListTipoPrevisionByFK(Integer Aux);", "public final void prependGestiona(gest_proyectos.Proyecto succ) {\n prependSuccessor(getGestionaRelationship(getMtDatabase()), succ);\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 }", "@DISPID(123)\r\n\t// = 0x7b. The runtime will prefer the VTID if present\r\n\t@VTID(118)\r\n\tint predecessorID();", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}", "public void editPrioritaet(int prioID, String bezeichnung) throws Exception;", "public TableModel GetPagineOpera (int cod, String Opera) throws SQLException {\n\t\t\n Connection dbConnection = model.connectionDataBase.ConnectionDB.Connect();\n\n // Execute the query and get the ResultSet\n PreparedStatement stmt = dbConnection.prepareStatement(\"SELECT * FROM pagine_opera INNER JOIN opera ON pagine_opera.cod_opera = opera.cod WHERE opera.cod = ? AND opera.nome = ?\");\n stmt.setInt(1, cod);\n stmt.setString(2, Opera);\n \n ResultSet rs = stmt.executeQuery();\n TableModel tm = DbUtils.resultSetToTableModel(rs);\n dbConnection.close();\n\n return tm;\n\t\t\n\t}", "public int guardarPreInscripcion( preInscripcion p ){\r\n\t\tString sql_guardar;\r\n int numFilas=0;\r\n \r\n sql_guardar=\"INSERT INTO pre_inscripcion VALUES ('\" +\r\n p.getNombreEvento() + \"', '\" + p.getNombreParticipante() + \"', '\" + \r\n \t\tp.getCedula() + \"', '\" + p.getfecha() + \"')\";\r\n \r\n try{\r\n Connection conn= fachada.getConnetion();\r\n Statement sentencia = conn.createStatement();\r\n\r\n numFilas = sentencia.executeUpdate(sql_guardar); \r\n System.out.println(\"up \" + numFilas);\r\n return numFilas;\r\n \r\n }\r\n catch(SQLException e){\r\n System.out.println(e); \r\n }\r\n catch(Exception e){ \r\n System.out.println(e);\r\n }\r\n return -1;\r\n\t}", "public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public String preInsert() {\n\t\tSystem.out.println(\"--------preInsert\");\n\t\tsetProducto(new Producto());\n\t\tbanderaModif = \"false\";\n\t\treturn \"altaProd.xhtml?faces-redirect=true\";\n\t}", "public List<Ticket> obtenerTodosLosTicketsPorUnaPrioridad(Usuario usuario, int prioridad) {\n PrioridadTicket prioridadTicket = this.prioridadTicketFacade.find(prioridad);\n if (prioridadTicket != null) {\n return usuario != null ? this.ticketFacade.obtenerTicketsPorPrioridadDePropietario(usuario, prioridadTicket) : this.ticketFacade.obtenerTodosLosTicketsPorPrioridad(prioridadTicket);\n } else {\n return null;\n }\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "public TdOficioAfectacionPK() {\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic Integer restaPrestadoEventual() {\n\t\treturn dao.restaPrestadoEventual();\r\n\t}", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "private RicercaSinteticaPreDocumentoEntrataResponse ricercaSinteticaPreDocumentoEntrata(int numeroPagina){\n\t\tRicercaSinteticaPreDocumentoEntrata reqRSPD = req.getRicercaSinteticaPreDocumentoEntrata();\t\t\n\t\tParametriPaginazione pp = new ParametriPaginazione(numeroPagina);\n\t\tpp.setElementiPerPagina(100);\n\t\treqRSPD.setParametriPaginazione(pp);\n\t\treqRSPD.setRichiedente(req.getRichiedente());\t\t\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = executeExternalService(ricercaSinteticaPreDocumentoEntrata, reqRSPD);\n\t\treturn resRSPD;\n\t}", "public void getSetVersionRowPresuTipoProyectoWithConnection()throws Exception {\n\t\tif(presutipoproyecto.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((presutipoproyecto.getIsDeleted() || (presutipoproyecto.getIsChanged()&&!presutipoproyecto.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=presutipoproyectoDataAccess.getSetVersionRowPresuTipoProyecto(connexion,presutipoproyecto.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!presutipoproyecto.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tpresutipoproyecto.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpresutipoproyecto.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "@Override\n\tpublic ObservableList<prescription> findBypfID(int a) {\n\t\t// TODO Auto-generated method stub\n\t\tprescription p=null;\n\t\t\n\t\tObservableList<prescription> prescription =FXCollections.observableArrayList();\n\t\tString query = \"SELECT * FROM pmohan_prescription WHERE fid = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{ \n\t\t\tSystem.out.println(a);\n\t\t\t statement.setInt(1, a);\n\t\t\t ResultSet resultSet = statement.executeQuery();\n\t\t\t while(resultSet.next()){\n\t\t\t\t p= new prescription();\n\t\t\t\t p.setDocId(resultSet.getInt(3));\n\t\t\t\t p.setMedcineName(resultSet.getString(4));\n\t\t\t\t p.setMedicinePurpose(resultSet.getString(5));\n\t\t\t\t p.setEat(resultSet.getString(6));\n\t\t\t\t p.setDocName(docName(resultSet.getInt(3)));\n\t\t\t\t p.setPname(resultSet.getString(7));\n\t\t\t\t prescription.add(p);\n\t\t }\n\t\t }\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn prescription;\n\t}", "@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }", "public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }", "public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }", "List<AdvertBundleEntity> findAllRequiredNewProforma();", "public Local_Prova getByIdLocal_Prova(Integer id);", "public TreeSet<PrestamoFila> CargarDatos () {\n this.conexion.ConectarBD();\n \n String consulta = \"SELECT * FROM prestamos ORDER BY idprestamo\";\n this.rst = this.conexion.ConsultaBD(consulta);\n try {\n //Pasamos los datos recogidos de la BD al TreeSet\n while (this.rst.next()){\n PrestamoFila pf = new PrestamoFila(rst.getInt(\"IdPrestamo\"),rst.getInt(\"IdSocio\"),rst.getInt(\"IdLibro\"),rst.getDate(\"FechaInicio\"),rst.getDate(\"FechaFin\")); \n this.tPrestamos.add(pf);\n }\n } catch (SQLException e){\n throw new MisException(\"Error al cargar los datos del Prestamo.\\n\"+e.toString());\n \n }\n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n return this.tPrestamos;\n }", "public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}", "public String getPriInicio () {\n return PriInicio;\n }", "private void setupPriorForSingleMotif(NumericSequenceData priorsequence, int motiflength, String useforprior) {\n int seqLength=priorsequence.getSize();\n if (!useforprior.equals(\"sum\")) {\n boolean maskStart=(useforprior.equals(\"relativeStartValue\") && priorsequence.getStrandOrientation()==Sequence.REVERSE);\n if (!maskStart) {\n for (int j=seqLength-motiflength+1;j<seqLength;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n } else {\n for (int j=0;j<motiflength-1;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n }\n }\n normalizePrior(priorsequence);\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "@Override\r\n\tprotected void onPreLoadData() throws Exception {\n\r\n\t\tList<Linea> listaLinee = new LineaAPI().lista(getEmfShared(), getCurrentUser());\r\n\t\tlinee = SelectItemConverter.convert(listaLinee);\r\n\r\n\t\tlong idRinnovo = getParamObjectAsLong(\"idRinnovo\");\r\n\t\tif (idRinnovo > 0) {\r\n\t\t\telemento = new ContrattoAPI().rinnovoPrepara(getEmfShared(), getCurrentUser(), idRinnovo);\r\n\t\t} else {\r\n\t\t\taddErrorMessage(\"Impossibile trovare il contratto da rinnovare.\");\r\n\t\t}\r\n\r\n\t}", "public Integer getCodTienda();", "VentaJPA obtenerVenta(int comprobante);", "@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);", "public ArrayList<TypeProjet> listeInscr() throws RemoteException{\r\n\t\t\tArrayList<TypeProjet> list = new ArrayList<TypeProjet>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t String requete = \"select * from typeprojet where t_cursus='\" + _etudiant.getCursus() +\r\n\t\t \t\t\t\t \"' and CURRENT_DATE >= t_debinscr AND CURRENT_DATE <= t_fininscr AND NOT EXISTS \" +\r\n\t\t \t\t\t\t \" (select a_idgroupe From association where a_idgroupe in (select ga_idgroupe from \" +\r\n\t\t \t\t\t\t \" groupeassoc, groupe where ga_idetudiant = \" + _etudiant.getId() + \" AND g_idtype = \" +\r\n\t\t \t\t\t\t \"t_id and ga_idgroupe = g_id) and a_idprojet in (select p_id from projet where \" +\r\n\t\t \t\t\t\t \" p_idType = t_id))\";\r\n\t\t System.out.println(\"requete : listeInscr\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t TypeProjet tp = null;\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tint id = Integer.parseInt(data.getColumnValue(\"t_id\"));\r\n\t\t\t\tString nom = data.getColumnValue(\"t_nom\");\r\n\t\t\t\tString deb_inscr = data.getColumnValue(\"t_debInscr\");\r\n\t\t\t\tString fin_incr = data.getColumnValue(\"t_finInscr\");\r\n\t\t\t\tString deb_projet = data.getColumnValue(\"t_debProjet\");\r\n\t\t\t\tString fin_projet = data.getColumnValue(\"t_finProjet\");\r\n\t\t \ttp = new TypeProjetImpl (id,nom,deb_inscr,fin_incr,deb_projet,fin_projet);\r\n\t\t \tlist.add(tp);\r\n\t\t }\r\n\t\t System.out.println(\"_____________________________________________\");\r\n\t\t for (TypeProjet i : list)\r\n\t\t \tSystem.out.println(i.get_nom());\r\n\t\t System.out.println(\"______________________________________________\");\r\n\t\t \r\n\t\t\treturn list;\r\n\t\t}", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "public void setId_cita_previa(java.lang.Long newId_cita_previa);", "public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }", "public ParametroPorParametroPK() {\r\n\t}", "private int obtem_primeiro(int numero)\n {\n for (Map.Entry i : janela.entrySet()) if(((Estado)i.getValue()).getNumero_sequencia() == numero && !((Estado) i.getValue()).isEstado()) return (int) i.getKey();\n return 0;\n }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "public ConsultaPrimaNotaIntegrataGSAModel() {\n\t\tsetTitolo(\"Consulta prima nota integrata\");\n\t}", "private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "@Optional\n @ImportColumn(\"LAGEKL\")\n Property<Double> lageklasse();", "private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "public List<TonKho> getTonKhoHienTai(Integer dmtMaSo, Integer khoMaso, String priority) {\n try {\n //System.out.println(\"-------Begin getTonKhoHienTai-----------------\");\n List<TonKho> lstTonHt = new ArrayList<TonKho>();\n String sSQLLIFO_FIFO = \"SELECT TK.* FROM TON_KHO TK \"\n + \"LEFT JOIN PHIEU_NHAP_KHO P ON TK.PHIEUNHAPKHO_MA = P.PHIEUNHAPKHO_MA \"\n + \"INNER JOIN (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo +\" GROUP BY T.TONKHO_MALIENKET) TKMAX ON TK.TONKHO_MA = TKMAX.TONKHO_MA \"\n + \"WHERE TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n String sSQL_UUTIENCONLAI = \"SELECT TK.* FROM TON_KHO TK, (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo + \" GROUP BY T.TONKHO_MALIENKET) TKMAX \"\n + \"WHERE TK.TONKHO_MA = TKMAX.TONKHO_MA AND TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n\n //Dua vao do uu tien, de lay lo thuoc thich hop va so sanh so luong neu vua du thi hien thi thong tin cua lo thuoc do\n if(priority.equals(\"1\")){\n\t\t/*1:HSD: lo nao gan het han cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_NAMHANDUNG, TK.TONKHO_THANGHANDUNG, TK.TONKHO_NGAYHANDUNG\";\n }else if(priority.equals(\"2\")){\n\t\t/*2:LIFO: thuoc nao nhap vao kho sau cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN desc\";\n }else if(priority.equals(\"3\")){\n\t\t/*3:FIFO: thuoc nao nhap vao truoc cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN asc\";\n }else if(priority.equals(\"4\")){\n\t\t/*4:TONTHAP: uu tien so luong ton it xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON asc\";\n }else if(priority.equals(\"5\")){\n\t\t/*5:TONCAO: uu tien so luong ton nhieu xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON desc\";\n }else if(priority.equals(\"6\")){\n\t\t/*6:DONGIATHAP: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA asc\";\n }else{\n\t\t/*= 7: DONGIACAO: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA desc\";\n }\n\n\n if(priority.equals(\"2\") || priority.equals(\"3\")){\n Query q = getEm().createNativeQuery(sSQLLIFO_FIFO,TonKho.class);\n lstTonHt = q.getResultList();\n }else{\n Query q = getEm().createNativeQuery(sSQL_UUTIENCONLAI,TonKho.class);\n lstTonHt = q.getResultList();\n }\n \n if(lstTonHt != null && lstTonHt.size() > 0){\n //System.out.println(\"-------End getTonKhoHienTai-----------------\"+ lstTonHt.size());\n return lstTonHt;\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n return null;\n }\n return null;\n }", "public int getLBR_NotaFiscal_ID();", "@Override\n\t\tpublic Nota getNota(int notaid) {\n\n\t\t\tNota nota = null;\n\t\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\tTransaction transaction = null;\n\n\t\t\ttry {\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"from Nota where NOTAS_ID = ' \"\n\t\t\t\t\t\t+ notaid + \"'\");\n\t\t\t\tSystem.out.println(query);\n\t\t\t\tnota = (Nota) query.uniqueResult();\n\t\t\t\t\n\t\t\t\tif (nota != null) {\n\t\t\t\t\ttransaction.commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"EEEEEEEEOOOOOOOOOO\");\n\t\t\t\tSystem.out.println(nota.getNota());\n\n\t\t\t} catch (HibernateException e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t\treturn nota;\n\t\t}", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}", "DefaultTableModel tmInfinitivos(String idVerbo){\n\t\tVerboBean veb=gerenteVerbos.seleccionaUno(idVerbo);\n\t\tDefaultTableModel tmInf=(DefaultTableModel) modeloInfinitivosBasico(veb);\n\t\treturn tmInf;\n\t}", "@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "public String getTitulo(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, titulo FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\treturn (rs.next()) ? rs.getString(2) : \"\";\n\t\t});\n\t}", "public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}", "public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "@Override\n\t\tpublic String getParentPKFieldName() {\n\t\t\treturn null;\n\t\t}" ]
[ "0.775917", "0.7037533", "0.5958674", "0.5858647", "0.5765662", "0.56940526", "0.5523874", "0.5441337", "0.5397019", "0.5394868", "0.5390534", "0.5357795", "0.53425974", "0.5277967", "0.5251993", "0.5209151", "0.5205091", "0.51829994", "0.5169328", "0.5144679", "0.5123523", "0.51104975", "0.50943345", "0.5036335", "0.50257826", "0.5011511", "0.49796697", "0.4924013", "0.4910666", "0.48992237", "0.48762998", "0.48688507", "0.48519504", "0.48498324", "0.48268217", "0.48254603", "0.4824368", "0.4813559", "0.48117125", "0.47935212", "0.47849414", "0.4757435", "0.4740486", "0.47310796", "0.47202417", "0.47126487", "0.47000262", "0.4690984", "0.46870542", "0.4683479", "0.46756166", "0.4654672", "0.46502373", "0.4644845", "0.4636095", "0.46345678", "0.46319747", "0.462394", "0.4617763", "0.46164477", "0.46159935", "0.46129152", "0.46091396", "0.4605144", "0.46030965", "0.4586339", "0.4585837", "0.45691332", "0.45683894", "0.4565734", "0.4562171", "0.45617926", "0.45578557", "0.45547712", "0.45531186", "0.45429227", "0.45427746", "0.45412287", "0.45412287", "0.45391744", "0.45367596", "0.4533611", "0.4533183", "0.45328975", "0.4525373", "0.45131093", "0.4497075", "0.44955066", "0.4491501", "0.44870368", "0.4480826", "0.44793838", "0.4468304", "0.44675425", "0.44651017", "0.44649997", "0.4463238", "0.4458679", "0.4456177", "0.4450111" ]
0.7581865
1
This method was generated by MyBatis Generator. This method corresponds to the database table d_notifica_priorita
@Select({ "select", "priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, ", "data_creazione, data_modifica, data_cancellazione", "from d_notifica_priorita" }) @Results({ @Result(column = "priorita_id", property = "prioritaId", jdbcType = JdbcType.INTEGER, id = true), @Result(column = "priorita_cod", property = "prioritaCod", jdbcType = JdbcType.VARCHAR), @Result(column = "priorita_desc", property = "prioritaDesc", jdbcType = JdbcType.VARCHAR), @Result(column = "validita_inizio", property = "validitaInizio", jdbcType = JdbcType.TIMESTAMP), @Result(column = "validita_fine", property = "validitaFine", jdbcType = JdbcType.TIMESTAMP), @Result(column = "utente_operazione", property = "utenteOperazione", jdbcType = JdbcType.VARCHAR), @Result(column = "data_creazione", property = "dataCreazione", jdbcType = JdbcType.TIMESTAMP), @Result(column = "data_modifica", property = "dataModifica", jdbcType = JdbcType.TIMESTAMP), @Result(column = "data_cancellazione", property = "dataCancellazione", jdbcType = JdbcType.TIMESTAMP) }) List<DNotificaPriorita> selectAll();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);", "@Insert({ \"insert into d_notifica_priorita (priorita_cod, priorita_desc, \", \"validita_inizio, validita_fine, \",\n\t\t\t\"utente_operazione, data_creazione, \", \"data_modifica, data_cancellazione)\",\n\t\t\t\"values (#{prioritaCod,jdbcType=VARCHAR}, #{prioritaDesc,jdbcType=VARCHAR}, \",\n\t\t\t\"#{validitaInizio,jdbcType=TIMESTAMP}, #{validitaFine,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{utenteOperazione,jdbcType=VARCHAR}, #{dataCreazione,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{dataModifica,jdbcType=TIMESTAMP}, #{dataCancellazione,jdbcType=TIMESTAMP})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"prioritaId\")\n\tint insert(DNotificaPriorita record);", "public List<PrioridadTicket> obtenerTodasLasPrioridades() {\n return this.prioridadTicketFacade.findAll();\n }", "@Update({ \"update d_notifica_priorita\", \"set priorita_cod = #{prioritaCod,jdbcType=VARCHAR},\",\n\t\t\t\"priorita_desc = #{prioritaDesc,jdbcType=VARCHAR},\",\n\t\t\t\"validita_inizio = #{validitaInizio,jdbcType=TIMESTAMP},\",\n\t\t\t\"validita_fine = #{validitaFine,jdbcType=TIMESTAMP},\",\n\t\t\t\"utente_operazione = #{utenteOperazione,jdbcType=VARCHAR},\",\n\t\t\t\"data_creazione = #{dataCreazione,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_modifica = #{dataModifica,jdbcType=TIMESTAMP},\",\n\t\t\t\"data_cancellazione = #{dataCancellazione,jdbcType=TIMESTAMP}\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint updateByPrimaryKey(DNotificaPriorita record);", "@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true and p.juzgado=?1 and p.prioritario = true\")\r\n\tPage<ProcesoUsuario> findAllByPrioritario(Juzgado juzgado, Pageable pageable);", "public void setPriorite(java.lang.String priorite) {\r\n\t\tthis.priorite = priorite;\r\n\t}", "public PrioritaetEntity findByNr(int prioID) throws Exception;", "public List<PrioritaetEntity> findAll() throws Exception;", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public java.lang.String getPriorite() {\r\n\t\treturn priorite;\r\n\t}", "public java.lang.Long getId_cita_previa();", "@Delete({ \"delete from d_notifica_priorita\", \"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint deleteByPrimaryKey(Integer prioritaId);", "public int getIdPrestatario() {\n return idPrestatario;\n }", "public Empleado(String nombre, Prioridad prioridad) {\n\t\tthis.nombre = nombre;\n\t\tthis.prioridad = prioridad;\n\t}", "public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }", "public Set<Prenotazione> getPrenotazione() {\n return prenotazione;\n }", "public int getPrioritate() {\n return prioritate;\n }", "public PrioridadTicket obtenerPrioridadTicket(int codigo) {\n return this.prioridadTicketFacade.find(codigo);\n }", "public String empleadosPorPrioridad(ArrayList<Empleado> prioridad){\n String aux = \"los empleados son: \\n\";\n for (int i = 0; i < prioridad.size(); i++) {\n aux += \"nombre: \" + prioridad.get(i).getNombre() + \" -\" +\" Identificacion: \"+ prioridad.get(i).getIdentificacion() \n + \"\\n\";\n }\n return aux;\n }", "public void setPrioritate(int value) {\n this.prioritate = value;\n }", "@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();", "public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }", "private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "Date getPriorDate();", "public void savePrioritaet(String bezeichnung) throws Exception;", "public static void changePriority(Patient p, int prior){\r\n \t\tpatientArray.remove(p);\r\n \t\tlistModel.add(prior, p.getFirstName());\r\n \t}", "public ListaPorMenuPK() {\r\n\t}", "public void addProcesso(ProcessoPrioridade p) {\r\n\t\tthis.getEscalonadores().get(p.getPrioridade()-1).addProcesso(p);\r\n\t\tfor (int i=p.getPrioridade(); this.getEscalonadores().size()> i; i++) {\r\n\t\t\tif (this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\tthis.getEscalonadores().get(i).executandoVaiParaEspera();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getEscalonadores().get(p.getPrioridade()-1).temProcessosExecutando()){\r\n\t\t\tfor (int i=p.getPrioridade()-2 ; 0 <= i; i--) {\r\n\t\t\t\tif(this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\t\tthis.getEscalonadores().get(p.getPrioridade()-1).executandoVaiParaEspera();\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 List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}", "public List<Prevision> getListTipoPrevisionByFK(Integer Aux);", "public final void prependGestiona(gest_proyectos.Proyecto succ) {\n prependSuccessor(getGestionaRelationship(getMtDatabase()), succ);\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 }", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}", "@DISPID(123)\r\n\t// = 0x7b. The runtime will prefer the VTID if present\r\n\t@VTID(118)\r\n\tint predecessorID();", "public TableModel GetPagineOpera (int cod, String Opera) throws SQLException {\n\t\t\n Connection dbConnection = model.connectionDataBase.ConnectionDB.Connect();\n\n // Execute the query and get the ResultSet\n PreparedStatement stmt = dbConnection.prepareStatement(\"SELECT * FROM pagine_opera INNER JOIN opera ON pagine_opera.cod_opera = opera.cod WHERE opera.cod = ? AND opera.nome = ?\");\n stmt.setInt(1, cod);\n stmt.setString(2, Opera);\n \n ResultSet rs = stmt.executeQuery();\n TableModel tm = DbUtils.resultSetToTableModel(rs);\n dbConnection.close();\n\n return tm;\n\t\t\n\t}", "public void editPrioritaet(int prioID, String bezeichnung) throws Exception;", "public int guardarPreInscripcion( preInscripcion p ){\r\n\t\tString sql_guardar;\r\n int numFilas=0;\r\n \r\n sql_guardar=\"INSERT INTO pre_inscripcion VALUES ('\" +\r\n p.getNombreEvento() + \"', '\" + p.getNombreParticipante() + \"', '\" + \r\n \t\tp.getCedula() + \"', '\" + p.getfecha() + \"')\";\r\n \r\n try{\r\n Connection conn= fachada.getConnetion();\r\n Statement sentencia = conn.createStatement();\r\n\r\n numFilas = sentencia.executeUpdate(sql_guardar); \r\n System.out.println(\"up \" + numFilas);\r\n return numFilas;\r\n \r\n }\r\n catch(SQLException e){\r\n System.out.println(e); \r\n }\r\n catch(Exception e){ \r\n System.out.println(e);\r\n }\r\n return -1;\r\n\t}", "public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public String preInsert() {\n\t\tSystem.out.println(\"--------preInsert\");\n\t\tsetProducto(new Producto());\n\t\tbanderaModif = \"false\";\n\t\treturn \"altaProd.xhtml?faces-redirect=true\";\n\t}", "public List<Ticket> obtenerTodosLosTicketsPorUnaPrioridad(Usuario usuario, int prioridad) {\n PrioridadTicket prioridadTicket = this.prioridadTicketFacade.find(prioridad);\n if (prioridadTicket != null) {\n return usuario != null ? this.ticketFacade.obtenerTicketsPorPrioridadDePropietario(usuario, prioridadTicket) : this.ticketFacade.obtenerTodosLosTicketsPorPrioridad(prioridadTicket);\n } else {\n return null;\n }\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "public TdOficioAfectacionPK() {\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic Integer restaPrestadoEventual() {\n\t\treturn dao.restaPrestadoEventual();\r\n\t}", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "private RicercaSinteticaPreDocumentoEntrataResponse ricercaSinteticaPreDocumentoEntrata(int numeroPagina){\n\t\tRicercaSinteticaPreDocumentoEntrata reqRSPD = req.getRicercaSinteticaPreDocumentoEntrata();\t\t\n\t\tParametriPaginazione pp = new ParametriPaginazione(numeroPagina);\n\t\tpp.setElementiPerPagina(100);\n\t\treqRSPD.setParametriPaginazione(pp);\n\t\treqRSPD.setRichiedente(req.getRichiedente());\t\t\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = executeExternalService(ricercaSinteticaPreDocumentoEntrata, reqRSPD);\n\t\treturn resRSPD;\n\t}", "public void getSetVersionRowPresuTipoProyectoWithConnection()throws Exception {\n\t\tif(presutipoproyecto.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((presutipoproyecto.getIsDeleted() || (presutipoproyecto.getIsChanged()&&!presutipoproyecto.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=presutipoproyectoDataAccess.getSetVersionRowPresuTipoProyecto(connexion,presutipoproyecto.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!presutipoproyecto.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tpresutipoproyecto.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpresutipoproyecto.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "@Override\n\tpublic ObservableList<prescription> findBypfID(int a) {\n\t\t// TODO Auto-generated method stub\n\t\tprescription p=null;\n\t\t\n\t\tObservableList<prescription> prescription =FXCollections.observableArrayList();\n\t\tString query = \"SELECT * FROM pmohan_prescription WHERE fid = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{ \n\t\t\tSystem.out.println(a);\n\t\t\t statement.setInt(1, a);\n\t\t\t ResultSet resultSet = statement.executeQuery();\n\t\t\t while(resultSet.next()){\n\t\t\t\t p= new prescription();\n\t\t\t\t p.setDocId(resultSet.getInt(3));\n\t\t\t\t p.setMedcineName(resultSet.getString(4));\n\t\t\t\t p.setMedicinePurpose(resultSet.getString(5));\n\t\t\t\t p.setEat(resultSet.getString(6));\n\t\t\t\t p.setDocName(docName(resultSet.getInt(3)));\n\t\t\t\t p.setPname(resultSet.getString(7));\n\t\t\t\t prescription.add(p);\n\t\t }\n\t\t }\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn prescription;\n\t}", "@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }", "public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }", "public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }", "List<AdvertBundleEntity> findAllRequiredNewProforma();", "public Local_Prova getByIdLocal_Prova(Integer id);", "public TreeSet<PrestamoFila> CargarDatos () {\n this.conexion.ConectarBD();\n \n String consulta = \"SELECT * FROM prestamos ORDER BY idprestamo\";\n this.rst = this.conexion.ConsultaBD(consulta);\n try {\n //Pasamos los datos recogidos de la BD al TreeSet\n while (this.rst.next()){\n PrestamoFila pf = new PrestamoFila(rst.getInt(\"IdPrestamo\"),rst.getInt(\"IdSocio\"),rst.getInt(\"IdLibro\"),rst.getDate(\"FechaInicio\"),rst.getDate(\"FechaFin\")); \n this.tPrestamos.add(pf);\n }\n } catch (SQLException e){\n throw new MisException(\"Error al cargar los datos del Prestamo.\\n\"+e.toString());\n \n }\n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n return this.tPrestamos;\n }", "public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}", "public String getPriInicio () {\n return PriInicio;\n }", "private void setupPriorForSingleMotif(NumericSequenceData priorsequence, int motiflength, String useforprior) {\n int seqLength=priorsequence.getSize();\n if (!useforprior.equals(\"sum\")) {\n boolean maskStart=(useforprior.equals(\"relativeStartValue\") && priorsequence.getStrandOrientation()==Sequence.REVERSE);\n if (!maskStart) {\n for (int j=seqLength-motiflength+1;j<seqLength;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n } else {\n for (int j=0;j<motiflength-1;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n }\n }\n normalizePrior(priorsequence);\n }", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "@Override\r\n\tprotected void onPreLoadData() throws Exception {\n\r\n\t\tList<Linea> listaLinee = new LineaAPI().lista(getEmfShared(), getCurrentUser());\r\n\t\tlinee = SelectItemConverter.convert(listaLinee);\r\n\r\n\t\tlong idRinnovo = getParamObjectAsLong(\"idRinnovo\");\r\n\t\tif (idRinnovo > 0) {\r\n\t\t\telemento = new ContrattoAPI().rinnovoPrepara(getEmfShared(), getCurrentUser(), idRinnovo);\r\n\t\t} else {\r\n\t\t\taddErrorMessage(\"Impossibile trovare il contratto da rinnovare.\");\r\n\t\t}\r\n\r\n\t}", "VentaJPA obtenerVenta(int comprobante);", "public Integer getCodTienda();", "@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public ArrayList<TypeProjet> listeInscr() throws RemoteException{\r\n\t\t\tArrayList<TypeProjet> list = new ArrayList<TypeProjet>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t String requete = \"select * from typeprojet where t_cursus='\" + _etudiant.getCursus() +\r\n\t\t \t\t\t\t \"' and CURRENT_DATE >= t_debinscr AND CURRENT_DATE <= t_fininscr AND NOT EXISTS \" +\r\n\t\t \t\t\t\t \" (select a_idgroupe From association where a_idgroupe in (select ga_idgroupe from \" +\r\n\t\t \t\t\t\t \" groupeassoc, groupe where ga_idetudiant = \" + _etudiant.getId() + \" AND g_idtype = \" +\r\n\t\t \t\t\t\t \"t_id and ga_idgroupe = g_id) and a_idprojet in (select p_id from projet where \" +\r\n\t\t \t\t\t\t \" p_idType = t_id))\";\r\n\t\t System.out.println(\"requete : listeInscr\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t TypeProjet tp = null;\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tint id = Integer.parseInt(data.getColumnValue(\"t_id\"));\r\n\t\t\t\tString nom = data.getColumnValue(\"t_nom\");\r\n\t\t\t\tString deb_inscr = data.getColumnValue(\"t_debInscr\");\r\n\t\t\t\tString fin_incr = data.getColumnValue(\"t_finInscr\");\r\n\t\t\t\tString deb_projet = data.getColumnValue(\"t_debProjet\");\r\n\t\t\t\tString fin_projet = data.getColumnValue(\"t_finProjet\");\r\n\t\t \ttp = new TypeProjetImpl (id,nom,deb_inscr,fin_incr,deb_projet,fin_projet);\r\n\t\t \tlist.add(tp);\r\n\t\t }\r\n\t\t System.out.println(\"_____________________________________________\");\r\n\t\t for (TypeProjet i : list)\r\n\t\t \tSystem.out.println(i.get_nom());\r\n\t\t System.out.println(\"______________________________________________\");\r\n\t\t \r\n\t\t\treturn list;\r\n\t\t}", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "public void setId_cita_previa(java.lang.Long newId_cita_previa);", "public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }", "private int obtem_primeiro(int numero)\n {\n for (Map.Entry i : janela.entrySet()) if(((Estado)i.getValue()).getNumero_sequencia() == numero && !((Estado) i.getValue()).isEstado()) return (int) i.getKey();\n return 0;\n }", "public ParametroPorParametroPK() {\r\n\t}", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "public ConsultaPrimaNotaIntegrataGSAModel() {\n\t\tsetTitolo(\"Consulta prima nota integrata\");\n\t}", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}", "@Optional\n @ImportColumn(\"LAGEKL\")\n Property<Double> lageklasse();", "private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "public List<TonKho> getTonKhoHienTai(Integer dmtMaSo, Integer khoMaso, String priority) {\n try {\n //System.out.println(\"-------Begin getTonKhoHienTai-----------------\");\n List<TonKho> lstTonHt = new ArrayList<TonKho>();\n String sSQLLIFO_FIFO = \"SELECT TK.* FROM TON_KHO TK \"\n + \"LEFT JOIN PHIEU_NHAP_KHO P ON TK.PHIEUNHAPKHO_MA = P.PHIEUNHAPKHO_MA \"\n + \"INNER JOIN (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo +\" GROUP BY T.TONKHO_MALIENKET) TKMAX ON TK.TONKHO_MA = TKMAX.TONKHO_MA \"\n + \"WHERE TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n String sSQL_UUTIENCONLAI = \"SELECT TK.* FROM TON_KHO TK, (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo + \" GROUP BY T.TONKHO_MALIENKET) TKMAX \"\n + \"WHERE TK.TONKHO_MA = TKMAX.TONKHO_MA AND TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n\n //Dua vao do uu tien, de lay lo thuoc thich hop va so sanh so luong neu vua du thi hien thi thong tin cua lo thuoc do\n if(priority.equals(\"1\")){\n\t\t/*1:HSD: lo nao gan het han cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_NAMHANDUNG, TK.TONKHO_THANGHANDUNG, TK.TONKHO_NGAYHANDUNG\";\n }else if(priority.equals(\"2\")){\n\t\t/*2:LIFO: thuoc nao nhap vao kho sau cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN desc\";\n }else if(priority.equals(\"3\")){\n\t\t/*3:FIFO: thuoc nao nhap vao truoc cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN asc\";\n }else if(priority.equals(\"4\")){\n\t\t/*4:TONTHAP: uu tien so luong ton it xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON asc\";\n }else if(priority.equals(\"5\")){\n\t\t/*5:TONCAO: uu tien so luong ton nhieu xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON desc\";\n }else if(priority.equals(\"6\")){\n\t\t/*6:DONGIATHAP: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA asc\";\n }else{\n\t\t/*= 7: DONGIACAO: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA desc\";\n }\n\n\n if(priority.equals(\"2\") || priority.equals(\"3\")){\n Query q = getEm().createNativeQuery(sSQLLIFO_FIFO,TonKho.class);\n lstTonHt = q.getResultList();\n }else{\n Query q = getEm().createNativeQuery(sSQL_UUTIENCONLAI,TonKho.class);\n lstTonHt = q.getResultList();\n }\n \n if(lstTonHt != null && lstTonHt.size() > 0){\n //System.out.println(\"-------End getTonKhoHienTai-----------------\"+ lstTonHt.size());\n return lstTonHt;\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n return null;\n }\n return null;\n }", "public int getLBR_NotaFiscal_ID();", "@Override\n\t\tpublic Nota getNota(int notaid) {\n\n\t\t\tNota nota = null;\n\t\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\tTransaction transaction = null;\n\n\t\t\ttry {\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"from Nota where NOTAS_ID = ' \"\n\t\t\t\t\t\t+ notaid + \"'\");\n\t\t\t\tSystem.out.println(query);\n\t\t\t\tnota = (Nota) query.uniqueResult();\n\t\t\t\t\n\t\t\t\tif (nota != null) {\n\t\t\t\t\ttransaction.commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"EEEEEEEEOOOOOOOOOO\");\n\t\t\t\tSystem.out.println(nota.getNota());\n\n\t\t\t} catch (HibernateException e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t\treturn nota;\n\t\t}", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}", "DefaultTableModel tmInfinitivos(String idVerbo){\n\t\tVerboBean veb=gerenteVerbos.seleccionaUno(idVerbo);\n\t\tDefaultTableModel tmInf=(DefaultTableModel) modeloInfinitivosBasico(veb);\n\t\treturn tmInf;\n\t}", "@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "public String getTitulo(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, titulo FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\treturn (rs.next()) ? rs.getString(2) : \"\";\n\t\t});\n\t}", "public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}", "public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "public List<Tb_Prod_Painel_PromoBeans> getProdPainelTabelas(Integer terminal, String painel) throws SQLException {\r\n try (Connection conexao = new ConexaoLocalDBMySql().getConnect()) {\r\n String sql = \"SELECT tb_prod_painel_promo.* FROM tb_prod_painel_promo \"\r\n + \" INNER JOIN tb_prod ON(tb_prod_painel_promo.codigo=tb_prod.codigo) where terminal=? and painel in(\" + painel + \") order by tb_prod_painel_promo.idtb_painel_promo\"; \r\n PreparedStatement pstm = conexao.prepareStatement(sql);\r\n pstm.setInt(1, terminal); \r\n ResultSet rs = pstm.executeQuery();\r\n List<Tb_Prod_Painel_PromoBeans> lpb = new ArrayList<>(); \r\n while (rs.next()) {\r\n Tb_Prod_Painel_PromoBeans pb = new Tb_Prod_Painel_PromoBeans();\r\n pb.setCodigo(rs.getString(\"codigo\"));\r\n pb.setDescricao(rs.getString(\"descricao\"));\r\n pb.setUnid(rs.getString(\"unid\"));\r\n pb.setValor1(rs.getFloat(\"valor1\"));\r\n pb.setValor2(rs.getFloat(\"valor2\"));\r\n pb.setOferta(rs.getBoolean(\"oferta\"));\r\n pb.setReceita(rs.getString(\"receita\")); \r\n pb.setTerminal(rs.getInt(\"terminal\"));\r\n pb.setPainel(rs.getInt(\"painel\"));\r\n lpb.add(pb);\r\n }\r\n rs.close();\r\n pstm.close();\r\n conexao.close();\r\n return lpb;\r\n }\r\n }" ]
[ "0.7582677", "0.70359844", "0.59581965", "0.5857211", "0.5766215", "0.5691679", "0.5523242", "0.5441744", "0.53975105", "0.5393899", "0.5392458", "0.53557", "0.5343059", "0.52766013", "0.52525955", "0.520843", "0.52036893", "0.5182572", "0.51691", "0.51418906", "0.5123987", "0.5108824", "0.5094789", "0.5036123", "0.50243044", "0.50106674", "0.49771827", "0.4925383", "0.4909287", "0.48996425", "0.4875494", "0.48705313", "0.48521128", "0.4851389", "0.48254454", "0.48252568", "0.4825037", "0.4813331", "0.48129186", "0.47931537", "0.47837555", "0.47573572", "0.47419053", "0.47315788", "0.4720738", "0.4713045", "0.47023407", "0.4692972", "0.46893802", "0.46848407", "0.46763748", "0.46561125", "0.46486878", "0.46463484", "0.46378398", "0.46336037", "0.46317548", "0.46272826", "0.46176198", "0.46165428", "0.46163666", "0.46133503", "0.46098882", "0.46052372", "0.45998758", "0.4587631", "0.4586045", "0.4570746", "0.45706284", "0.45664537", "0.45638928", "0.4563437", "0.4559051", "0.45565653", "0.45532888", "0.45429295", "0.45425114", "0.4541893", "0.4541893", "0.4539286", "0.453605", "0.4534759", "0.45337775", "0.45332268", "0.45265558", "0.4515426", "0.4498349", "0.44960618", "0.44932374", "0.44882897", "0.44822988", "0.44789112", "0.44697732", "0.44686255", "0.44666636", "0.4466363", "0.44634825", "0.44590303", "0.44560415", "0.44513074" ]
0.7759688
0
This method was generated by MyBatis Generator. This method corresponds to the database table d_notifica_priorita
@Update({ "update d_notifica_priorita", "set priorita_cod = #{prioritaCod,jdbcType=VARCHAR},", "priorita_desc = #{prioritaDesc,jdbcType=VARCHAR},", "validita_inizio = #{validitaInizio,jdbcType=TIMESTAMP},", "validita_fine = #{validitaFine,jdbcType=TIMESTAMP},", "utente_operazione = #{utenteOperazione,jdbcType=VARCHAR},", "data_creazione = #{dataCreazione,jdbcType=TIMESTAMP},", "data_modifica = #{dataModifica,jdbcType=TIMESTAMP},", "data_cancellazione = #{dataCancellazione,jdbcType=TIMESTAMP}", "where priorita_id = #{prioritaId,jdbcType=INTEGER}" }) int updateByPrimaryKey(DNotificaPriorita record);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tList<DNotificaPriorita> selectAll();", "@Select({ \"select\", \"priorita_id, priorita_cod, priorita_desc, validita_inizio, validita_fine, utente_operazione, \",\n\t\t\t\"data_creazione, data_modifica, data_cancellazione\", \"from d_notifica_priorita\",\n\t\t\t\"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\t@Results({ @Result(column = \"priorita_id\", property = \"prioritaId\", jdbcType = JdbcType.INTEGER, id = true),\n\t\t\t@Result(column = \"priorita_cod\", property = \"prioritaCod\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"priorita_desc\", property = \"prioritaDesc\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"validita_inizio\", property = \"validitaInizio\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"validita_fine\", property = \"validitaFine\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"utente_operazione\", property = \"utenteOperazione\", jdbcType = JdbcType.VARCHAR),\n\t\t\t@Result(column = \"data_creazione\", property = \"dataCreazione\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_modifica\", property = \"dataModifica\", jdbcType = JdbcType.TIMESTAMP),\n\t\t\t@Result(column = \"data_cancellazione\", property = \"dataCancellazione\", jdbcType = JdbcType.TIMESTAMP) })\n\tDNotificaPriorita selectByPrimaryKey(Integer prioritaId);", "@Insert({ \"insert into d_notifica_priorita (priorita_cod, priorita_desc, \", \"validita_inizio, validita_fine, \",\n\t\t\t\"utente_operazione, data_creazione, \", \"data_modifica, data_cancellazione)\",\n\t\t\t\"values (#{prioritaCod,jdbcType=VARCHAR}, #{prioritaDesc,jdbcType=VARCHAR}, \",\n\t\t\t\"#{validitaInizio,jdbcType=TIMESTAMP}, #{validitaFine,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{utenteOperazione,jdbcType=VARCHAR}, #{dataCreazione,jdbcType=TIMESTAMP}, \",\n\t\t\t\"#{dataModifica,jdbcType=TIMESTAMP}, #{dataCancellazione,jdbcType=TIMESTAMP})\" })\n\t@Options(useGeneratedKeys = true, keyProperty = \"prioritaId\")\n\tint insert(DNotificaPriorita record);", "public List<PrioridadTicket> obtenerTodasLasPrioridades() {\n return this.prioridadTicketFacade.findAll();\n }", "@Query(\"select pu from ProcesoUsuario pu join pu.proceso p where p.estado = true and p.juzgado=?1 and p.prioritario = true\")\r\n\tPage<ProcesoUsuario> findAllByPrioritario(Juzgado juzgado, Pageable pageable);", "public void setPriorite(java.lang.String priorite) {\r\n\t\tthis.priorite = priorite;\r\n\t}", "public PrioritaetEntity findByNr(int prioID) throws Exception;", "public List<PrioritaetEntity> findAll() throws Exception;", "private void priorizar() {\r\n if (ini == fin) {\r\n return;\r\n }\r\n\r\n int t1 = fin, t2 = fin - 1;\r\n TDAPrioridad aux = new TDAPrioridad(0, '0');\r\n while (t1 != ini) {\r\n if (datos[t1].getPrioridad() > datos[t2].getPrioridad()) {\r\n aux.setObjeto(datos[t1]);\r\n datos[t1].setObjeto(datos[t2]);\r\n datos[t2].setObjeto(aux);\r\n t2--;\r\n t1--;\r\n } else {\r\n break;\r\n }\r\n }\r\n }", "public java.lang.String getPriorite() {\r\n\t\treturn priorite;\r\n\t}", "public java.lang.Long getId_cita_previa();", "@Delete({ \"delete from d_notifica_priorita\", \"where priorita_id = #{prioritaId,jdbcType=INTEGER}\" })\n\tint deleteByPrimaryKey(Integer prioritaId);", "public int getIdPrestatario() {\n return idPrestatario;\n }", "public Empleado(String nombre, Prioridad prioridad) {\n\t\tthis.nombre = nombre;\n\t\tthis.prioridad = prioridad;\n\t}", "public String generarPrioridadVacunacion(){\n \n String aux = \" \"; \n \n if(EmpleadosPrioridadAlta.isEmpty() != true){\n aux += \"\\nLos empleados con mayor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadAlta.size(); i++) {\n \n aux += \"\\n-------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMediaAlta.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media alta son: \";\n for (int i = 0; i < EmpleadosPrioridadMediaAlta.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMediaAlta.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMediaAlta.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadMedia.isEmpty() != true){\n aux += \"\\nLos empleados con prioridad media son: \";\n for (int i = 0; i < EmpleadosPrioridadMedia.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadMedia.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadMedia.get(i).getIdentificacion();\n }\n }\n \n if(EmpleadosPrioridadBaja.isEmpty() != true){\n aux += \"\\nLos empleados con menor prioridad son: \";\n for (int i = 0; i < EmpleadosPrioridadBaja.size(); i++) {\n aux += \"\\n--------------------------\\n\" + \"Empleado #\"+(i+1)\n +\"\\nNombre: \"+EmpleadosPrioridadBaja.get(i).getNombre()\n +\"\\nIdentificacion: \"+EmpleadosPrioridadBaja.get(i).getIdentificacion();\n }\n }\n return aux;\n }", "public Set<Prenotazione> getPrenotazione() {\n return prenotazione;\n }", "public int getPrioritate() {\n return prioritate;\n }", "public PrioridadTicket obtenerPrioridadTicket(int codigo) {\n return this.prioridadTicketFacade.find(codigo);\n }", "public String empleadosPorPrioridad(ArrayList<Empleado> prioridad){\n String aux = \"los empleados son: \\n\";\n for (int i = 0; i < prioridad.size(); i++) {\n aux += \"nombre: \" + prioridad.get(i).getNombre() + \" -\" +\" Identificacion: \"+ prioridad.get(i).getIdentificacion() \n + \"\\n\";\n }\n return aux;\n }", "public void setPrioritate(int value) {\n this.prioritate = value;\n }", "@Optional\n @ImportColumn(\"AUSSTATTUNG\")\n Property<Integer> ausstattung();", "public void setPrenotazione(Set<Prenotazione> aPrenotazione) {\n prenotazione = aPrenotazione;\n }", "private List<PreDocumentoEntrata> getPreDocumentiEntrata() {\t\n\t\tif(req.getRicercaSinteticaPreDocumentoEntrata()!=null){\n\t\t\treturn ricercaSinteticaPreDocumentoEntrata();\n\t\t}\n\t\t\n\t\treturn req.getPreDocumentiEntrata();\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic void insertPrestito(Prestito p) {\n\t\t\r\n\t}", "Date getPriorDate();", "public void savePrioritaet(String bezeichnung) throws Exception;", "public static void changePriority(Patient p, int prior){\r\n \t\tpatientArray.remove(p);\r\n \t\tlistModel.add(prior, p.getFirstName());\r\n \t}", "public ListaPorMenuPK() {\r\n\t}", "public void addProcesso(ProcessoPrioridade p) {\r\n\t\tthis.getEscalonadores().get(p.getPrioridade()-1).addProcesso(p);\r\n\t\tfor (int i=p.getPrioridade(); this.getEscalonadores().size()> i; i++) {\r\n\t\t\tif (this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\tthis.getEscalonadores().get(i).executandoVaiParaEspera();\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(this.getEscalonadores().get(p.getPrioridade()-1).temProcessosExecutando()){\r\n\t\t\tfor (int i=p.getPrioridade()-2 ; 0 <= i; i--) {\r\n\t\t\t\tif(this.getEscalonadores().get(i).temProcessosExecutando()) {\r\n\t\t\t\t\tthis.getEscalonadores().get(p.getPrioridade()-1).executandoVaiParaEspera();\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 List<PreDocumentoEntrata> ricercaSinteticaPreDocumentoEntrata() {\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = ricercaSinteticaPreDocumentoEntrata(0);\t\t\n\t\tList<PreDocumentoEntrata> result = resRSPD.getPreDocumenti();\n\t\t\n\t\tfor(int i = 1; i < resRSPD.getTotalePagine(); i++) {\t\t\t\n\t\t\tresRSPD = ricercaSinteticaPreDocumentoEntrata(i);\n\t\t\tresult.addAll(resRSPD.getPreDocumenti());\t\t\t\n\t\t}\n\t\treturn result;\n\t}", "private Punto getPuntoPriorizado(Punto puntoini, List<Punto> puntos ){\n\t\t\n\t\tPunto puntopriorizado = null;\n\t\t// calculamos la heuristica de distancias a los demas puntos\n\t\tfor (Punto punto : puntos) {\n\t\t\tif( (puntoini!=null && punto!=null) && !puntoini.equals(punto) ){\n\t\t\t\tdouble d = Geometria.distanciaDeCoordenadas(puntoini, punto);\n\t\t\t\tpunto.getDatos().put(\"distanci\", d);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// ordenamos por las heuristicas definidad en la clase comparator\n\t\t// hora atencion, prioridad, urgencia, distancia\n\t\tCollections.sort(puntos, new PuntoHeuristicaComparator1());\n\t\tSystem.out.println(\"### mostrando las heuristicas #####\");\n\t\tmostratPuntosHeuristica(puntos);\n\t\n\t\tif( puntos!=null && puntos.size()>0){\n\t\t\tpuntopriorizado = puntos.get(0);\n\t\t}\n\t\t\n\t\t/*Punto pa = null ;\n\t\tfor (Punto p : puntos) {\n\t\t\tif(pa!=null){\n\t\t\t\tString key = p.getDatos().toString();\n\t\t\t\tString keya = pa.getDatos().toString();\n\t\t\t\tif(!key.equals(keya)){\n\t\t\t\t\tpuntopriorizado = p;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tpa = p ;\n\t\t}*/\n\n\t\treturn puntopriorizado;\n\t}", "public List<Prevision> getListTipoPrevisionByFK(Integer Aux);", "public final void prependGestiona(gest_proyectos.Proyecto succ) {\n prependSuccessor(getGestionaRelationship(getMtDatabase()), succ);\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 }", "@DISPID(123)\r\n\t// = 0x7b. The runtime will prefer the VTID if present\r\n\t@VTID(118)\r\n\tint predecessorID();", "public TipoPrestamo() {\n\t\tsuper();\n\t}", "private String getQuerySelecaoBonusPulaPula()\n\t{\n\t\tString result = \n\t\t\t\"SELECT \" +\n\t\t\t\" ID_CODIGO_NACIONAL, \" +\n\t\t\t\" VLR_BONUS_MINUTO, \" +\n\t\t\t\" VLR_BONUS_MINUTO_FF \" +\n\t\t\t\"FROM \" +\n\t\t\t\" TBL_GER_BONUS_PULA_PULA \";\n\t\t\n\t\treturn result;\n\t}", "public void editPrioritaet(int prioID, String bezeichnung) throws Exception;", "public TableModel GetPagineOpera (int cod, String Opera) throws SQLException {\n\t\t\n Connection dbConnection = model.connectionDataBase.ConnectionDB.Connect();\n\n // Execute the query and get the ResultSet\n PreparedStatement stmt = dbConnection.prepareStatement(\"SELECT * FROM pagine_opera INNER JOIN opera ON pagine_opera.cod_opera = opera.cod WHERE opera.cod = ? AND opera.nome = ?\");\n stmt.setInt(1, cod);\n stmt.setString(2, Opera);\n \n ResultSet rs = stmt.executeQuery();\n TableModel tm = DbUtils.resultSetToTableModel(rs);\n dbConnection.close();\n\n return tm;\n\t\t\n\t}", "public int guardarPreInscripcion( preInscripcion p ){\r\n\t\tString sql_guardar;\r\n int numFilas=0;\r\n \r\n sql_guardar=\"INSERT INTO pre_inscripcion VALUES ('\" +\r\n p.getNombreEvento() + \"', '\" + p.getNombreParticipante() + \"', '\" + \r\n \t\tp.getCedula() + \"', '\" + p.getfecha() + \"')\";\r\n \r\n try{\r\n Connection conn= fachada.getConnetion();\r\n Statement sentencia = conn.createStatement();\r\n\r\n numFilas = sentencia.executeUpdate(sql_guardar); \r\n System.out.println(\"up \" + numFilas);\r\n return numFilas;\r\n \r\n }\r\n catch(SQLException e){\r\n System.out.println(e); \r\n }\r\n catch(Exception e){ \r\n System.out.println(e);\r\n }\r\n return -1;\r\n\t}", "public ColaPrioridad(int tam) {\r\n datos = new TDAPrioridad[tam];\r\n ini = fin = -1;\r\n }", "public void setPrecioc(int p){\n this.precioc=p;\n \n }", "public String preInsert() {\n\t\tSystem.out.println(\"--------preInsert\");\n\t\tsetProducto(new Producto());\n\t\tbanderaModif = \"false\";\n\t\treturn \"altaProd.xhtml?faces-redirect=true\";\n\t}", "public List<Ticket> obtenerTodosLosTicketsPorUnaPrioridad(Usuario usuario, int prioridad) {\n PrioridadTicket prioridadTicket = this.prioridadTicketFacade.find(prioridad);\n if (prioridadTicket != null) {\n return usuario != null ? this.ticketFacade.obtenerTicketsPorPrioridadDePropietario(usuario, prioridadTicket) : this.ticketFacade.obtenerTodosLosTicketsPorPrioridad(prioridadTicket);\n } else {\n return null;\n }\n }", "public void insertProblema() {\n \n \n java.util.Date d = new java.util.Date();\n java.sql.Date fecha = new java.sql.Date(d.getTime());\n \n this.equipo.setEstado(true);\n this.prob = new ReporteProblema(equipo, this.problema, true,fecha);\n f.registrarReporte(this.prob);\n \n }", "public TdOficioAfectacionPK() {\n }", "public void introducirPagosALojamientoHotelFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];// pago de alojamiento en rango fchas\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);\n objeto[3] = resultado.getDate(4);// pago de alojamiento en rango fchas\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();// pago de alojamiento en rango fchas\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public void introducirPagosALojamientoClienteFechas(Date fechaInicial, Date fechaFinal,TablaModelo modelo,String dpiCliente){\n long tiempo = fechaInicial.getTime();\n java.sql.Date fechaInicialSql = new java.sql.Date(tiempo);\n long tiempo2= fechaFinal.getTime();\n java.sql.Date fechaFinalSQL = new java.sql.Date(tiempo2);// pago de alojamiento en rango fchas\n try {\n PreparedStatement declaracion;// prepara la orden \n declaracion = conexion.prepareStatement(\"SELECT ALOJAMIENTO.Id,ALOJAMIENTO.Id_Reservacion,RESERVACION.Fecha_Entrada, RESERVACION.Fecha_Salida,RESERVACION.Precio FROM RESERVACION JOIN ALOJAMIENTO WHERE RESERVACION.Id=ALOJAMIENTO.Id_Reservacion AND RESERVACION.Fecha_Entrada>=? AND RESERVACION.Fecha_Entrada<=? AND RESERVACION.Dpi_Cliente=? AND RESERVACION.Check_In=1;\");\n declaracion.setDate(1,fechaInicialSql);\n declaracion.setDate(2,fechaFinalSQL);// pago de alojamiento en rango fchas\n declaracion.setString(3, dpiCliente);\n ResultSet resultado = declaracion.executeQuery();\n while (resultado.next()) {\n Object objeto[] = new Object[6];\n objeto[0] = resultado.getInt(1);\n objeto[1] = resultado.getInt(2);\n objeto[2] = resultado.getDate(3);// pago de alojamiento en rango fchas\n objeto[3] = resultado.getDate(4);\n objeto[4] = resultado.getInt(5);\n String fechaInicialProbar=objeto[2].toString();\n String fechaFinalProbar=objeto[3].toString();// pago de alojamiento en rango fchas\n String precioProbar = objeto[4].toString();\n int total=habitacion.hacerTotalAlojamiento(fechaInicialProbar, fechaFinalProbar, precioProbar);\n objeto[5]= total;\n modelo.addRow(objeto);\n } // maneja el resultado \n\n } catch (SQLException ex) {\n ex.printStackTrace();\n }\n }", "public BeanDatosAlumno() {\r\n bo = new BoPrestamoEjemplarImpl();\r\n verEjemplares(\"ABC0001\"); \r\n numerodelibrosPrestados();\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic Integer restaPrestadoEventual() {\n\t\treturn dao.restaPrestadoEventual();\r\n\t}", "public DefaultTableModel Ordernar() {\n String sql;\n sql = \"SELECT idempleado,empleados.documento,nombre,apellido,sueldo,trabajo FROM empleados,personas WHERE empleados.documento=personas.documento ORDER BY idempleado\";\n try {\n setTitulos();\n PS = con.Conectarse().prepareStatement(sql);\n rst = PS.executeQuery();\n Object[] fila = new Object[6];\n while (rst.next()) {\n fila[0] = rst.getInt(\"idempleado\");\n fila[1] = rst.getString(\"documento\");\n fila[2] = rst.getString(\"nombre\");\n fila[3] = rst.getString(\"apellido\");\n fila[4] = rst.getDouble(\"sueldo\");\n fila[5] = rst.getString(\"trabajo\");\n DIM.addRow(fila);\n }\n\n } catch (SQLException e) {\n Toolkit.getDefaultToolkit().beep();\n JOptionPane.showMessageDialog(null, \"NO EXISTEN DATOS\", \"AVISO\", JOptionPane.INFORMATION_MESSAGE);\n }\n return DIM;\n }", "public void ultimo(){//executa metodo para ultima pagina de registro de funcionarios\r\n\t\tdao.ultimo();\r\n\t}", "private RicercaSinteticaPreDocumentoEntrataResponse ricercaSinteticaPreDocumentoEntrata(int numeroPagina){\n\t\tRicercaSinteticaPreDocumentoEntrata reqRSPD = req.getRicercaSinteticaPreDocumentoEntrata();\t\t\n\t\tParametriPaginazione pp = new ParametriPaginazione(numeroPagina);\n\t\tpp.setElementiPerPagina(100);\n\t\treqRSPD.setParametriPaginazione(pp);\n\t\treqRSPD.setRichiedente(req.getRichiedente());\t\t\n\t\tRicercaSinteticaPreDocumentoEntrataResponse resRSPD = executeExternalService(ricercaSinteticaPreDocumentoEntrata, reqRSPD);\n\t\treturn resRSPD;\n\t}", "public void getSetVersionRowPresuTipoProyectoWithConnection()throws Exception {\n\t\tif(presutipoproyecto.getIsChangedAuxiliar() && Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t \t//TEMPORAL\r\n\t\t\t//if((presutipoproyecto.getIsDeleted() || (presutipoproyecto.getIsChanged()&&!presutipoproyecto.getIsNew()))&& Constantes.ISSETVERSIONROWUPDATE) {\r\n\t\t\tTimestamp timestamp=null;\r\n\t\t\t\r\n\t\t\ttry {\t\r\n\t\t\t\tconnexion=connexion.getNewConnexion(this.connexionType,this.parameterDbType,this.entityManagerFactory);connexion.begin();\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\ttimestamp=presutipoproyectoDataAccess.getSetVersionRowPresuTipoProyecto(connexion,presutipoproyecto.getId());\r\n\t\t\t\t\r\n\t\t\t\tif(!presutipoproyecto.getVersionRow().equals(timestamp)) {\t\r\n\t\t\t\t\tpresutipoproyecto.setVersionRow(timestamp);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconnexion.commit();\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tpresutipoproyecto.setIsChangedAuxiliar(false);\r\n\t\t\t\t\r\n\t\t\t} catch(Exception e) {\r\n\t\t\t\tconnexion.rollback();\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tthrow e;\r\n\t\t\t\t\r\n\t \t} finally {\r\n\t\t\t\tconnexion.close();\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }", "@Override\n\tpublic ObservableList<prescription> findBypfID(int a) {\n\t\t// TODO Auto-generated method stub\n\t\tprescription p=null;\n\t\t\n\t\tObservableList<prescription> prescription =FXCollections.observableArrayList();\n\t\tString query = \"SELECT * FROM pmohan_prescription WHERE fid = ?;\";\n\t\ttry(PreparedStatement statement = connection.prepareStatement(query))\n\t\t{ \n\t\t\tSystem.out.println(a);\n\t\t\t statement.setInt(1, a);\n\t\t\t ResultSet resultSet = statement.executeQuery();\n\t\t\t while(resultSet.next()){\n\t\t\t\t p= new prescription();\n\t\t\t\t p.setDocId(resultSet.getInt(3));\n\t\t\t\t p.setMedcineName(resultSet.getString(4));\n\t\t\t\t p.setMedicinePurpose(resultSet.getString(5));\n\t\t\t\t p.setEat(resultSet.getString(6));\n\t\t\t\t p.setDocName(docName(resultSet.getInt(3)));\n\t\t\t\t p.setPname(resultSet.getString(7));\n\t\t\t\t prescription.add(p);\n\t\t }\n\t\t }\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\t\n\t\treturn prescription;\n\t}", "@Column(name = \"C_PRIMER_NOMBRE\")\n public String getPrimerNombre() {\n return primerNombre;\n }", "public List<SiteNoticia> listarPorData() {\n List<SiteNoticia> result = new ArrayList<SiteNoticia>();\n EntityManager em1 = getEM();\n em1.getTransaction().begin();\n CriteriaBuilder builder = em1.getCriteriaBuilder();\n CriteriaQuery query = builder.createQuery(SiteNoticia.class);\n //EntityType type = em1.getMetamodel().entity(SiteNoticia.class);\n Root root = query.from(SiteNoticia.class);\n query.orderBy(builder.desc(root.get(\"hora2\")));\n result = em1.createQuery(query).getResultList();\n em1.close();\n return result;\n }", "public void setValuesJTableMatrizPrioridadesAlternativas(){\n int alternativas = views.useController().getProblema().getAlternativas();\n int criterios = views.useController().getProblema().getCriterios();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, criterios);\n jTableMatrizPrioridadesAlternativas.setModel(modelo);\n jTableMatrizPrioridadesAlternativas.setEnabled(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setResizingAllowed(false);\n jTableMatrizPrioridadesAlternativas.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n for(int i=0;i<jTableMatrizPrioridadesAlternativas.getColumnCount();i++){\n jTableMatrizPrioridadesAlternativas.getColumnModel().getColumn(i).setHeaderValue(\"Crit #\"+(i+1)); \n }\n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n for(int c = 0; c < criterios; c++){ \n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getMainMatrix().get(f, c)), f, c);\n } \n }\n }", "public Local_Prova getByIdLocal_Prova(Integer id);", "List<AdvertBundleEntity> findAllRequiredNewProforma();", "public TreeSet<PrestamoFila> CargarDatos () {\n this.conexion.ConectarBD();\n \n String consulta = \"SELECT * FROM prestamos ORDER BY idprestamo\";\n this.rst = this.conexion.ConsultaBD(consulta);\n try {\n //Pasamos los datos recogidos de la BD al TreeSet\n while (this.rst.next()){\n PrestamoFila pf = new PrestamoFila(rst.getInt(\"IdPrestamo\"),rst.getInt(\"IdSocio\"),rst.getInt(\"IdLibro\"),rst.getDate(\"FechaInicio\"),rst.getDate(\"FechaFin\")); \n this.tPrestamos.add(pf);\n }\n } catch (SQLException e){\n throw new MisException(\"Error al cargar los datos del Prestamo.\\n\"+e.toString());\n \n }\n //Desconectamos de la BD\n this.conexion.DesconectarBD();\n return this.tPrestamos;\n }", "public void getProdotti() {\r\n\t\tprodotti = ac.getProdotti();\r\n\r\n\t\t//la tabella sara' non nulla quando sara' caricato il file VisualizzaLog.fxml\r\n\t\tif(tabellaProdotti != null) {\r\n\t\t\tcodiceCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"codiceInteger\"));\r\n\t prodottoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"nome\"));\r\n\t descCol.setCellValueFactory(new PropertyValueFactory<Prodotto, String>(\"descrizione\"));\r\n\t prezzoCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Float>(\"prezzoFloat\"));\r\n\t disponibilitaCol.setCellValueFactory(new PropertyValueFactory<Prodotto, Integer>(\"disponibilitaInteger\"));\r\n\t \r\n\t Collections.sort(prodotti);\r\n\t tabellaProdotti.getItems().setAll(prodotti);\t \r\n\t tabellaProdotti.setOnMouseClicked(e -> {\r\n\t \tif(tabellaProdotti.getSelectionModel().getSelectedItem() != null)\r\n\t \t\taggiornaQuantita(tabellaProdotti.getSelectionModel().getSelectedItem().getDisponibilita());\r\n\t });\r\n\t\t}\r\n\t}", "public String getPriInicio () {\n return PriInicio;\n }", "private void setupPriorForSingleMotif(NumericSequenceData priorsequence, int motiflength, String useforprior) {\n int seqLength=priorsequence.getSize();\n if (!useforprior.equals(\"sum\")) {\n boolean maskStart=(useforprior.equals(\"relativeStartValue\") && priorsequence.getStrandOrientation()==Sequence.REVERSE);\n if (!maskStart) {\n for (int j=seqLength-motiflength+1;j<seqLength;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n } else {\n for (int j=0;j<motiflength-1;j++) {\n priorsequence.setValueAtRelativePosition(j, 0);\n }\n }\n }\n normalizePrior(priorsequence);\n }", "@Override\r\n\tprotected void onPreLoadData() throws Exception {\n\r\n\t\tList<Linea> listaLinee = new LineaAPI().lista(getEmfShared(), getCurrentUser());\r\n\t\tlinee = SelectItemConverter.convert(listaLinee);\r\n\r\n\t\tlong idRinnovo = getParamObjectAsLong(\"idRinnovo\");\r\n\t\tif (idRinnovo > 0) {\r\n\t\t\telemento = new ContrattoAPI().rinnovoPrepara(getEmfShared(), getCurrentUser(), idRinnovo);\r\n\t\t} else {\r\n\t\t\taddErrorMessage(\"Impossibile trovare il contratto da rinnovare.\");\r\n\t\t}\r\n\r\n\t}", "public DatoGeneralMinimo getEntityDatoGeneralMinimoGenerico(Connexion connexion,QueryWhereSelectParameters queryWhereSelectParameters,ArrayList<Classe> classes) throws SQLException,Exception { //LiquidacionImpor\r\n\t\tDatoGeneralMinimo datoGeneralMinimo= new DatoGeneralMinimo();\r\n\t\t\r\n\t\tLiquidacionImpor entity = new LiquidacionImpor();\r\n\t\t\t\t\r\n try {\t\t\t\r\n\t\t\tString sQuery=\"\";\r\n \t String sQuerySelect=\"\";\r\n\t\t\t\r\n\t\t\tStatement statement = connexion.getConnection().createStatement();\t\t\t\r\n\t\t\t\r\n\t\t\tif(!queryWhereSelectParameters.getSelectQuery().equals(\"\")) {\r\n\t\t\t\tsQuerySelect=queryWhereSelectParameters.getSelectQuery();\r\n\t\t\t\t\r\n\t\t\t} else {\r\n\t\t\t\tif(!this.isForForeingKeyData) {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVE;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tsQuerySelect=LiquidacionImporDataAccess.QUERYSELECTNATIVEFORFOREINGKEY;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n \t sQuery=DataAccessHelper.buildSqlGeneralGetEntitiesJDBC(entity,LiquidacionImporDataAccess.TABLENAME+\".\",queryWhereSelectParameters,sQuerySelect);\r\n\t\t\t\r\n\t\t\tif(Constantes2.ISDEVELOPING_SQL) {\r\n \tFunciones2.mostrarMensajeDeveloping(sQuery);\r\n }\r\n\t\t\t\r\n \t \tResultSet resultSet = statement.executeQuery(sQuery);//Importaciones.LiquidacionImpor.isActive=1\r\n \t \r\n\t\t\t//ResultSetMetaData metadata = resultSet.getMetaData();\r\n \t \t\r\n \t \t//int iTotalCountColumn = metadata.getColumnCount();\r\n\t\t\t\t\r\n\t\t\t//if(queryWhereSelectParameters.getIsGetGeneralObjects()) {\r\n\t\t\t\tif(resultSet.next()) {\t\t\t\t\r\n\t\t\t\t\tfor(Classe classe:classes) {\r\n\t\t\t\t\t\tDataAccessHelperBase.setFieldDynamic(datoGeneralMinimo,classe,resultSet);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t/*\r\n\t\t\t\t\tint iIndexColumn = 1;\r\n\t\t\t\t \r\n\t\t\t\t\twhile(iIndexColumn <= iTotalCountColumn) {\r\n\t\t\t\t\t\t//arrayListObject.add(resultSet.getObject(iIndexColumn++));\r\n\t\t\t\t }\t\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t*/\r\n\t\t\t\t} else {\r\n\t\t\t\t\tentity =null;\r\n\t\t\t\t}\r\n\t\t\t//}\r\n\t\t\t\r\n\t\t\tif(entity!=null) {\r\n\t\t\t\t//this.setIsNewIsChangedFalseLiquidacionImpor(entity);\r\n\t\t\t}\r\n\t\t\t\r\n \t statement.close(); \r\n\t\t\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\tthrow e;\r\n \t}\r\n\t\t\r\n \t//return entity;\t\r\n\t\t\r\n\t\treturn datoGeneralMinimo;\r\n }", "public Integer getCodTienda();", "VentaJPA obtenerVenta(int comprobante);", "@Select({\n \"select\",\n \"code, process_name, types\",\n \"from basic_info_precursor_process_type\",\n \"where code = #{code,jdbcType=INTEGER}\"\n })\n @ResultMap(\"BaseResultMap\")\n BasicInfoPrecursorProcessType selectByPrimaryKey(Integer code);", "public void gerarReceitaLiquidaIndiretaDeAgua() \n\t\t\tthrows ErroRepositorioException;", "public ArrayList<TypeProjet> listeInscr() throws RemoteException{\r\n\t\t\tArrayList<TypeProjet> list = new ArrayList<TypeProjet>();\r\n\t\t\t\r\n\t\t\t\r\n\t\t String requete = \"select * from typeprojet where t_cursus='\" + _etudiant.getCursus() +\r\n\t\t \t\t\t\t \"' and CURRENT_DATE >= t_debinscr AND CURRENT_DATE <= t_fininscr AND NOT EXISTS \" +\r\n\t\t \t\t\t\t \" (select a_idgroupe From association where a_idgroupe in (select ga_idgroupe from \" +\r\n\t\t \t\t\t\t \" groupeassoc, groupe where ga_idetudiant = \" + _etudiant.getId() + \" AND g_idtype = \" +\r\n\t\t \t\t\t\t \"t_id and ga_idgroupe = g_id) and a_idprojet in (select p_id from projet where \" +\r\n\t\t \t\t\t\t \" p_idType = t_id))\";\r\n\t\t System.out.println(\"requete : listeInscr\" + requete);\r\n\t\t DataSet data = database.executeQuery(requete);\r\n\t\t \r\n\t\t TypeProjet tp = null;\r\n\t\t \r\n\t\t while (data.hasMoreElements()) {\r\n\t\t \tint id = Integer.parseInt(data.getColumnValue(\"t_id\"));\r\n\t\t\t\tString nom = data.getColumnValue(\"t_nom\");\r\n\t\t\t\tString deb_inscr = data.getColumnValue(\"t_debInscr\");\r\n\t\t\t\tString fin_incr = data.getColumnValue(\"t_finInscr\");\r\n\t\t\t\tString deb_projet = data.getColumnValue(\"t_debProjet\");\r\n\t\t\t\tString fin_projet = data.getColumnValue(\"t_finProjet\");\r\n\t\t \ttp = new TypeProjetImpl (id,nom,deb_inscr,fin_incr,deb_projet,fin_projet);\r\n\t\t \tlist.add(tp);\r\n\t\t }\r\n\t\t System.out.println(\"_____________________________________________\");\r\n\t\t for (TypeProjet i : list)\r\n\t\t \tSystem.out.println(i.get_nom());\r\n\t\t System.out.println(\"______________________________________________\");\r\n\t\t \r\n\t\t\treturn list;\r\n\t\t}", "@Override\r\n\tpublic MensajeBean inserta(Tramite_presentan_info_impacto nuevo) {\n\t\treturn tramite.inserta(nuevo);\r\n\t}", "public void setId_cita_previa(java.lang.Long newId_cita_previa);", "public ListaPrecios() {\n initComponents();\n listaListaPrecio();\n }", "public ParametroPorParametroPK() {\r\n\t}", "private int obtem_primeiro(int numero)\n {\n for (Map.Entry i : janela.entrySet()) if(((Estado)i.getValue()).getNumero_sequencia() == numero && !((Estado) i.getValue()).isEstado()) return (int) i.getKey();\n return 0;\n }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public void setFechaInsercion(String p) { this.fechaInsercion = p; }", "public BigDecimal premiacaoAberturaProduto(Produto p) {\n\t\tfor (PoliticaVendaConsignacaoTipoVendedorProduto politica : tipoVendedor.getPoliticasVCTVP()) {\n\t\t\tif (p.equals(politica.getProduto())) {\n\t\t\t\treturn politica.getAberturaPremiacao();\n\t\t\t}\n\t\t}\n\t\treturn BigDecimal.ZERO;\n\t}", "private MetaSparqlRequest createRollbackPreInsered() {\n\t\treturn createRollbackMT1();\n\t}", "public ConsultaPrimaNotaIntegrataGSAModel() {\n\t\tsetTitolo(\"Consulta prima nota integrata\");\n\t}", "@Override\n @Transient\n public Integer getParentId()\n {\n return parentTblId;\n }", "@Optional\n @ImportColumn(\"LAGEKL\")\n Property<Double> lageklasse();", "private JTable itensNaoPagos() {\n\t\tinitConexao();\n\t\t\n try {\t \n\t String select = \"SELECT cod_item_d, nome_item_d, valor_item_d, data_vencimento_item_d FROM Item_despesa WHERE vencimento_item_d = '0'\";\n\t PreparedStatement ptStatement = c.prepareStatement(select);\n\t rs = ptStatement.executeQuery();\n\t \n\t Object[] colunas = {\"Item de despesa\", \"Valor total\", \"Data do vencimento\", \"\", \"code\"}; \t\t\n\t\t\t DefaultTableModel model = new DefaultTableModel();\t\t \n\t\t\t model.setColumnIdentifiers(colunas); \t\t \n\t\t\t Vector<Object[]> linhas = new Vector<Object[]>(); \n\t\t\t \n\t\t\t \n\t while (rs.next()){\n\t\t linhas.add(new Object[]{rs.getString(\"nome_item_d\"),rs.getString(\"valor_item_d\"),rs.getString(\"data_vencimento_item_d\"), \"Pagar\", rs.getString(\"cod_item_d\")}); \t \t\n\t \t } \n\t \n\t\t\t for (Object[] linha : linhas) { \n\t\t model.addRow(linha); \n\t\t } \t\t \n\t\t\t final JTable tarefasTable = new JTable(); \t\t \n\t\t\t tarefasTable.setModel(model); \t\t\n\t\t\t \n\t\t\t ButtonColumn buttonColumn = new ButtonColumn(tarefasTable, 3, \"itemPedido\");\n\t\t\t \n\t\t\t tarefasTable.removeColumn(tarefasTable.getColumn(\"code\")); \t \n\t return tarefasTable; \n } catch (SQLException ex) {\n System.out.println(\"ERRO: \" + ex);\n }\n\t\treturn null; \n\t}", "private Map<String, List<PreDocumentoEntrata>> raggruppaPrimoLivelloConStatoCompleto(List<PreDocumentoEntrata> preDocumentiEntrata) {\n\t\tString methodName = \"raggruppaPrimoLivelloConStatoCompleto\";\n\t\t\n\t\tMap<String, List<PreDocumentoEntrata>> result = new HashMap<String, List<PreDocumentoEntrata>>();\n\t\t\n\t\tfor(PreDocumentoEntrata preDoc : preDocumentiEntrata) {\n\t\t\t\n\t\t\tpreDoc = getDettaglioPreDocumentoEntrata(preDoc);\n\t\t\t\n\t\t\tString key = getDocumentoKey(preDoc);\n\t\t\t\t\t\t\n\t\t\tif(!isCompleto(preDoc)) {\t\n\t\t\t\tlog.info(methodName, \"Saltato perche' non completo: \"+key);\n\t\t\t\tinserisciDettaglioOperazioneAsinc(\"SALTATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.FALLIMENTO, \"Non completo\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tinserisciDettaglioOperazioneAsinc(\"AGGIORNATO\", \" predocumento: \" + preDoc.getNumero() + \" [\"+preDoc.getUid()+\"] - \" + preDoc.getDescrizione(), Esito.SUCCESSO);\n\t\t\t\n\t\t\t\n\t\t\tif(!result.containsKey(key)) {\n\t\t\t\tresult.put(key, new ArrayList<PreDocumentoEntrata>());\t\t\t\t\n\t\t\t\tlog.debug(methodName, \"Nuovo gruppo di primo livello: \"+key);\n\t\t\t}\n\t\t\t\n\t\t\tList<PreDocumentoEntrata> list = result.get(key);\t\t\t\n\t\t\tlist.add(preDoc);\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\treturn result;\n\t}", "public List<TonKho> getTonKhoHienTai(Integer dmtMaSo, Integer khoMaso, String priority) {\n try {\n //System.out.println(\"-------Begin getTonKhoHienTai-----------------\");\n List<TonKho> lstTonHt = new ArrayList<TonKho>();\n String sSQLLIFO_FIFO = \"SELECT TK.* FROM TON_KHO TK \"\n + \"LEFT JOIN PHIEU_NHAP_KHO P ON TK.PHIEUNHAPKHO_MA = P.PHIEUNHAPKHO_MA \"\n + \"INNER JOIN (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo +\" GROUP BY T.TONKHO_MALIENKET) TKMAX ON TK.TONKHO_MA = TKMAX.TONKHO_MA \"\n + \"WHERE TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n String sSQL_UUTIENCONLAI = \"SELECT TK.* FROM TON_KHO TK, (SELECT MAX(T.TONKHO_MA) TONKHO_MA FROM TON_KHO T WHERE T.DMKHOA_MASO = \" + khoMaso + \" AND T.DMTHUOC_MASO = \" + dmtMaSo + \" GROUP BY T.TONKHO_MALIENKET) TKMAX \"\n + \"WHERE TK.TONKHO_MA = TKMAX.TONKHO_MA AND TK.DMTHUOC_MASO = \" + dmtMaSo + \" AND TK.TONKHO_TON > 0 \";\n\n //Dua vao do uu tien, de lay lo thuoc thich hop va so sanh so luong neu vua du thi hien thi thong tin cua lo thuoc do\n if(priority.equals(\"1\")){\n\t\t/*1:HSD: lo nao gan het han cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_NAMHANDUNG, TK.TONKHO_THANGHANDUNG, TK.TONKHO_NGAYHANDUNG\";\n }else if(priority.equals(\"2\")){\n\t\t/*2:LIFO: thuoc nao nhap vao kho sau cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN desc\";\n }else if(priority.equals(\"3\")){\n\t\t/*3:FIFO: thuoc nao nhap vao truoc cho xuat truoc*/\n\t\tsSQLLIFO_FIFO = sSQLLIFO_FIFO + \" ORDER BY P.PHIEUNHAPKHO_NGAYGIOCN asc\";\n }else if(priority.equals(\"4\")){\n\t\t/*4:TONTHAP: uu tien so luong ton it xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON asc\";\n }else if(priority.equals(\"5\")){\n\t\t/*5:TONCAO: uu tien so luong ton nhieu xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_TON desc\";\n }else if(priority.equals(\"6\")){\n\t\t/*6:DONGIATHAP: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA asc\";\n }else{\n\t\t/*= 7: DONGIACAO: uu tien don gia thap cho xuat truoc*/\n\t\tsSQL_UUTIENCONLAI = sSQL_UUTIENCONLAI + \" ORDER BY TK.TONKHO_DONGIA desc\";\n }\n\n\n if(priority.equals(\"2\") || priority.equals(\"3\")){\n Query q = getEm().createNativeQuery(sSQLLIFO_FIFO,TonKho.class);\n lstTonHt = q.getResultList();\n }else{\n Query q = getEm().createNativeQuery(sSQL_UUTIENCONLAI,TonKho.class);\n lstTonHt = q.getResultList();\n }\n \n if(lstTonHt != null && lstTonHt.size() > 0){\n //System.out.println(\"-------End getTonKhoHienTai-----------------\"+ lstTonHt.size());\n return lstTonHt;\n }\n } catch (Exception ex) {\n System.out.println(ex.toString());\n return null;\n }\n return null;\n }", "public int getLBR_NotaFiscal_ID();", "@Override\n\t\tpublic Nota getNota(int notaid) {\n\n\t\t\tNota nota = null;\n\t\t\tSession session = HibernateUtil.getSessionFactory().openSession();\n\t\t\tTransaction transaction = null;\n\n\t\t\ttry {\n\t\t\t\ttransaction = session.beginTransaction();\n\t\t\t\tQuery query = session.createQuery(\"from Nota where NOTAS_ID = ' \"\n\t\t\t\t\t\t+ notaid + \"'\");\n\t\t\t\tSystem.out.println(query);\n\t\t\t\tnota = (Nota) query.uniqueResult();\n\t\t\t\t\n\t\t\t\tif (nota != null) {\n\t\t\t\t\ttransaction.commit();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"EEEEEEEEOOOOOOOOOO\");\n\t\t\t\tSystem.out.println(nota.getNota());\n\n\t\t\t} catch (HibernateException e) {\n\t\t\t\ttransaction.rollback();\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tsession.close();\n\t\t\t}\n\t\t\treturn nota;\n\t\t}", "@PrePersist\r\n\tpublic void prePersist() {\n\t\ttry { Thread.sleep(1); } catch (Exception e) { System.out.println(\"Impossibile fermare il thread per 1 ms.\");}\r\n\t\tGregorianCalendar now = new GregorianCalendar();\r\n\t\tdataArrivoFile = new Date(now.getTimeInMillis());\r\n\t\tannoOrdine = now.get(Calendar.YEAR);\r\n\t\tannodoc = now.get(Calendar.YEAR);\r\n\t\tgenMovUscita = \"NO\";\r\n\t\t// il numero di lista è necessario, se non c'è lo genero.\r\n\t\tif (nrLista == null || nrLista.isEmpty()) {\r\n\t\t\tnrLista = sdf.format(now.getTime());\r\n\t\t}\r\n\t\t// il raggruppamento stampe è necessario, se non c'è lo imposto uguale al numero di lista.\r\n\t\tif (ragstampe == null || ragstampe.isEmpty()) {\r\n\t\t\tragstampe = nrLista;\r\n\t\t}\r\n\t\tnrListaArrivato = 0; // TODO, in teoria sarebbe come un autoincrement\r\n\t\tif (nomeFileArrivo == null || nomeFileArrivo.isEmpty()) nomeFileArrivo = sdf.format(now.getTime());\r\n\t\t// Se non ho specificato l'operatore assumo che sia un servizio.\r\n\t\tif (operatore == null || operatore.isEmpty()) operatore = \"SERVIZIO\";\r\n\t\t// Priorita', se non valorizzata imposto il default.\r\n\t\tif (priorita <= 0) priorita = 1;\r\n\t\t// Contrassegno\r\n\t\tif (tipoIncasso == null) tipoIncasso = \"\";\r\n\t\tif (valContrassegno == null) valContrassegno = 0.0;\r\n\t\tif (valoreDoganale == null)\tvaloreDoganale = 0.0;\r\n\t\t// Corriere, se null imposto a stringa vuota.\r\n\t\tif (corriere == null) corriere = \"\";\r\n\t\t// Codice cliente per il corriere, se null imposto a stringa vuota.\r\n\t\tif (codiceClienteCorriere == null) codiceClienteCorriere = \"\";\r\n\t\tif (stato == null) stato = \"INSE\";\r\n\t\tif (sessioneLavoro == null) sessioneLavoro = \"\";\r\n\t\tif (tipoDoc == null) tipoDoc = \"ORDINE\";\r\n\t}", "DefaultTableModel tmInfinitivos(String idVerbo){\n\t\tVerboBean veb=gerenteVerbos.seleccionaUno(idVerbo);\n\t\tDefaultTableModel tmInf=(DefaultTableModel) modeloInfinitivosBasico(veb);\n\t\treturn tmInf;\n\t}", "@Override\r\n public int compareTo(QuestionInfo a) {\n \r\n if (this.grauDeEquilibrio > a.grauDeEquilibrio)\r\n return -1;\r\n \r\n else if (this.grauDeEquilibrio < a.grauDeEquilibrio)\r\n return 1;\r\n else\r\n return 0;\r\n }", "public int siguienteRegistro(int codigoFlujo) {\n/* 265 */ int inumero = 1;\n/* 266 */ String s = \"select max(secuencia) from wkf_detalle where codigo_flujo=\" + codigoFlujo + \"\";\n/* */ \n/* */ \n/* */ \n/* */ try {\n/* 271 */ boolean rta = this.dat.parseSql(s);\n/* 272 */ if (!rta) return 0; \n/* 273 */ this.rs = this.dat.getResultSet();\n/* 274 */ if (this.rs.next()) {\n/* 275 */ s = this.rs.getString(1);\n/* 276 */ if (!this.rs.wasNull()) {\n/* 277 */ inumero = Integer.parseInt(s) + 1;\n/* */ }\n/* */ } \n/* 280 */ return inumero;\n/* */ }\n/* 282 */ catch (Exception e) {\n/* 283 */ e.printStackTrace();\n/* 284 */ Utilidades.writeError(\"FlujoDetalleDAO:siguienteRegistro \", e);\n/* */ \n/* 286 */ return 0;\n/* */ } \n/* */ }", "public void insertarInicio(E dato) {\n\t\tprimero=new Nodo<E>(dato,primero);\n\t\tif (estaVacia()) {\n\t\t\tultimo=primero;\n\t\t}\n\t\tcantidad++;\n\t}", "public String getTitulo(int codProva) {\n\t\tTransactionManager txManager = new TransactionManager();\n\t return txManager.doInTransactionWithReturn((connection) -> {\n\t \t\n\t\t\tps = connection.prepareStatement(\n\t\t\t\t\t\"SELECT codigo, titulo FROM prova WHERE codigo=?\");\n\t\t\tps.setInt(1, codProva);\n\t\t\trs = ps.executeQuery();\n\t\t\t\n\t\t\treturn (rs.next()) ? rs.getString(2) : \"\";\n\t\t});\n\t}", "@Override\n\tpublic MensajeBean inserta(Tramite_informesem nuevo) {\n\t\treturn tramite_informesemDao.inserta(nuevo);\n\t}", "public ParametroPorParametroPK(Integer idpadre, Integer idhijo) {\r\n\t\tparametroIdParametroPadre = idpadre;\r\n\t\tparametroIdParametroHijo = idhijo;\r\n\t}", "public Integer getIdProfilo() {\n\t\treturn idProfilo;\n\t}", "public PromocionTableModel() {\n \n //Establecemos la sentencia SQL que vamos a ejecutar\n super(\"SELECT ID_PROMOCION , NOMBRE, DESCUENTO FROM PROMOCION\");\n \n }", "@Override\n\t\tpublic String getParentPKFieldName() {\n\t\t\treturn null;\n\t\t}" ]
[ "0.7758712", "0.7581938", "0.70364726", "0.5958643", "0.57657635", "0.56951547", "0.5524052", "0.5440901", "0.53976667", "0.53955", "0.5390703", "0.5356333", "0.5341127", "0.5278638", "0.5251762", "0.52072173", "0.5205692", "0.51847464", "0.51694494", "0.5145082", "0.5121546", "0.5109242", "0.5094651", "0.50350857", "0.5028025", "0.5010621", "0.49801686", "0.49237683", "0.49107045", "0.48991323", "0.48756796", "0.48672163", "0.48517236", "0.48488492", "0.48270494", "0.48245633", "0.48225582", "0.48133674", "0.481093", "0.47906613", "0.47849968", "0.47560903", "0.47403947", "0.47328508", "0.47167435", "0.47113633", "0.46991056", "0.4689783", "0.46864498", "0.46825165", "0.46732703", "0.46537068", "0.46504864", "0.46441406", "0.46348408", "0.46318734", "0.46297625", "0.4622083", "0.4616189", "0.4614836", "0.46144387", "0.4611356", "0.4606674", "0.46038055", "0.4603542", "0.45860845", "0.45848393", "0.45679063", "0.45676634", "0.45664313", "0.45614666", "0.45595455", "0.4555463", "0.4554914", "0.45519942", "0.45423406", "0.4541581", "0.45398673", "0.45398673", "0.4539205", "0.453546", "0.45346618", "0.45338592", "0.45309892", "0.45230907", "0.45139316", "0.44959882", "0.4494123", "0.44889632", "0.44862905", "0.44799528", "0.4478859", "0.4468026", "0.4466359", "0.44645584", "0.4462765", "0.44622606", "0.44568112", "0.44533408", "0.44508418" ]
0.58574814
4
Creates new form MainMenu
public GameOverStandalone() { initComponents(); ranks = new LinkedList<String>(); FadingEffect fader = new FadingEffect(); fader.Fade(this); // mainActivity=this; // // Thread fading = new Thread(new Runnable() { // @Override // public void run() { // while (true) { // int x=java.awt.MouseInfo.getPointerInfo().getLocation().x; // int y=java.awt.MouseInfo.getPointerInfo().getLocation().y; // if (x>mainActivity.getX()&&x<(mainActivity.getX()+mainActivity.getWidth())&&y>mainActivity.getY()&&y<(mainActivity.getY()+mainActivity.getHeight())) { // mainActivity.setOpacity(1.0f); // } // else { // mainActivity.setOpacity(0.75f); // } // try { // Thread.sleep(100); // } catch (Exception e) { // // } // } // } // }); // fading.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainMenu() {\n initComponents();\n formDashboardHeaderLabelId.setVisible(false);\n formDashboardHeaderLabelNik.setVisible(false);\n }", "public FormMenu() {\n initComponents();\n menuController = new MenuController(this);\n menuController.nonAktif();\n }", "public MainMenu() {\n initComponents();\n }", "public MainMenu() {\n initComponents();\n }", "public MainMenu() {\n initComponents();\n }", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "public MainMenu() {\n super();\n }", "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "public static void main(String[] args) {\r\n form_menu form_menu1 = new form_menu();\r\n }", "private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "public DropMainMenu() {\n initComponents();\n }", "@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}", "public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "private void addMenu(){\n //Where the GUI is created:\n \n Menu menu = new Menu(\"Menu\");\n MenuItem menuItem1 = new MenuItem(\"Lista de Libros\");\n MenuItem menuItem2 = new MenuItem(\"Nuevo\");\n\n menu.getItems().add(menuItem1);\n menu.getItems().add(menuItem2);\n \n menuItem1.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n cargarListaGeneradores( 2, biblioteca.getBiblioteca());\n }\n });\n \n menuItem2.setOnAction(new EventHandler<ActionEvent>() { \n @Override\n public void handle(ActionEvent event) {\n gridPane.getChildren().clear();\n addUIControls() ;\n }\n });\n \n menuBar.getMenus().add(menu);\n }", "public void createMenu() {\n deleteMenuGroupError = false;\n createMenuGroupError = true;\n if (menu.createMenu()) {\n updateMenuError = false;\n deleteMenuError = false;\n createMenuError = true;\n } else {\n createMenuError = false;\n }\n }", "private FlowPane setMainMenu() {\n FlowPane mainMenu = new FlowPane();\n mainMenu.setAlignment(Pos.CENTER);\n mainMenuButtons = new Button[3];\n String[] buttonText = {\"Flashcards\", \"Quizes\", \"Scores\"};\n for (int i = 0; i < mainMenuButtons.length; i++) {\n mainMenuButtons[i] = createButton(buttonText[i], TEXT_SIZE, 10);\n FlowPane.setMargin(mainMenuButtons[i], new Insets(10, 10, 30, 10));\n mainMenu.getChildren().add(mainMenuButtons[i]);\n }\n return mainMenu;\n }", "private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}", "private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }", "public MainMenu() {\n initComponents();\n lblWelcome.setVisible(false);\n jPanel1.setVisible(false);\n \n miLogout.setEnabled(false);\n \n mData.setVisible(false);\n mPelayanan.setVisible(false);\n mLaporan.setVisible(false);\n }", "private static JMenuBar createMenu() {\r\n JMenuBar mb = new JMenuBar();\r\n JMenu menu = new JMenu(\"File\");\r\n JMenuItem item = new JMenuItem(\"Save\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n saveActionPerformed();\r\n });\r\n menu.add(item);\r\n mb.add(menu);\r\n\r\n menu = new JMenu(\"Help\");\r\n item = new JMenuItem(\"Show how-to\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n showHelp();\r\n });\r\n menu.add(item);\r\n\r\n mb.add(menu);\r\n\r\n return mb;\r\n }", "public menu() {\n initComponents();\n }", "public menu() {\n initComponents();\n }", "private JMenu getMMain() {\n\t\tif (mMain == null) {\n\t\t\tmMain = new JMenu();\n\t\t\tmMain.setText(\"Dosya\");\n\t\t\tmMain.add(getMiConfigure());\n\t\t\tmMain.add(getMiExit());\n\t\t}\n\t\treturn mMain;\n\t}", "public menuAddStasiun() {\n initComponents();\n }", "public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public JMTMenuBar createMenu() {\r\n \t\tJMTMenuBar menu = new JMTMenuBar(JMTImageLoader.getImageLoader());\r\n \t\t// File menu\r\n \t\tMenuAction action = new MenuAction(\"File\", new AbstractJmodelAction[] { newModel, openModel, saveModel, saveModelAs, closeModel, null, exit });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Edit menu\r\n \t\taction = new MenuAction(\"Edit\", new AbstractJmodelAction[] {\r\n \t\t// editUndo, editRedo, null\r\n \t\t\t\tactionCut, actionCopy, actionPaste, actionDelete, null, takeScreenShot });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Define menu\r\n \t\taction = new MenuAction(\"Define\",\r\n \t\t\t\tnew AbstractJmodelAction[] { editUserClasses, editMeasures, editSimParams, editPAParams, null, editDefaults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Solve menu\r\n \t\taction = new MenuAction(\"Solve\", new AbstractJmodelAction[] { simulate, pauseSimulation, stopSimulation, null, switchToExactSolver, null,\r\n \t\t\t\tshowResults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Help menu\r\n \t\taction = new MenuAction(\"Help\", new AbstractJmodelAction[] { openHelp, null, about });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\treturn menu;\r\n \t}", "public MenuView(MainFrame main) {\n initComponents();\n \n this.mainFrame = main;\n }", "public MainMenu(ProductDao dao) {\n this.dao = dao;\n initComponents();\n setLocationRelativeTo(null);\n this.setResizable(true);\n\n\n }", "private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {\n new MainMenu().setVisible(true);\n dispose();\n }", "public void initMenu() {\n\t\t\r\n\t\treturnToGame = new JButton(\"Return to Game\");\r\n\t\treturnToGame.setBounds(900, 900, 0, 0);\r\n\t\treturnToGame.setBackground(Color.BLACK);\r\n\t\treturnToGame.setForeground(Color.WHITE);\r\n\t\treturnToGame.setVisible(false);\r\n\t\treturnToGame.addActionListener(this);\r\n\t\t\r\n\t\treturnToStart = new JButton(\"Main Menu\");\r\n\t\treturnToStart.setBounds(900, 900, 0, 0);\r\n\t\treturnToStart.setBackground(Color.BLACK);\r\n\t\treturnToStart.setForeground(Color.WHITE);\r\n\t\treturnToStart.setVisible(false);\r\n\t\treturnToStart.addActionListener(this);\r\n\t\t\r\n\t\t//add(menubackground);\r\n\t\tadd(returnToGame);\r\n\t\tadd(returnToStart);\r\n\t}", "private void createMenuBar() {\n\t\tmenuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(\"Arquivo\");\n\t\tnewMenuItem = new JMenuItem(\"Novo\");\n\n\t\topenMenuItem = new JMenuItem(\"Abrir arquivo\");\n\t\topenMenuItem.addActionListener(new OpenFileHandler());\n\n\t\tsaveMenuItem = new JMenuItem(\"Salvar arquivo\");\n\t\texportMenuItem = new JMenuItem(\"Exportar\");\n\t\texitMenuItem = new JMenuItem(\"Sair\");\n\n\t\t// fileMenu.add(newMenuItem);\n\t\tfileMenu.add(openMenuItem);\n\t\t// fileMenu.add(saveMenuItem);\n\t\t// fileMenu.add(exportMenuItem);\n\t\t// fileMenu.addSeparator();\n\t\t// fileMenu.add(exitMenuItem);\n\n\t\thelpMenu = new JMenu(\"Ajuda\");\n\t\thelpMenuItem = new JMenuItem(\"Ajuda\");\n\t\taboutMenuItem = new JMenuItem(\"Sobre\");\n\n\t\thelpMenu.add(helpMenuItem);\n\t\thelpMenu.add(aboutMenuItem);\n\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(helpMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}", "public MainMenuPanel() {\n\t\tinitComponents();\n\t}", "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 void actionPerformed(ActionEvent arg0) \n\t\t\t{\n\t\t\t\tMainMenu main = new MainMenu();\n\t\t\t\tmain.frame.setVisible(true);\n\t\t\t\tsetVisible(false); \n\t\t\t\tdispose(); \n\t\t\t}", "public FrmMenu() {\n initComponents();\n }", "public void createMenus()\n {\n EventQueueUtilities.runOnEDT(this::createMenusNow);\n }", "public Menu createViewMenu();", "public Menu() {\n initComponents();\n }", "public Menu() {\n initComponents();\n }", "public Menu() {\n initComponents();\n }", "public MainGUI() {\n initComponents();\n caja = new CajaGUI();\n estadisticas = new EstadisticasGUI();\n caja.disableAll();\n tab.add(\"Caja\", caja);\n tab.add(\"Estadísticas\", estadisticas);\n tab.setToolTipTextAt(0, \"Manejo de la Caja Diaria\");\n tab.setToolTipTextAt(1, \"Estadisticas de ventas y productos\");\n menuAdmin = new JMenu(\"Administrador\");\n menuUsuario = new JMenuItem();\n this.setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/recursos/icono.png\")).getImage());\n this.setTitle(\"Sistema de Gestión de Quiniela\");\n\n }", "public Menu createToolsMenu();", "public MainMenuGUI() {\n\t\tsetTitle(\"Tower Defense\");\n\t\tsetSize(750, 750);\n\t\tsetResizable(false);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tmainMenuPanel = new MainMenuPanel();\n\t\tmainMenuPanel.addMouseListener(new mouseListener());\n\t\tadd(mainMenuPanel);\n\n\t\tsetVisible(true);\n\t\tmainMenuGUI = this;\n\t}", "public frameMenu() {\n initComponents();\n }", "private void voltarMenu() {\n\t\tmenu = new TelaMenu();\r\n\t\tmenu.setVisible(true);\r\n\t\tthis.dispose();\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu_new_main, menu);\r\n return true;\r\n }", "public MenuPrincipal() {\n initComponents();\n \n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jDesktopPane1 = new javax.swing.JDesktopPane();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n mainClientes = new javax.swing.JMenuItem();\n mainCrudVehiculo = new javax.swing.JMenuItem();\n mainCrudRegistro = new javax.swing.JMenuItem();\n jMainUsuarios = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout jDesktopPane1Layout = new javax.swing.GroupLayout(jDesktopPane1);\n jDesktopPane1.setLayout(jDesktopPane1Layout);\n jDesktopPane1Layout.setHorizontalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 1262, Short.MAX_VALUE)\n );\n jDesktopPane1Layout.setVerticalGroup(\n jDesktopPane1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 571, Short.MAX_VALUE)\n );\n\n jMenu1.setText(\"Archivo\");\n jMenu1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenu1ActionPerformed(evt);\n }\n });\n\n mainClientes.setText(\"Clientes\");\n mainClientes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mainClientesActionPerformed(evt);\n }\n });\n jMenu1.add(mainClientes);\n\n mainCrudVehiculo.setText(\"Vehiculos\");\n mainCrudVehiculo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mainCrudVehiculoActionPerformed(evt);\n }\n });\n jMenu1.add(mainCrudVehiculo);\n\n mainCrudRegistro.setText(\"Registros\");\n mainCrudRegistro.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mainCrudRegistroActionPerformed(evt);\n }\n });\n jMenu1.add(mainCrudRegistro);\n\n jMainUsuarios.setText(\"Usuarios\");\n jMainUsuarios.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMainUsuariosActionPerformed(evt);\n }\n });\n jMenu1.add(jMainUsuarios);\n\n jMenuBar1.add(jMenu1);\n\n setJMenuBar(jMenuBar1);\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 .addComponent(jDesktopPane1)\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jDesktopPane1)\n .addContainerGap())\n );\n\n pack();\n }", "public Menu() {\n mainMenuScene = createMainMenuScene();\n mainMenu();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n pnlPrincipal = new javax.swing.JPanel();\n mnbRestaurante = new javax.swing.JMenuBar();\n mnuPersonal = new javax.swing.JMenu();\n mniAltaPersonal = new javax.swing.JMenuItem();\n mniModificarPersonal = new javax.swing.JMenuItem();\n mniBajaPersonal = new javax.swing.JMenuItem();\n mnuVentas = new javax.swing.JMenu();\n mniRegistroVentas = new javax.swing.JMenuItem();\n mnuInventario = new javax.swing.JMenu();\n mnuNomina = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n pnlPrincipal.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n mnuPersonal.setText(\"Personal\");\n\n mniAltaPersonal.setText(\"Alta\");\n mniAltaPersonal.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n mniAltaPersonalActionPerformed(evt);\n }\n });\n mnuPersonal.add(mniAltaPersonal);\n\n mniModificarPersonal.setText(\"Modificar\");\n mnuPersonal.add(mniModificarPersonal);\n\n mniBajaPersonal.setText(\"Baja\");\n mnuPersonal.add(mniBajaPersonal);\n\n mnbRestaurante.add(mnuPersonal);\n\n mnuVentas.setText(\"Ventas\");\n\n mniRegistroVentas.setText(\"Registro Ventas\");\n mniRegistroVentas.setToolTipText(\"\");\n mnuVentas.add(mniRegistroVentas);\n\n mnbRestaurante.add(mnuVentas);\n\n mnuInventario.setText(\"Inventario\");\n mnbRestaurante.add(mnuInventario);\n\n mnuNomina.setText(\"Nomina\");\n mnbRestaurante.add(mnuNomina);\n\n setJMenuBar(mnbRestaurante);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pnlPrincipal, javax.swing.GroupLayout.DEFAULT_SIZE, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(pnlPrincipal, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 278, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}", "public Menu createFileMenu();", "public void setMenu() {\n\t \n\t\ttop = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\t add(top, BorderLayout.CENTER);\n\t \n\t lPro = new JLabel(\"Projects: \");\n\t top.add(lPro);\n\t \n\t cPro = new JComboBox();\n\t getProject();\n\t\ttop.add(cPro);\n\t\t\n\t\tview = new JButton(\"View Sample\");\n\t\ttop.add(view);\n\t\t\n\t\tbottom = new JPanel(new FlowLayout(FlowLayout.CENTER));\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\t\n\t\tcancel = new JButton(\"Cancel\");\n\t\tbottom.add(cancel);\n\t\t\n\t\tdownload = new JButton(\"Download\");\n\t\tbottom.add(download);\n\t\t\n\t\tsetActionListener();\t\n\t}", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Produtos m2= new Menu_Produtos();\r\n \r\n }", "public void setUpEditMenu() {\n add(editMenu);\n\n //editMenu.add(cutItem);\n //editMenu.add(copyItem);\n //editMenu.add(pasteItem);\n //editMenu.addSeparator();\n clearAllItems.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n world.deleteAllEntities();\n }\n });\n editMenu.add(clearAllItems);\n editMenu.addSeparator();\n JMenuItem loadVectors = new JMenuItem(\"Load stimulus vectors...\");\n loadVectors.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n SFileChooser chooser = new SFileChooser(\".\", \"Load vectors\");\n File theFile = chooser.showOpenDialog();\n if (theFile != null) {\n double[][] vecs = Utils.getDoubleMatrix(theFile);\n world.loadStimulusVectors(vecs);\n }\n }\n });\n editMenu.add(loadVectors);\n\n }", "public MainForm() {\n initComponents();\n \n }", "public startingMenu() {\r\n initComponents();\r\n }", "public Menus() {\n initComponents();\n }", "private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}", "IFormManager createFormManagerForMenu(IForm menu);", "public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}", "private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }", "private void createMenuBar(){\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\t//Create the \"File\" menu\n\t\tthis.createFileMenu();\n\t\tmenuBar.add(fileMenu);\n\t\t\t\t\n\t\t//Create \"debug\" menu[disabled]\n\t\t//createDebugMenu();\t\t\n\t\t\n\t\t//last to be added to the menubar: about\n\t\tabout = new JMenuItem(\"About\");\n\t\tabout.addActionListener(this);\n\t\tmenuBar.add(about);\n\t}", "private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}", "private void buildMenu() {\r\n\t\tJMenuBar mainmenu = new JMenuBar();\r\n\t\tsetJMenuBar(mainmenu);\r\n\r\n\t\tui.fileMenu = new JMenu(\"File\");\r\n\t\tui.editMenu = new JMenu(\"Edit\");\r\n\t\tui.viewMenu = new JMenu(\"View\");\r\n\t\tui.helpMenu = new JMenu(\"Help\");\r\n\t\t\r\n\t\tui.fileNew = new JMenuItem(\"New...\");\r\n\t\tui.fileOpen = new JMenuItem(\"Open...\");\r\n\t\tui.fileImport = new JMenuItem(\"Import...\");\r\n\t\tui.fileSave = new JMenuItem(\"Save\");\r\n\t\tui.fileSaveAs = new JMenuItem(\"Save as...\");\r\n\t\tui.fileExit = new JMenuItem(\"Exit\");\r\n\r\n\t\tui.fileOpen.setAccelerator(KeyStroke.getKeyStroke('O', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.fileSave.setAccelerator(KeyStroke.getKeyStroke('S', InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.fileImport.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doImport(); } });\r\n\t\tui.fileExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dispose(); doExit(); } });\r\n\t\t\r\n\t\tui.fileOpen.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoLoad();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSave.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSave();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSaveAs.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSaveAs();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editUndo = new JMenuItem(\"Undo\");\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo()); \r\n\t\t\r\n\t\tui.editRedo = new JMenuItem(\"Redo\");\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo()); \r\n\t\t\r\n\t\t\r\n\t\tui.editCut = new JMenuItem(\"Cut\");\r\n\t\tui.editCopy = new JMenuItem(\"Copy\");\r\n\t\tui.editPaste = new JMenuItem(\"Paste\");\r\n\t\t\r\n\t\tui.editCut.addActionListener(new Act() { @Override public void act() { doCut(true, true); } });\r\n\t\tui.editCopy.addActionListener(new Act() { @Override public void act() { doCopy(true, true); } });\r\n\t\tui.editPaste.addActionListener(new Act() { @Override public void act() { doPaste(true, true); } });\r\n\t\t\r\n\t\tui.editPlaceMode = new JCheckBoxMenuItem(\"Placement mode\");\r\n\t\t\r\n\t\tui.editDeleteBuilding = new JMenuItem(\"Delete building\");\r\n\t\tui.editDeleteSurface = new JMenuItem(\"Delete surface\");\r\n\t\tui.editDeleteBoth = new JMenuItem(\"Delete both\");\r\n\t\t\r\n\t\tui.editClearBuildings = new JMenuItem(\"Clear buildings\");\r\n\t\tui.editClearSurface = new JMenuItem(\"Clear surface\");\r\n\r\n\t\tui.editUndo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doUndo(); } });\r\n\t\tui.editRedo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doRedo(); } });\r\n\t\tui.editClearBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearBuildings(true); } });\r\n\t\tui.editClearSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearSurfaces(true); } });\r\n\t\t\r\n\r\n\t\tui.editUndo.setAccelerator(KeyStroke.getKeyStroke('Z', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editRedo.setAccelerator(KeyStroke.getKeyStroke('Y', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCut.setAccelerator(KeyStroke.getKeyStroke('X', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCopy.setAccelerator(KeyStroke.getKeyStroke('C', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPaste.setAccelerator(KeyStroke.getKeyStroke('V', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPlaceMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0));\r\n\t\t\r\n\t\tui.editDeleteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));\r\n\t\tui.editDeleteSurface.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editDeleteBoth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editDeleteBuilding.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBuilding(); } });\r\n\t\tui.editDeleteSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteSurface(); } });\r\n\t\tui.editDeleteBoth.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBoth(); } });\r\n\t\tui.editPlaceMode.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doPlaceMode(ui.editPlaceMode.isSelected()); } });\r\n\t\t\r\n\t\tui.editPlaceRoads = new JMenu(\"Place roads\");\r\n\t\t\r\n\t\tui.editResize = new JMenuItem(\"Resize map\");\r\n\t\tui.editCleanup = new JMenuItem(\"Remove outbound objects\");\r\n\t\t\r\n\t\tui.editResize.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoResize();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.editCleanup.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoCleanup();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editCutBuilding = new JMenuItem(\"Cut: building\");\r\n\t\tui.editCutSurface = new JMenuItem(\"Cut: surface\");\r\n\t\tui.editPasteBuilding = new JMenuItem(\"Paste: building\");\r\n\t\tui.editPasteSurface = new JMenuItem(\"Paste: surface\");\r\n\t\tui.editCopyBuilding = new JMenuItem(\"Copy: building\");\r\n\t\tui.editCopySurface = new JMenuItem(\"Copy: surface\");\r\n\t\t\r\n\t\tui.editCutBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editCopyBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editPasteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editCutBuilding.addActionListener(new Act() { @Override public void act() { doCut(false, true); } });\r\n\t\tui.editCutSurface.addActionListener(new Act() { @Override public void act() { doCut(true, false); } });\r\n\t\tui.editCopyBuilding.addActionListener(new Act() { @Override public void act() { doCopy(false, true); } });\r\n\t\tui.editCopySurface.addActionListener(new Act() { @Override public void act() { doCopy(true, false); } });\r\n\t\tui.editPasteBuilding.addActionListener(new Act() { @Override public void act() { doPaste(false, true); } });\r\n\t\tui.editPasteSurface.addActionListener(new Act() { @Override public void act() { doPaste(true, false); } });\r\n\t\t\r\n\t\tui.viewZoomIn = new JMenuItem(\"Zoom in\");\r\n\t\tui.viewZoomOut = new JMenuItem(\"Zoom out\");\r\n\t\tui.viewZoomNormal = new JMenuItem(\"Zoom normal\");\r\n\t\tui.viewBrighter = new JMenuItem(\"Daylight (1.0)\");\r\n\t\tui.viewDarker = new JMenuItem(\"Night (0.5)\");\r\n\t\tui.viewMoreLight = new JMenuItem(\"More light (+0.05)\");\r\n\t\tui.viewLessLight = new JMenuItem(\"Less light (-0.05)\");\r\n\t\t\r\n\t\tui.viewShowBuildings = new JCheckBoxMenuItem(\"Show/hide buildings\", renderer.showBuildings);\r\n\t\tui.viewShowBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewSymbolicBuildings = new JCheckBoxMenuItem(\"Minimap rendering mode\", renderer.minimapMode);\r\n\t\tui.viewSymbolicBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewTextBackgrounds = new JCheckBoxMenuItem(\"Show/hide text background boxes\", renderer.textBackgrounds);\r\n\t\tui.viewTextBackgrounds.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewTextBackgrounds.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleTextBackgrounds(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomIn(); } });\r\n\t\tui.viewZoomOut.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomOut(); } });\r\n\t\tui.viewZoomNormal.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomNormal(); } });\r\n\t\tui.viewShowBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleBuildings(); } });\r\n\t\tui.viewSymbolicBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleMinimap(); } });\r\n\t\t\r\n\t\tui.viewBrighter.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doBright(); } });\r\n\t\tui.viewDarker.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDark(); } });\r\n\t\tui.viewMoreLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doMoreLight(); } });\r\n\t\tui.viewLessLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doLessLight(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD9, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomOut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD3, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomNormal.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewMoreLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD8, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewLessLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD2, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewBrighter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD7, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewDarker.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD1, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewStandardFonts = new JCheckBoxMenuItem(\"Use standard fonts\", TextRenderer.USE_STANDARD_FONTS);\r\n\t\t\r\n\t\tui.viewStandardFonts.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoStandardFonts();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.viewPlacementHints = new JCheckBoxMenuItem(\"View placement hints\", renderer.placementHints);\r\n\t\tui.viewPlacementHints.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoViewPlacementHints();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.helpOnline = new JMenuItem(\"Online wiki...\");\r\n\t\tui.helpOnline.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.helpAbout = new JMenuItem(\"About...\");\r\n\t\tui.helpAbout.setEnabled(false); // TODO implement\r\n\t\t\r\n\t\tui.languageMenu = new JMenu(\"Language\");\r\n\t\t\r\n\t\tui.languageEn = new JRadioButtonMenuItem(\"English\", true);\r\n\t\tui.languageEn.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"en\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.languageHu = new JRadioButtonMenuItem(\"Hungarian\", false);\r\n\t\tui.languageHu.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"hu\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\tbg.add(ui.languageEn);\r\n\t\tbg.add(ui.languageHu);\r\n\t\t\r\n\t\tui.fileRecent = new JMenu(\"Recent\");\r\n\t\tui.clearRecent = new JMenuItem(\"Clear recent\");\r\n\t\tui.clearRecent.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoClearRecent();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddAll(ui.fileRecent, ui.clearRecent);\r\n\t\t\r\n\t\taddAll(mainmenu, ui.fileMenu, ui.editMenu, ui.viewMenu, ui.languageMenu, ui.helpMenu);\r\n\t\taddAll(ui.fileMenu, ui.fileNew, null, ui.fileOpen, ui.fileRecent, ui.fileImport, null, ui.fileSave, ui.fileSaveAs, null, ui.fileExit);\r\n\t\taddAll(ui.editMenu, ui.editUndo, ui.editRedo, null, \r\n\t\t\t\tui.editCut, ui.editCopy, ui.editPaste, null, \r\n\t\t\t\tui.editCutBuilding, ui.editCopyBuilding, ui.editPasteBuilding, null, \r\n\t\t\t\tui.editCutSurface, ui.editCopySurface, ui.editPasteSurface, null, \r\n\t\t\t\tui.editPlaceMode, null, ui.editDeleteBuilding, ui.editDeleteSurface, ui.editDeleteBoth, null, \r\n\t\t\t\tui.editClearBuildings, ui.editClearSurface, null, ui.editPlaceRoads, null, ui.editResize, ui.editCleanup);\r\n\t\taddAll(ui.viewMenu, ui.viewZoomIn, ui.viewZoomOut, ui.viewZoomNormal, null, \r\n\t\t\t\tui.viewBrighter, ui.viewDarker, ui.viewMoreLight, ui.viewLessLight, null, \r\n\t\t\t\tui.viewShowBuildings, ui.viewSymbolicBuildings, ui.viewTextBackgrounds, ui.viewStandardFonts, ui.viewPlacementHints);\r\n\t\taddAll(ui.helpMenu, ui.helpOnline, null, ui.helpAbout);\r\n\t\t\r\n\t\taddAll(ui.languageMenu, ui.languageEn, ui.languageHu);\r\n\t\t\r\n\t\tui.fileNew.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoNew();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.toolbar = new JToolBar(\"Tools\");\r\n\t\tContainer c = getContentPane();\r\n\t\tc.add(ui.toolbar, BorderLayout.PAGE_START);\r\n\r\n\t\tui.toolbarCut = createFor(\"res/Cut24.gif\", \"Cut\", ui.editCut, false);\r\n\t\tui.toolbarCopy = createFor(\"res/Copy24.gif\", \"Copy\", ui.editCopy, false);\r\n\t\tui.toolbarPaste = createFor(\"res/Paste24.gif\", \"Paste\", ui.editPaste, false);\r\n\t\tui.toolbarRemove = createFor(\"res/Remove24.gif\", \"Remove\", ui.editDeleteBuilding, false);\r\n\t\tui.toolbarUndo = createFor(\"res/Undo24.gif\", \"Undo\", ui.editUndo, false);\r\n\t\tui.toolbarRedo = createFor(\"res/Redo24.gif\", \"Redo\", ui.editRedo, false);\r\n\t\tui.toolbarPlacementMode = createFor(\"res/Down24.gif\", \"Placement mode\", ui.editPlaceMode, true);\r\n\r\n\t\tui.toolbarUndo.setEnabled(false);\r\n\t\tui.toolbarRedo.setEnabled(false);\r\n\t\t\r\n\t\tui.toolbarNew = createFor(\"res/New24.gif\", \"New\", ui.fileNew, false);\r\n\t\tui.toolbarOpen = createFor(\"res/Open24.gif\", \"Open\", ui.fileOpen, false);\r\n\t\tui.toolbarSave = createFor(\"res/Save24.gif\", \"Save\", ui.fileSave, false);\r\n\t\tui.toolbarImport = createFor(\"res/Import24.gif\", \"Import\", ui.fileImport, false);\r\n\t\tui.toolbarSaveAs = createFor(\"res/SaveAs24.gif\", \"Save as\", ui.fileSaveAs, false);\r\n\t\tui.toolbarZoomNormal = createFor(\"res/Zoom24.gif\", \"Zoom normal\", ui.viewZoomNormal, false);\r\n\t\tui.toolbarZoomIn = createFor(\"res/ZoomIn24.gif\", \"Zoom in\", ui.viewZoomIn, false);\r\n\t\tui.toolbarZoomOut = createFor(\"res/ZoomOut24.gif\", \"Zoom out\", ui.viewZoomOut, false);\r\n\t\tui.toolbarBrighter = createFor(\"res/TipOfTheDay24.gif\", \"Daylight\", ui.viewBrighter, false);\r\n\t\tui.toolbarDarker = createFor(\"res/TipOfTheDayDark24.gif\", \"Night\", ui.viewDarker, false);\r\n\t\tui.toolbarHelp = createFor(\"res/Help24.gif\", \"Help\", ui.helpOnline, false);\r\n\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarNew);\r\n\t\tui.toolbar.add(ui.toolbarOpen);\r\n\t\tui.toolbar.add(ui.toolbarSave);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarImport);\r\n\t\tui.toolbar.add(ui.toolbarSaveAs);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarCut);\r\n\t\tui.toolbar.add(ui.toolbarCopy);\r\n\t\tui.toolbar.add(ui.toolbarPaste);\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarRemove);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarUndo);\r\n\t\tui.toolbar.add(ui.toolbarRedo);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarPlacementMode);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarZoomNormal);\r\n\t\tui.toolbar.add(ui.toolbarZoomIn);\r\n\t\tui.toolbar.add(ui.toolbarZoomOut);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarBrighter);\r\n\t\tui.toolbar.add(ui.toolbarDarker);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarHelp);\r\n\t\t\r\n\t}", "private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Empregados m1= new Menu_Empregados();\r\n \r\n }", "private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}", "public static void loadMainMenu()\n\t{\n\t\tinSubMenu = false;\n\t\t\n\t\tframe.getContentPane().remove(newGamePanel);\n\t\t\n\t\tmainLabel.setVisible(true);\n\t\t\n\t\tframe.getContentPane().add(mainPanel);\n\t\tframe.getContentPane().repaint();\n\t\tframe.setVisible(true);\n\t}", "public int create(Esysmeudef menu);", "private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\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 }", "IMenu getMainMenu();", "public void buildAndShowMenuForm() {\n SimpleForm.Builder builder =\n SimpleForm.builder()\n .translator(MinecraftLocale::getLocaleString, session.locale())\n .title(\"gui.advancements\");\n\n List<String> rootAdvancementIds = new ArrayList<>();\n for (Map.Entry<String, GeyserAdvancement> advancement : storedAdvancements.entrySet()) {\n if (advancement.getValue().getParentId() == null) { // No parent means this is a root advancement\n builder.button(MessageTranslator.convertMessage(advancement.getValue().getDisplayData().getTitle(), session.locale()));\n rootAdvancementIds.add(advancement.getKey());\n }\n }\n\n if (rootAdvancementIds.isEmpty()) {\n builder.content(\"advancements.empty\");\n }\n\n builder.validResultHandler((response) -> {\n String id = rootAdvancementIds.get(response.clickedButtonId());\n if (!id.equals(\"\")) {\n if (id.equals(currentAdvancementCategoryId)) {\n // The server thinks we are already on this tab\n buildAndShowListForm();\n } else {\n // Send a packet indicating that we intend to open this particular advancement window\n ServerboundSeenAdvancementsPacket packet = new ServerboundSeenAdvancementsPacket(id);\n session.sendDownstreamPacket(packet);\n // Wait for a response there\n }\n }\n });\n\n session.sendForm(builder);\n }", "public void startMenu() {\n setTitle(\"Nier Protomata\");\n setSize(ICoord.LAST_COL + ICoord.ADD_SIZE,\n ICoord.LAST_ROW + ICoord.ADD_SIZE);\n \n setButton();\n }", "void ajouterMenu(){\r\n\t\t\tJMenuBar menubar = new JMenuBar();\r\n\t \r\n\t JMenu file = new JMenu(\"File\");\r\n\t file.setMnemonic(KeyEvent.VK_F);\r\n\t \r\n\t JMenuItem eMenuItemNew = new JMenuItem(\"Nouvelle Partie\");\r\n\t eMenuItemNew.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t \t\r\n\t \t\t\r\n\t \t\t\r\n\t \tnew NouvellePartie();\r\n\t }\r\n\t });\r\n\t file.add(eMenuItemNew);\r\n\t \r\n\t JMenuItem eMenuItemFermer = new JMenuItem(\"Fermer\");\r\n\t eMenuItemFermer.setMnemonic(KeyEvent.VK_E);\r\n\t eMenuItemFermer.setToolTipText(\"Fermer l'application\");\r\n\t \r\n\t eMenuItemFermer.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t System.exit(0);\r\n\t }\r\n\t });\r\n\r\n\t file.add(eMenuItemFermer);\r\n\r\n\t menubar.add(file);\r\n\t \r\n\t JMenu aide = new JMenu(\"?\");\r\n\t JMenuItem eMenuItemRegle = new JMenuItem(\"Règles\");\r\n\t aide.add(eMenuItemRegle);\r\n\t menubar.add(aide);\r\n\r\n\t final String regles=\"<html><p>Le but est de récupérer les 4 objets Graal puis de retourner au château.</p>\"\t\r\n\t +\"<p>Après avoir récupéré un objet, chaque déplacement vous enlève autant de vie que le poids de l'objet</p></html>\";\r\n\t eMenuItemRegle.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t \t//default title and icon\r\n\t \t\t\tJOptionPane.showMessageDialog(gameFrame,\r\n\t \t\t\t regles,\"Règles du jeu\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \t\t\t\r\n\t }\r\n\t });\r\n\t \t\r\n\t\t\t\r\n\t this.setJMenuBar(menubar);\t\r\n\t\t}", "public void addMenuItems()\n\t{\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setLayout(null);\n\t\tstartButton.setBounds(350, 225, 100, 50);\n\t\t\n\t\toptionsButton = new JButton(\"Options\");\n\t\toptionsButton.setLayout(null);\n\t\toptionsButton.setBounds(350, 275, 100, 50);\n\t\t\n\t\texitButton = new JButton(\"Exit\");\n\t\texitButton.setLayout(null);\n\t\texitButton.setBounds(350, 375, 100, 50);\n\t\texitButton.setActionCommand(\"exit\");\n\t\texitButton.addActionListener((ActionListener) this);\n\t\t\n\t\tmainMenuPanel.add(startButton);\n\t\tmainMenuPanel.add(optionsButton);\n\t\tmainMenuPanel.add(startButton);\n\t}", "private void initMenuBar() {\r\n\t\t// file menu\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\r\n\t\tadd(fileMenu);\r\n\r\n\t\tJMenuItem fileNewMenuItem = new JMenuItem(new NewAction(parent, main));\r\n\t\tfileNewMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileNewMenuItem);\r\n\t\tJMenuItem fileOpenMenuItem = new JMenuItem(new OpenAction(parent, main));\r\n\t\tfileOpenMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileOpenMenuItem);\r\n\r\n\t\tJMenuItem fileSaveMenuItem = new JMenuItem(new SaveAction(main));\r\n\t\tfileSaveMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveMenuItem);\r\n\t\tJMenuItem fileSaveAsMenuItem = new JMenuItem(new SaveAsAction(main));\r\n\t\tfileSaveAsMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(fileSaveAsMenuItem);\r\n\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.addSeparator();\r\n\r\n\t\tJMenuItem exitMenuItem = new JMenuItem(new ExitAction(main));\r\n\t\texitMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\tfileMenu.add(exitMenuItem);\r\n\r\n\t\t// tools menu\r\n\t\tJMenu toolsMenu = new JMenu(\"Application\");\r\n\t\ttoolsMenu.setMnemonic(KeyEvent.VK_A);\r\n\t\tadd(toolsMenu);\r\n\r\n\t\tJMenuItem defineCategoryMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineCategoryAction());\r\n\t\tdefineCategoryMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_C, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineCategoryMenuItem);\r\n\t\tJMenuItem defineBehaviorNetworkMenuItem = new JMenuItem(\r\n\t\t\t\tnew DefineBehaviorNetworkAction());\r\n\t\tdefineBehaviorNetworkMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_B, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(defineBehaviorNetworkMenuItem);\r\n\t\tJMenuItem startSimulationMenuItem = new JMenuItem(\r\n\t\t\t\tnew StartSimulationAction(main));\r\n\t\tstartSimulationMenuItem.setAccelerator(KeyStroke.getKeyStroke(\r\n\t\t\t\tKeyEvent.VK_E, Event.CTRL_MASK));\r\n\t\ttoolsMenu.add(startSimulationMenuItem);\r\n\r\n\t\t// help menu\r\n\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\r\n\t\tadd(helpMenu);\r\n\r\n\t\tJMenuItem helpMenuItem = new JMenuItem(new HelpAction(parent));\r\n\t\thelpMenuItem.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H,\r\n\t\t\t\tEvent.CTRL_MASK));\r\n\t\thelpMenu.add(helpMenuItem);\r\n\r\n\t\t// JCheckBoxMenuItem clock = new JCheckBoxMenuItem(new\r\n\t\t// ScheduleSaveAction(parent));\r\n\t\t// helpMenu.add(clock);\r\n\t\thelpMenu.addSeparator();\r\n\t\tJMenuItem showMemItem = new JMenuItem(new ShowMemAction(parent));\r\n\t\thelpMenu.add(showMemItem);\r\n\r\n\t\tJMenuItem aboutMenuItem = new JMenuItem(new AboutAction(parent));\r\n\t\thelpMenu.add(aboutMenuItem);\r\n\t}", "public MainMenu() {\n initComponents();\n\n btnAbrir.addActionListener(this);\n btnOk.addActionListener(this);\n btnOk.setEnabled(false);\n\n txtCaminho.getDocument().addDocumentListener(new DocumentListener() {\n @Override\n public void insertUpdate(DocumentEvent de) {\n verifyPath();\n }\n\n @Override\n public void removeUpdate(DocumentEvent de) {\n verifyPath();\n }\n\n @Override\n public void changedUpdate(DocumentEvent de) {\n verifyPath();\n }\n\n });\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public void openMenu() {\r\n\t\tJFrame current_frame = this;\r\n\t\tContainer content_pane = getContentPane();\r\n\t\ttop_panel = new PicPanel(\"trials.png\");\r\n\t\tmiddle_panel = new PicPanel(\"trials2.png\");\r\n\t\tlower_panel = new PicPanel(\"trials3.png\");\r\n\t\t//add panels to the content pane\r\n\t\tcontent_pane.add(top_panel);\r\n\t\tcontent_pane.add(middle_panel);\r\n\t\tcontent_pane.add(lower_panel);\r\n\t\t//*******\r\n\t\tJLabel control_keys_label = createLabel(\"controlkeys.png\");\r\n\t\tmiddle_panel.add(control_keys_label);\r\n\t\t//****\r\n\t\tJButton return_button = createButton(\"returntomenu.png\");\r\n\t\treturn_button.addActionListener(new ActionListener(){\r\n\t\t public void actionPerformed(ActionEvent e){\r\n\t\t \tcurrent_frame.dispose();\r\n\t\t \tStartMenuScreen start_menu = new StartMenuScreen();\r\n\t\t }\r\n\t\t});\r\n\t\tlower_panel.add(return_button);\r\n\t}", "private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\n Menu_Contabilidade m3= new Menu_Contabilidade();\r\n \r\n }", "private void initMenu() {\n \n JMenuBar menuBar = new JMenuBar();\n \n JMenu commands = new JMenu(\"Commands\");\n \n JMenuItem add = new JMenuItem(\"Add\");\n add.addActionListener((ActionEvent e) -> {\n changeState(\"Add\");\n });\n commands.add(add);\n \n JMenuItem search = new JMenuItem(\"Search\");\n search.addActionListener((ActionEvent e) -> {\n changeState(\"Search\");\n });\n commands.add(search);\n \n JMenuItem quit = new JMenuItem(\"Quit\");\n quit.addActionListener((ActionEvent e) -> {\n System.out.println(\"QUITING\");\n System.exit(0);\n });\n commands.add(quit);\n \n menuBar.add(commands);\n \n setJMenuBar(menuBar);\n }", "public menu() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public void InitializeMenu(){\n\t\tmnbBar = new JMenuBar();\n\t\tmnuFile = new JMenu(\"File\");\n\t\tmnuFormat = new JMenu(\"Format\");\n\t\tmniOpen = new JMenuItem(\"Open\");\n\t\tmniExit = new JMenuItem(\"Exit\");\n\t\tmniSave = new JMenuItem(\"Save\");\n\t\tmniSaveAs = new JMenuItem(\"Save as\");\n\t\tmniSaveAs.setMnemonic(KeyEvent.VK_A);\n\t\tmniSave.setMnemonic(KeyEvent.VK_S);\n\t\tmniChangeBgColor = new JMenuItem(\"Change Backgroud Color\");\n\t\tmniChangeFontColor = new JMenuItem(\"Change Font Color\");\n\t\t//them menu item vao menu file\n\t\tmnuFile.add(mniOpen);\n\t\tmnuFile.addSeparator();\n\t\tmnuFile.add(mniExit);\n\t\tmnuFile.add(mniSaveAs);\n\t\tmnuFile.add(mniSave);\n\t\t//them menu item vao menu format\n\t\tmnuFormat.add(mniChangeBgColor);\n\t\tmnuFormat.addSeparator();\n\t\tmnuFormat.add(mniChangeFontColor);\n\t\t//them menu file va menu format vao menu bar\n\t\tmnbBar.add(mnuFile);\n\t\tmnbBar.add(mnuFormat);\n\t\t//thiet lap menubar thanh menu chinh cua frame\n\t\tsetJMenuBar(mnbBar);\n\t}", "private LoginMenu() {\n\n\t\t\n\t\t/**\n\t\t * Fenêtre positionnée comme tableau de ligne/colonne avec un espace en hauteur\n\t\t * et largeur\n\t\t **/\n\n\t\tmenuLogin = new JPanel(new GridLayout(2, 1, 0, 0));\n\t\tmenuLogin.setBackground(new Color(200, 100, 100));\n\n\t\t/**\n\t\t * Ajout du login et mot de passe via un tableau\n\t\t **/\n\n\t\tmenuLogin.add(InitialisationDuMenu());\n\t\tmenuLogin.add(InitDesBouttons());\n\t}", "private void createContextMenu(){\r\n\t\tmenu = new JMenuBar();\r\n\t\tint ctrl;\r\n\t\tif(MAC)\r\n\t\t\tctrl = ActionEvent.META_MASK;\r\n\t\telse\r\n\t\t\tctrl = ActionEvent.CTRL_MASK;\r\n\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tnewMenu = new JMenuItem(\"New\");\r\n\t\tnewMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ctrl));\r\n\t\tnewMenu.addActionListener(this);\r\n\t\topenMenu = new JMenuItem(\"Open\");\r\n\t\topenMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ctrl));\r\n\t\topenMenu.addActionListener(this);\r\n\t\trecentMenu = new JMenu(\"Open Recent\");\r\n\t\tpopulateRecentMenu();\r\n\t\tsaveMenu = new JMenuItem(\"Save\");\r\n\t\tsaveMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ctrl));\r\n\t\tsaveMenu.addActionListener(this);\r\n\t\tsaveAsMenu = new JMenuItem(\"Save As...\");\r\n\t\tsaveAsMenu.addActionListener(this);\r\n\t\tfileMenu.add(newMenu);\r\n\t\tfileMenu.add(openMenu);\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.add(saveMenu);\r\n\t\tfileMenu.add(saveAsMenu);\r\n\r\n\t\tmenu.add(fileMenu);\r\n\r\n\t\tJMenu editMenu = new JMenu(\"Edit\");\r\n\t\tpreferencesMenu = new JMenuItem(\"Preferences\");\r\n\t\tpreferencesMenu.addActionListener(this);\r\n\t\teditMenu.add(preferencesMenu);\r\n\r\n\t\tmenu.add(editMenu);\r\n\r\n\t\tif(!MAC){\r\n\t\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\t\tJMenuItem aboutMenuI = new JMenuItem(\"About\");\r\n\r\n\t\t\taboutMenuI.addActionListener(new ActionListener(){\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tshowAboutMenu();\r\n\t\t\t\t}\t\t\r\n\t\t\t});\r\n\t\t\thelpMenu.add(aboutMenuI);\r\n\t\t\tmenu.add(helpMenu);\r\n\t\t}\r\n\t}", "public frmMenus() {\n initComponents();\n this.setLocationRelativeTo(this); //situado al centro\n }", "public Menu_Ingreso() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public myView() {\n initComponents();\n CreatMenu();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public MainMenu(Game game) {\r\n\t\tsuper(game);\r\n\t}", "public void goBackToMainMenu() {\n new MainMenu();\n dispose();\n }", "public Menu() {\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tMenu.setAlwaysOnTop(true);\r\n\t\tMenu.setBackground(Color.LIGHT_GRAY);\r\n\t\tMenu.setResizable(false);\r\n\t\t\r\n\t\tMenu.setIconImage(Toolkit.getDefaultToolkit().getImage(Menu.class.getResource(\"/images/iconoTT.png\")));\r\n\t\t\r\n\t\tMenu.setTitle(\"TText v1.0\");\r\n\t\tMenu.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tMenu.setBounds(100, 100, 405, 293);\r\n\t\t\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBackground(Color.DARK_GRAY);\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\r\n\t\t\r\n\t\tMenu.setContentPane(contentPane);\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\t\r\n\t\tpanel.setBackground(Color.DARK_GRAY);\r\n\t\tcontentPane.add(panel, BorderLayout.CENTER);\r\n\t\tpanel.setLayout(null);\r\n\t\t\r\n\t\tJButton btnNewFile = new JButton(\"\");\r\n\t\tbtnNewFile.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfunc.NewFile(Menu);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tbtnNewFile.setToolTipText(\"New file...\");\r\n\t\tbtnNewFile.setIcon(new ImageIcon(Menu.class.getResource(\"/images/new_document.png\")));\r\n\t\tbtnNewFile.setBounds(72, 35, 42, 51);\r\n\t\tpanel.add(btnNewFile);\r\n\t\t\r\n\t\tJButton Button_OpenFile = new JButton(\"\");\r\n\t\tButton_OpenFile.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tfunc.OpenFileIni(Menu);\r\n\t\t\t}\r\n\t\t});\r\n\t\tButton_OpenFile.setToolTipText(\"Open file...\");\r\n\t\tButton_OpenFile.setIcon(new ImageIcon(Menu.class.getResource(\"/images/open_document.png\")));\r\n\t\tButton_OpenFile.setBounds(276, 35, 62, 51);\r\n\t\tpanel.add(Button_OpenFile);\r\n\t\t\r\n\t\tJLabel label = new JLabel(\"\");\r\n\t\tlabel.setToolTipText(\"Menu\");\r\n\t\tlabel.setBounds(0, 0, 389, 255);\r\n\t\tlabel.setIcon(new ImageIcon(Menu.class.getResource(\"/images/home.png\")));\r\n\t\tpanel.add(label);\r\n\t\t\r\n\t\tImageIcon background = new ImageIcon(Menu.class.getResource(\"/images/home.png\"));\r\n\t\t\r\n\t\tMenu.setVisible(true);\r\n\t}", "protected MenuBarView createMenuBuilder(Main mainFrameUtil) {\r\n return new MenuBarView(mainFrameUtil);\r\n }", "public Menu2() {\n initComponents();\n }" ]
[ "0.7148392", "0.71215963", "0.7110311", "0.7110311", "0.7110311", "0.7091922", "0.70337474", "0.69007987", "0.6876688", "0.6859509", "0.67572343", "0.6742755", "0.6730975", "0.6717563", "0.6704972", "0.67033577", "0.66978097", "0.66939694", "0.6692423", "0.6687884", "0.66550756", "0.6650011", "0.6650011", "0.664946", "0.66132116", "0.65879065", "0.6586396", "0.65765095", "0.6563282", "0.6554032", "0.65018845", "0.6497778", "0.6496078", "0.64958876", "0.64767545", "0.6465628", "0.64605474", "0.64405996", "0.6438079", "0.6435319", "0.6435319", "0.6435319", "0.64315253", "0.6428382", "0.64223933", "0.64132464", "0.64093477", "0.64072114", "0.6405059", "0.6404905", "0.63901985", "0.6372328", "0.63693243", "0.6369227", "0.6365643", "0.63653314", "0.6356389", "0.63532466", "0.6341481", "0.6338045", "0.633675", "0.63343275", "0.63223416", "0.631629", "0.6309778", "0.630811", "0.63057816", "0.63039935", "0.6296002", "0.62786573", "0.6277681", "0.62621886", "0.6243206", "0.6242646", "0.62417376", "0.62333035", "0.6233037", "0.6226371", "0.6224736", "0.62085277", "0.62052125", "0.6203715", "0.6203715", "0.6203715", "0.61941767", "0.6192378", "0.6186175", "0.61815226", "0.6180268", "0.6176501", "0.6174415", "0.6173607", "0.61702394", "0.6168678", "0.61610085", "0.61594313", "0.61573875", "0.6156", "0.6154777", "0.61537457", "0.6148792" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btnMin = new javax.swing.JLabel(); btnClose = new javax.swing.JLabel(); titleBar = new javax.swing.JLabel(); jPanel1 = new javax.swing.JPanel(); txtPlayer2 = new javax.swing.JTextField(); jLabel1 = new javax.swing.JLabel(); jSeparator1 = new javax.swing.JSeparator(); btnStart = new javax.swing.JButton(); jLabel2 = new javax.swing.JLabel(); txtPlayer3 = new javax.swing.JTextField(); jSeparator2 = new javax.swing.JSeparator(); jLabel4 = new javax.swing.JLabel(); txtPlayer1 = new javax.swing.JTextField(); jSeparator4 = new javax.swing.JSeparator(); errorDialog = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); background = new javax.swing.JLabel(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("/ludo/images/icon.png"))); setUndecorated(true); setResizable(false); getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); btnMin.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ludo/images/min.png"))); // NOI18N btnMin.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnMin.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnMinMouseClicked(evt); } }); getContentPane().add(btnMin, new org.netbeans.lib.awtextra.AbsoluteConstraints(647, 9, -1, -1)); btnClose.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ludo/images/close.png"))); // NOI18N btnClose.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR)); btnClose.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { btnCloseMouseClicked(evt); } }); getContentPane().add(btnClose, new org.netbeans.lib.awtextra.AbsoluteConstraints(692, 9, -1, -1)); titleBar.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() { public void mouseDragged(java.awt.event.MouseEvent evt) { titleBarMouseDragged(evt); } }); titleBar.addMouseListener(new java.awt.event.MouseAdapter() { public void mousePressed(java.awt.event.MouseEvent evt) { titleBarMousePressed(evt); } }); getContentPane().add(titleBar, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 730, 40)); jPanel1.setBackground(new java.awt.Color(32, 33, 35)); jPanel1.setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout()); txtPlayer2.setEditable(false); txtPlayer2.setBackground(new java.awt.Color(32, 33, 35)); txtPlayer2.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N txtPlayer2.setForeground(new java.awt.Color(255, 255, 255)); txtPlayer2.setBorder(null); txtPlayer2.setCaretColor(new java.awt.Color(255, 255, 255)); jPanel1.add(txtPlayer2, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 160, 190, 20)); jLabel1.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N jLabel1.setForeground(new java.awt.Color(57, 113, 177)); jLabel1.setText("2 nd"); jPanel1.add(jLabel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 160, -1, -1)); jPanel1.add(jSeparator1, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 190, 190, 10)); btnStart.setBackground(new java.awt.Color(126, 87, 194)); btnStart.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N btnStart.setForeground(new java.awt.Color(255, 255, 255)); btnStart.setText("Main Menu"); btnStart.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnStartActionPerformed(evt); } }); jPanel1.add(btnStart, new org.netbeans.lib.awtextra.AbsoluteConstraints(100, 320, 180, 40)); jLabel2.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N jLabel2.setForeground(new java.awt.Color(57, 113, 177)); jLabel2.setText("3 rd"); jPanel1.add(jLabel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 220, -1, -1)); txtPlayer3.setEditable(false); txtPlayer3.setBackground(new java.awt.Color(32, 33, 35)); txtPlayer3.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N txtPlayer3.setForeground(new java.awt.Color(255, 255, 255)); txtPlayer3.setBorder(null); txtPlayer3.setCaretColor(new java.awt.Color(255, 255, 255)); jPanel1.add(txtPlayer3, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 220, 190, 20)); jPanel1.add(jSeparator2, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 250, 190, 10)); jLabel4.setFont(new java.awt.Font("Dialog", 0, 14)); // NOI18N jLabel4.setForeground(new java.awt.Color(57, 113, 177)); jLabel4.setText("1 st"); jPanel1.add(jLabel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(70, 100, -1, -1)); txtPlayer1.setEditable(false); txtPlayer1.setBackground(new java.awt.Color(32, 33, 35)); txtPlayer1.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N txtPlayer1.setForeground(new java.awt.Color(255, 255, 255)); txtPlayer1.setBorder(null); txtPlayer1.setCaretColor(new java.awt.Color(255, 255, 255)); jPanel1.add(txtPlayer1, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 100, 190, 20)); jPanel1.add(jSeparator4, new org.netbeans.lib.awtextra.AbsoluteConstraints(120, 130, 190, 10)); errorDialog.setForeground(new java.awt.Color(255, 0, 51)); jPanel1.add(errorDialog, new org.netbeans.lib.awtextra.AbsoluteConstraints(50, 280, 300, 20)); jLabel5.setFont(new java.awt.Font("Calibri", 1, 36)); // NOI18N jLabel5.setForeground(new java.awt.Color(255, 255, 255)); jLabel5.setText("Game Over"); jPanel1.add(jLabel5, new org.netbeans.lib.awtextra.AbsoluteConstraints(110, 20, -1, -1)); getContentPane().add(jPanel1, new org.netbeans.lib.awtextra.AbsoluteConstraints(190, 40, 390, 380)); background.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ludo/images/mainBackground.png"))); // NOI18N getContentPane().add(background, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 730, 450)); setSize(new java.awt.Dimension(730, 450)); setLocationRelativeTo(null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
metodo para mostrar un mensaje por medio de un subproceso
private void mostrarMensaje(final String mensajeAMostrar) { Runnable hilo = new Runnable() { @Override public void run() { //implementamos subproceso displayArea.append(mensajeAMostrar); } }; SwingUtilities.invokeLater(hilo); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void handleMessage(Message msg) {\n System.out.println(\"recibe mensajes ...\");\n System.out.println(msg.obj);\n }", "public void exibirMsgs() {\n StringBuilder s = new StringBuilder();\n for (MensagemSistema msgSis : mensagens) {\n switch (msgSis.getTipo()) {\n case ConstantsControl.MSG_ALERT:\n s.append(\"[Alerta]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_INFO:\n s.append(\"[Informação]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_ERRO:\n s.append(\"[Erro]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n case ConstantsControl.MSG_SUCESSO:\n s.append(\"[Sucesso]: \\n\").append(msgSis.getMsg()).append(\"\\n\");\n break;\n }\n\n }\n JMessageUtil.showMensagensSistema(new javax.swing.JFrame(), s.toString());\n mensagens.clear();\n }", "public void afficherMessage () {\r\n System.out.println(\"(\"+valeur+\", \"+type+\")\"); \r\n }", "@Override\r\n\tpublic void falar(String mensagem) {\r\n\t\tSystem.out.println(\"[ \"+getNome()+\" ] \"+mensagem);\r\n\t}", "private void mostrarMensaje(final String mensajeAMostrar) {\n //mostrar el mensaje del subproceso de ejecucion despachador de eventos\n SwingUtilities.invokeLater(\n new Runnable() {//clase interna para asegurar que la giu se actualice apropiadamente\n public void run()//actualiza areaPantalla \n {\n areaPantalla.append(mensajeAMostrar);\n areaPantalla.setCaretPosition(\n areaPantalla.getText().length());\n\n }\n }//fin de la clase interna\n );//fin de la llamada a SwingUtilities.invokeLater\n }", "private void displayMsg(Object o) {\n Message msg = ((Datapacket)o).getMsg();\n client.printMessage(msg);\n }", "public String getMessage()\n {\n return super.getMessage()+promo_error+\"not found\";\n }", "void prosegui(String messaggio);", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "java.lang.String getMsg();", "public void getMessage() {\n\r\n\t}", "public void afficherMessage();", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "public static void displayMsg() {\n\t}", "@Override\n\tpublic String printMes() throws RemoteException{\n\t\tString mes=\"welcome you!\";\n\t\treturn mes;\n\t}", "private void DisplayMessage(Message msg) {\r\n String marker = \"---------------\";\r\n\r\n // Synchronous\r\n if (Options.ReceiveMode.Value().equals(Literals.Sync)) {\r\n if (messagesInTotal.equals(Literals.Infinite)) {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived\r\n + \" received synchronously \" + marker);\r\n }\r\n else {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived + \" of \"\r\n + messagesInTotal + \" received synchronously \" + marker);\r\n }\r\n }\r\n\r\n // Asynchronous\r\n else if (Options.ReceiveMode.Value().equals(Literals.Async)) {\r\n if (messagesInTotal.equals(Literals.Infinite)) {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived\r\n + \" received asynchronously \" + marker);\r\n }\r\n else {\r\n System.out.println(\"\\n\" + marker + \" Message \" + messagesReceived + \" of \"\r\n + messagesInTotal + \" received asynchronously \" + marker);\r\n }\r\n }\r\n\r\n System.out.println(msg.toString());\r\n\r\n try {\r\n // Get values for custom properties, if available\r\n String property1 = msg.getStringProperty(\"MyStringProperty\");\r\n\r\n // Get value for an int property, store the result in long to validate\r\n // the get operation.\r\n long property2 = ((long) Integer.MAX_VALUE) + 1;\r\n property2 = msg.getIntProperty(\"MyIntProperty\");\r\n\r\n if ((property1 != null) && (property2 < Integer.MAX_VALUE)) {\r\n System.out.println(\"[Message has my custom properties]\");\r\n }\r\n else {\r\n System.out.println(\"[Hmm... my custom properties aren't there!]\");\r\n }\r\n }\r\n catch (Exception e) {\r\n // It appears that the received message was not created by the SampleProducerJava application,\r\n // as the expected properties are not available. This is a valid scenario, so suppress this\r\n // exception.\r\n }\r\n return;\r\n }", "public void sucessoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_SUCESSO, msg));\n }", "@Override\r\n\tpublic void getMessage() {\n\t\tSystem.out.println(\"getMessage() 출력...\");\r\n\t}", "public String toString(){\n return String.format(\"[MessageBarHandler w/ msg:\\\"%s\\\"]\", getMsg());\n }", "@Override\n\tpublic void getMessage(TranObject msg) {\n\n\t}", "private void mensajeGrow(String mensaje, EntidadDTO entidadDTO) {\r\n\t\tFacesMessage msg = new FacesMessage(mensaje, entidadDTO.getNit() + \" \" + entidadDTO.getNombre());\r\n\t\tFacesContext.getCurrentInstance().addMessage(null, msg);\r\n\t}", "public void showMessage(){\n\t jsfMessageHelper.addInfo(\"Mesaj:\", (messageTxt==null?\"?\":messageTxt));\r\n\t}", "public String mensagemDeRegistros(){//METODO QUE DIZ INICIO E FIM DOS REGISTROS LISTADOS\r\n\t\treturn dao.getMensagemNavegacao();\r\n\t}", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "public void fncMensajeEnviarMensajeTo(Session perfil){\n if( Storage.fncStorageEncontrarUnaCuenta( Rutas.path_profiles, perfil.getStrEmail() ) ){\r\n \r\n // * Establecer perfil\r\n this.perfil = perfil;\r\n \r\n //* Enviado mensaje...\r\n this.fncMensajeEnviadoMensajeTo();\r\n \r\n }\r\n }", "public static void mensagemRealizarCadastro() {\n\t\tJOptionPane.showMessageDialog(null, \"Favor clique em atualizar para re-listar e selecionar o novo item recem cadastrado.\", \"Informação\", JOptionPane.INFORMATION_MESSAGE, new ImageIcon(Toolkit.getDefaultToolkit().getImage(CadastroQuartos.class.getResource(\"/Imagens/Informacao32.png\"))));\n\t}", "private void showFinishMsg() {}", "public String creerMessage(){\n return profile.getMessage();\n }", "public void printMessages(){\n for(int i =0; i<msgCount;++i){\n System.out.printf(\"%s %s\\n\",messages[i].getRecipient()+\":\",messages[i].getDecodedMessage());\n }\n }", "public void MessageInvitCommand(String msg)\n {\n System.out.println(\"> \"+msg);\n }", "private synchronized void display(Message msg) {\n\t\tSystem.out.println(msg.toString());\n\t\tguiConversation.append(msg.toString());\n\t}", "@Override\n public String getMessage(){\n \n }", "private static void imprimirMensajeEnPantalla() {\n\tSystem.out.println(\"########### JUEGO EL AHORCADO ###########\");\n\timprimirAhorcado(intentosRestantes);\n\tSystem.out.println(\"\\nPALABRA ACTUAL: \" + getPalabraActualGuionBajo());\n\tSystem.out.println(\"INTENTOS RESTANTES: \" + intentosRestantes);\n\t}", "public abstract String mensajeCrearCelula();", "@Override\n\t\tpublic void displayMessage() {\n\t\t\tsuper.displayMessage();\n\t\t}", "private synchronized void display(String msg) {\n\n\t\t//guiConversation.append(msg);\n\t\tSystem.out.println(msg);\n\t}", "public void message() {\n JOptionPane.showMessageDialog(null,\n \"Task was deleted successfully.\",\n \"Message\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void bienvenida(){\n System.out.println(\"Bienvenid@ a nuestro programa de administracion de parqueos\");\n }", "private void viewMessage()\n {\n System.out.println( inbox );\n inbox = \"\";\n }", "@Override\n public String getMessage()\n {\n return message;\n }", "@Override\n public void recibirMensaje(Mensaje mensaje) {\n mensajes.append(mensaje);\n }", "public String getMsg() { return this.msg; }", "public void infoMsg(String msg) {\n mensagens.add(new MensagemSistema(ConstantsControl.MSG_INFO, msg));\n }", "@Override\r\n\tvoid updateMessage(String msg) {\n\t\tSystem.out.println(msg);\r\n\t}", "private void gravarConteudoMsg(StringBuffer conteudoMsg, int codigoMsg) throws Exception {\n File diretorio = new File(\"Mensagens\");\n if (diretorio.mkdir() || diretorio.exists()) {// Cria um diretório que retorna true se criou e verifica se diretório existe\n try {\n PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(new File(diretorio, codigoMsg + \".txt\"))));\n out.println(conteudoMsg);\n out.close();\n return;\n } catch (IOException ex) {\n throw new Exception(\"Erro ao gravar a mensagem no arquivo\");\n }\n }\n throw new Exception(\"Não é posível salvar a mensagem no arquivo\");\n }", "public String getMessage()\n {\n return super.getMessage()+promo_error.getCode()+\"already exists\";\n }", "java.lang.String getTheMessage();", "public static void mensajeInicioPrueba(String nombre_clase){\n \n System.out.println(\" --- INICIANDO PRUEBAS DE \"+nombre_clase+\".JAVA --- \");\n }", "public void enviarMensajeInfoMesas(int idUsuario, MensajeInfoMesas mensaje) {\n comunicador.enviarMensaje(idUsuario, TipoMensaje.INFO_MESAS, mensaje);\n System.out.println(\"ControladorServidor: info de mesas enviado\");\n\n }", "private void MensajeInf(String strMensaje){\n javax.swing.JOptionPane obj =new javax.swing.JOptionPane();\n String strTit;\n strTit=\"Mensaje del sistema Zafiro\";\n obj.showMessageDialog(this,strMensaje,strTit,javax.swing.JOptionPane.INFORMATION_MESSAGE);\n }", "@Override\n\tpublic void info(Message msg) {\n\n\t}", "@Override\r\n\t\tpublic void showMessage(String message) {\n\t\t\t\r\n\t\t}", "public void printMessage(DiagnosticKind kind, CharSequence msg, MMObj mmObj);", "public void writeStatusMessage(String room, String message) {\n ((GroupChatPanel)grouptabs.get(room)).writeStatusMessage(message);\n }", "public abstract void displayEndMsg ();", "public void emitirSaludoConGui()\n {\n JOptionPane.showMessageDialog(null, \n\t\t\t\t\t\"<html><p style ='color: red'>Saludo en modo gráfico </p></html>\" + \n\t\t\t\t\t\"\\n\\nBienvenido/a al curso de programación orientada a objetos\\n en Java utilizando BlueJ\",\n\t\t\t\t\t\"Ejemplo de prueba\", JOptionPane.INFORMATION_MESSAGE);\n }", "public void addMessage(String mensaje, int tipo) {\n switch (tipo) {\n case 1:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, mensaje, \"\"));\n break;\n case 2:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, mensaje, \"\"));\n break;\n case 3:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, mensaje, \"\"));\n break;\n case 4:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, mensaje, \"\"));\n break;\n default:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.FACES_MESSAGES, mensaje));\n break;\n }\n }", "public void addMessage(String mensaje, int tipo) {\n switch (tipo) {\n case 1:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO, mensaje, \"\"));\n break;\n case 2:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, mensaje, \"\"));\n break;\n case 3:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_WARN, mensaje, \"\"));\n break;\n case 4:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.SEVERITY_FATAL, mensaje, \"\"));\n break;\n default:\n FacesContext.getCurrentInstance().addMessage(null, new FacesMessage(FacesMessage.FACES_MESSAGES, mensaje));\n break;\n }\n }", "@Override\n\tpublic void showMessage(String message) {\n\n\t}", "public void visualizarMensaje(Object pila);", "public Rendable getMessageDisplay(){\n return MESSAGE_DISPLAY;\n }", "public String toString(){\n\n\tString msg =\"\";\n\n\tmsg += super.toString()+\"\\n\";\n\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\tmsg += \"---------------------------------------------------------\";\n\n\n return msg;\n}", "public synchronized void mensajeRecibido(int tipo, Serializable mensaje) {\n\n System.out.println(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n log.info(\"ControladorServidor : mensajeRecibido : tipo=\" + tipo + \" mensaje=\" + mensaje);\n /*Tipos de mensajes:\n * 1- Mensaje de Chat\n * 2- Mensaje de Jugada o Informacion de Salas y mesas\n * 3- Mensaje de Entrada en mesa\n * 4- Mensaje de Salida de Mesa\n * 5- Cierre de conexión\n * 6- Mensaje de Entrada en Sala\n * 7- Mensaje de Salida de Sala\n *\n */\n if (tipo == TipoMensaje.MENSAJE_CHAT) {\n MensajeChat mensajeChat = ((MensajeChat) mensaje);\n System.out.println(\"server \" + mensajeChat.get_usuario());\n GestorChatServidor.getInstance(this).dejamensaje(mensajeChat);\n\n } else if (tipo == TipoMensaje.MENSAJE_JUGADA) {\n MensajeJugada mensajeJugada = ((MensajeJugada) mensaje);\n GestorJuegosServidor.getInstance(this).dejamensaje(mensajeJugada);\n //TODO Devolver la confirmacion de la jugada\n\n } else if (tipo == TipoMensaje.ENTRADA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n if (GestorUsuarios.getInstancia(this).insertarJugadorEnMesa(m.getUsuario(), m.getMesa())) //Envio mensaje de confimacion de la entrada en la mesa\n {\n enviarMensajeMesa(m.getUsuario(), m);//necesito saber en qué mesa se ha insertado el cliente. Quito null y envio mensaje de vuelta\n } else {\n enviarMensajeMesa(m.getUsuario(), m);//TODO mirar porque devuelve false\n }\n } else if (tipo == TipoMensaje.SALIDA_MESA) {\n\n MensajeMesa m = (MensajeMesa) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnMesa(m.getUsuario());\n\n } else if (tipo == TipoMensaje.CERRAR_CONEXION) {\n //TODO cierre de conexion\n } else if (tipo == TipoMensaje.ENTRADA_SALA) {\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).insertarJugadorEnSala(m.getUsuario(), m.getSala());\n\n //envío mensaje de vuelta para confirmarle al usuario que ha entrado en la sala\n enviarMensajeSala(m.getUsuario(), m);\n\n //envío la info de todas las mesas de la sala.\n enviarMesasDeUnaSala(m.getUsuario(), m.getSala());\n\n } else if (tipo == TipoMensaje.SALIDA_SALA) {\n\n MensajeSala m = (MensajeSala) mensaje;\n GestorUsuarios.getInstancia(this).eliminarJugadorEnSala(m.getUsuario());\n }\n\n\n\n }", "protected abstract String getMessage();", "public String simple() {\r\n return super.getMessage();\r\n }", "public String getMessage(){\n return saisieMessage.getText();\n }", "private String geraMensagem(Mensagem msg) {\n\t\treturn new StringBuilder()\n\t\t\t.append(msg.remetente.nome)\n\t\t\t.append(\" enviou para \")\n\t\t\t.append(msg.destinatario.nome)\n\t\t\t.append(\" uma mensagem suspeita.\")\n\t\t\t.toString();\n\t}", "@Override\n public String getMessage() {\n return MESSAGE;\n }", "public static void msg(String msg)\n\t{\n\t\tCalico.logger.debug(\"STATUS CURRENT CONTENT PANE: \"+CalicoDataStore.calicoObj.getContentPane().getComponent(0).getClass().getName());\n\t\tCalico.logger.info(msg);\n\t}", "public void displayMessage(){//displayMessage body start\n\t\tSystem.out.printf(\"course name = %s\\n\", getCourseName());\n\t}", "private void fncMensajeEnviadoMensajeTo() {\n this.perfil_seleccionado = this.perfil.getStrEmail();\r\n this.yoker = session_activa.getStrEmail();\r\n \r\n \r\n if( !Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, this.perfil.getStrEmail()+Storage.identificador_amigo1) ){\r\n // Si no somos amigos nos ponemos un *\r\n perfil_seleccionado += \"*\"; // Si perfil selecciona no es amigo mio se pone un *\r\n yoker += \"*\";\r\n }\r\n \r\n // Buscar el chat\r\n boolean db_chats = Storage.fncStorageBuscarUnaLinea(session_activa.stgChats, perfil_seleccionado);\r\n boolean db_friends = Storage.fncStorageBuscarUnaLinea(session_activa.stgFriends, perfil_seleccionado+Storage.identificador_amigo1);\r\n \r\n // * Verificar estado de amistad para perfil\r\n String amistad = Storage.fncStorageVerificarAmistad(this.session_activa.stgFriends, this.perfil.getStrEmail());\r\n \r\n // * Verificar si somos amigos\r\n if( db_friends == true && db_chats == true && amistad.equals(\"amigos\") )\r\n this.fncConversacionActiva();\r\n else if( db_friends == false && db_chats == false && amistad.equals(\"none\") ) \r\n this.fncCrearConversacion();\r\n \r\n// }else if( db_friends == true && db_chats == false ){\r\n// this.fncConversacionPendientePerfil();\r\n// \r\n// }else if( db_friends == false && db_chats == true ){\r\n// this.fncConversacionPendienteSessionActiva();\r\n// \r\n// }else if( db_friends == false && db_chats == false ){\r\n// this.fncCrearConversacion();\r\n// '\r\n// }\r\n\r\n }", "public void printMsg(String msg)\n\t{\n\t\tmsgArea.append(msg);\n\t}", "protected void messageList() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tmessageStore.print();\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"You must start listener first.\");\r\n\t\t}\r\n\t}", "public void infoDebug(String nombreClase, String mensaje) {\r\n\t\tif (controlador.getModoDebug())\r\n\t\t\tSystem.out\r\n\t\t\t\t\t.println(\"Debug :: [\" + nombreClase + \"]\\n \" + mensaje);\r\n\t}", "@Override\n\tpublic void print() {\n\t\tSystem.out.print(\"MsgOwner\");\n\t}", "public String printMsg() {\n System.out.println(MESSAGE);\n return MESSAGE;\n }", "private void infoMessage(String message) {\n JOptionPane.showMessageDialog(this, message,\n \"VSEGraf - user management\", JOptionPane.INFORMATION_MESSAGE);\n }", "@Override\n\tpublic String getMensaje() {\n\t\treturn this.mensaje;\n\t}", "@Override\n public String getMessage(int player) {\n if (player == 0) {\n return \"Player\";\n }\n return \"CPU\";\n }", "private void displayMessage(String info) {\n \tif (message == null) {\n \t\tsetupMessage();\n \t}\n \tmessage.setLabel(info);\n\t\tadd(message, 6, 15);\n }", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}", "@Override\n public String toString() {\n return message;\n }", "@Override\n\tpublic void procesareMesajChat(MesajChat mesaj) {\n\t\tif(mesaj.getDestinatie(). isEmpty() || mesaj.getDestinatie().equals(\"@Everyoane\")) {\n\t\t\tif(this.next!=null)\n\t\t\t\tthis.next.procesareMesajChat(mesaj);\n\t\t\t\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//procesare mesaj privat\n\t\t\tSystem.out.println(String.format(\"Mesaj privat pentru %s = %s\",\n\t\t\t\t\tmesaj.getDestinatie(), mesaj.getContinut()));\n\t\t}\n\t}", "@Override\r\n\tpublic void getMessage(String message) {\n\t\tSystem.out.println(\"this guy name is: \"+this.getName()+\" recieve the message is \"+message);\r\n\t}", "private void display(String msg) {\n\t\tString msgF = \"\\tClient- \" + msg + \"\\n\\n >> \";\n System.out.print(msgF);\n }", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "public abstract String getMessage();", "public void mostrarConsola() {\n\t\tProceso aux = this.raiz;\n\t\t// int i=this.numProcesos;\n\t\twhile (aux.sig != this.raiz /* i>0 */) {\n\t\t\t// i--;\n\t\t\taux = aux.sig;\n\t\t\tSystem.out.println(aux.toString());\n\t\t}\n\t}", "public String getMsgcont() {\n return msgcont;\n }", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "public String toString(){\n\n\t\tString msg =\"\";\n\t\tmsg += super.toString()+\"\\n\";\n\t\tmsg +=\"El tipo de servicio es: \"+typeOfService+\"\\n\";\n\t\tmsg +=\"La cantidad de kiloWatts registrada es: \"+kiloWatts+\"\\n\";\n\t\tmsg +=\"Cantidad de arboles que deben plantar: \"+calculatedConsuption()+\"\\n\";\n\n\t return msg;\n\t}", "public String getMessage() {\r\n\treturn messageSB.toString();\r\n }", "public void addMessage(String mensaje) {\n FacesMessage message = new FacesMessage(FacesMessage.SEVERITY_INFO, mensaje, null);\n FacesContext.getCurrentInstance().addMessage(null, message);\n }", "Object getMessage();", "private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}", "@Override\n public String getMessage()\n {\n return message;\n }", "@Override\n\tpublic void messageRecu(String forum, String auteur, String message) {\n\t\tSystem.out.println(\"(chez \"+name+\") \"+ auteur+\"@\"+forum+\"> \"+message);\n\t}", "@Override\n public String getMessage() {\n return message;\n }", "public String getMessage() { return message; }" ]
[ "0.63743836", "0.62875664", "0.6251684", "0.6244472", "0.61565423", "0.6124021", "0.607254", "0.60446954", "0.60186505", "0.6001864", "0.5999518", "0.5961929", "0.59526676", "0.5946449", "0.5931882", "0.5910936", "0.588842", "0.5883395", "0.5872479", "0.58682376", "0.58440113", "0.5833381", "0.58153987", "0.5786238", "0.5774073", "0.5768231", "0.57672036", "0.5759378", "0.5751202", "0.5744247", "0.5742568", "0.57418615", "0.5741701", "0.57355165", "0.5732034", "0.57259154", "0.571852", "0.57047486", "0.57045406", "0.56915855", "0.56867605", "0.56855816", "0.5685223", "0.5678509", "0.5673634", "0.5667272", "0.5666411", "0.56651306", "0.5663456", "0.56600565", "0.56442016", "0.56419295", "0.56364924", "0.5634345", "0.5631182", "0.5604298", "0.55984944", "0.55984944", "0.5598075", "0.55958074", "0.55900663", "0.5581974", "0.5578844", "0.5576299", "0.55732155", "0.5572998", "0.55696857", "0.55675614", "0.55631936", "0.5548159", "0.55468", "0.5542111", "0.55410117", "0.5536369", "0.5525346", "0.55240583", "0.5520918", "0.55188745", "0.55170435", "0.5516871", "0.55114937", "0.551138", "0.5509643", "0.55089396", "0.5497109", "0.54953796", "0.54938126", "0.54934067", "0.5493352", "0.5489695", "0.5489314", "0.5484398", "0.54842806", "0.5483716", "0.54827815", "0.54693353", "0.54625344", "0.54606354", "0.5459126", "0.5456929" ]
0.60543376
7
Handle the /plugin command
public boolean execute(PluginCommandManager manager, CommandSender sender, String[] args) { if (args.length == 0) { outputAllPluginsOverview(manager, sender); return true; } if (!manager.hasPermission(sender, this.getPermission())) { manager.sendMessage(sender, "You do not have permission to access these commands."); return true; } if (args.length != 2) { // invalid usage manager.sendMessage(sender, "The following plugin command uses exist:"); manager.sendMessage(sender, " - plugin reload <plugin>"); manager.sendMessage(sender, " - plugin disable <plugin>"); manager.sendMessage(sender, " - plugin enable <plugin>"); manager.sendMessage(sender, " - plugin load <plugin path>"); manager.sendMessage(sender, " - plugin unload <plugin>"); manager.sendMessage(sender, " - plugin info <plugin>"); return true; } final String command = args[0]; final String pluginName = args[1]; if (command.equalsIgnoreCase("load")) { return loadPlugin(manager, sender, pluginName); } if (command.equalsIgnoreCase("unload")) { return unloadPlugin(manager, sender, pluginName); } if (command.equalsIgnoreCase("reload")) { return reloadPlugin(manager, sender, pluginName); } if (command.equalsIgnoreCase("disable")) { return disablePlugin(manager, sender, pluginName); } if (command.equalsIgnoreCase("enable")) { return enablePlugin(manager, sender, pluginName); } if (command.equalsIgnoreCase("info")) { return pluginInformation(manager, sender, pluginName); } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract void onPluginEnable();", "Plugin getPlugin( );", "Plugin getPlugin();", "public CommandHandler(MCAdmin plugin) {\n\t\tthis.plugin = plugin;\n\t\t//this.conn = plugin.getConnection();\n\t\t//this.wi = plugin.getWeb();\n\t}", "public interface Plugin {\n void doUsefil();\n}", "public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}", "public void startPlugin() {\n\t\t// add a new ResourceChangeListener\n\t\tCheops.getInstance().addResourceChangeListener();\n\t}", "public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!this.Methods.hasMethod()) {\n if(this.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n ConnectFour.Method = this.Methods.getMethod();\n Log.info(\"Using: \" + ConnectFour.Method.getName() + \" - \" + ConnectFour.Method.getVersion());\n }\n }\n }", "public void loadPluginsStartup();", "@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "static public void callPluginCreate(Object plugin)\n {\n callSpecialFunc(plugin, \"create\");\n }", "@Override\n public void executeByPluginType(PluginType pluginType) {\n pluginFactory\n .getPlugin(pluginType)\n .otherOutput();\n }", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!EconServerListener.Methods.hasMethod()) {\n if(EconServerListener.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n this.plugin.Method = EconServerListener.Methods.getMethod();\n System.out.println(\"[\" + plugin.name + \"] Payment method found (\" + this.plugin.Method.getName() + \" version: \" + this.plugin.Method.getVersion() + \")\");\n EconomyHandler.currencyEnabled = true;\n }\n }\n }", "public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}", "private void onOK() {\n if (TextUtil.isEmpty(nick.getText())) {\n showMessage(\"插件名称\");\n return;\n }\n if (TextUtil.isEmpty(name.getText())) {\n showMessage(\"插件代号\");\n return;\n }\n if (TextUtil.isEmpty(version.getText())) {\n showMessage(\"插件版本\");\n return;\n }\n if (TextUtil.isEmpty(path.getText())) {\n showMessage(\"插件路径\");\n return;\n }\n String nickV = nick.getText();\n String nameV = name.getText();\n String versionV = version.getText();\n UploadPluginDto dto = RequestManagement.uploadPlugin(selectFile, nameV, versionV, nickV);\n if (dto != null && dto.getResult() != null) {\n if (pluginPanel != null) {\n pluginPanel.addItem(dto.getResult());\n }\n }\n dispose();\n }", "@Listener\n public void onServerStart(GameStartedServerEvent event) {\n logger.debug(\"*************************\");\n logger.debug(\"HI! MY PLUGIN IS WORKING!\");\n logger.debug(\"*************************\");\n }", "private void process() {\n final PluginsDialog dialog = new PluginsDialog();\n dialog.show();\n }", "@Override\r\n\tpublic void configPlugin(Plugins me) {\n\r\n\t}", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "boolean addHelpInfo(PluginHelpInfo helpInfo);", "static public void doCommand(Object plugin, String command, Context con, Modules mods, IRCInterface irc)\n {\n System.out.println(\"Calling method command\" + command);\n callFunc(plugin, \"command\" + command,con,mods,irc);\n }", "public interface PluginGateway {\r\n ExecutionResult runPlugin(Object... inputs) throws Exception;\r\n}", "public interface FJPluginInterface\r\n{\r\n\t/**\r\n\t * When the plugin is loaded, the pluin's implementation of this method\r\n\t * will be invoked. If nothing needs to be done on startup in a plugin,\r\n\t * keep the method empty. For instance you might do all the work in the\r\n\t * constructor, or you could wait for user input, which will make this\r\n\t * method unnecessary.\r\n\t */\r\n\tpublic void start();\r\n\t\r\n\t/**\r\n\t * Invoked when a plugin is unloaded and another plugin is loaded or when\r\n\t * Flask Jaws is terminated. Useful for shutting down sockets and readers\r\n\t * when you exit your plugin. If nothing needs to be done upon exit or no\r\n\t * cleaning needs to be done, this method may be left empty.\r\n\t * <p>\r\n\t * If a plugin supports networking of any kind, it should call\r\n\t * {@link se.mansehr.flaskjaws.pluginclasses.FJNetwork#close()} in this method.\r\n\t */\r\n\tpublic void stop();\r\n\t\r\n\t/**\r\n\t * Whenever there's a plugin loaded and you select a menu item from the\r\n\t * menu bar, this method will be called. It should pause the plugin\r\n\t * implementing this method. If no pausing is neccessary, it can be\r\n\t * implemented as an emtpy method.\r\n\t */\r\n\tpublic void pause();\r\n\t\r\n\t/**\r\n\t * Has the opposite function as {@link #pause()}, it resumes the plugin\r\n\t * once the actions invoked by selecting a menu item is done.\r\n\t */\r\n\tpublic void resume();\r\n}", "public void sendCommFromPlugin(String command){\n\n sendCommand(command, true);\n this.fromPlugin = true;\n }", "public void setPluginName(String pluginName);", "private boolean pluginInformation(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n Plugin plugin = getPlugin(pluginName);\r\n if (plugin == null) {\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found.\");\r\n return true;\r\n }\r\n\r\n PluginDescriptionFile discription = plugin.getDescription();\r\n String authors = \"\";\r\n List<String> authorsList = discription.getAuthors();\r\n for (int authorIndex = 0; authorIndex < authorsList.size(); ++authorIndex) {\r\n String author = authorsList.get(authorIndex);\r\n authors += author + \", \";\r\n }\r\n if (authorsList.size() > 0) {\r\n authors = authors.substring(0, authors.length() - 2);\r\n } else {\r\n authors = \"Unknown\";\r\n }\r\n \r\n String key = \"plugin.\" + m_plugin.pluginNameToKey(plugin.getName());\r\n boolean showUrl = m_plugin.getSetting(key + \".webpage.url\", true);\r\n String url = m_plugin.getSetting(key + \".webpage.url\", discription.getWebsite());\r\n \r\n manager.sendMessage(player, ChatColor.GOLD + \"||======================================||\");\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Name: \" + ChatColor.WHITE + plugin.getName());\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Version: \" + ChatColor.WHITE + discription.getVersion());\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Authors: \" + ChatColor.WHITE + authors);\r\n if (showUrl) { manager.sendMessage(player, ChatColor.DARK_GREEN + \"Website: \" + ChatColor.BLUE + url); }\r\n manager.sendMessage(player, ChatColor.DARK_GREEN + \"Enabled: \" + ChatColor.WHITE + (plugin.isEnabled() ? \"True\" : \"False\"));\r\n manager.sendMessage(player, ChatColor.GOLD + \"||======================================||\");\r\n return true;\r\n }", "public native void loadPlugin(final String plugin);", "@Override\r\n public boolean isPluginEnabled()\r\n {\n return true;\r\n }", "void registerQuestionPlugin(QuestionPlugin plugin);", "private void startPluginActivity(Context context, DLIntent intent) {\r\n DLPluginManager dlPluginManager = DLPluginManager.getInstance(context);\r\n if (!dlPluginManager.isHostPackageSet()){\r\n dlPluginManager.setHostPackageName(\"com.ryg\");\r\n }\r\n dlPluginManager.startPluginActivity(this, intent);\r\n }", "@Override\n public void executeByPluginType(String contentType) {\n pluginFactory\n .getPlugin(contentType)\n .otherOutput();\n }", "public ServerTool(JavaPlugin plugin) {\n\t\tthis.plugin = plugin;\n\t\tthis.queue = new ArrayList<String[]>();\n\t\tBukkit.getMessenger().registerOutgoingPluginChannel(this.plugin, \"BungeeCord\");\n\t\tBukkit.getMessenger().registerIncomingPluginChannel(this.plugin, \"BungeeCord\", this);\n\t}", "void activePlugIn(String plugInKey);", "public void insertPluginMenu(java.awt.MenuItem mi);", "public GuiListener(@NotNull Plugin plugin) {\n this.plugin = plugin;\n }", "public void onPluginChanged( Intent intent ) {\n\t\tlogger.info( \"onReceive\", intent );\n\t\tlogger.info( \"data\", intent.getData() );\n\t\tupdateInstalledPlugins( intent.getExtras() );\n\t}", "protected void pluginInitialize() {}", "private Plugin loadPlugin(String p) {\n Plugin plugin = this.getServer().getPluginManager().getPlugin(p);\n if (plugin != null && plugin.isEnabled()) {\n getLogger().info(\" Using \" + plugin.getDescription().getName() + \" (v\" + plugin.getDescription().getVersion() + \")\");\n return plugin;\n }\n return null;\n }", "public interface PluginBase {\n void init();\n void run();\n}", "public Plug1CommandExecutor(Plug1 plugin) {\n\t\tthis.plugin = plugin;\n\t}", "@Override\n\tpublic boolean execute(RPGEssentials plugin, CommandSender sender, String... args) {\n String base = (args.length > 0 ? args[0] : \"\");\n String last = (args.length > 0 ? args[args.length - 1] : \"\");\n \n // If there's no base argument, show a helpful message.\n if (base.equals(\"\")) {\n Messenger.sendMessage(sender, \"/karma help|?\");\n return true;\n }\n \n // The help command is a little special\n if (base.equals(\"?\") || base.equalsIgnoreCase(\"help\")) {\n showHelp(sender);\n return true;\n }\n \n // Get all commands that match the base.\n List<Command> matches = getMatchingCommands(base);\n \n // If there's more than one match, display them.\n if (matches.size() > 1) {\n Messenger.sendMessage(sender, \"Multiple command matches\");\n for (Command cmd : matches) {\n showUsage(cmd, sender, false);\n }\n return true;\n }\n \n // If there are no matches at all, notify.\n if (matches.size() == 0 && args.length > 0) {\n \tif(sender instanceof Player) {\n \t\tplugin.getKarma();\n\t\t\t\tMessenger.sendMessage(sender, ChatColor.GRAY+\"Karma von \"+sender.getName()+\": \"+ChatColor.WHITE+Karma.getPlayerHandler().getKarma(sender.getName()));\n \t} else\n \t\tMessenger.sendMessage(sender, \"Command not found\");\n \treturn true;\n }\n \n // Grab the only match.\n Command command = matches.get(0);\n CommandInfo info = command.getClass().getAnnotation(CommandInfo.class);\n \n // First check if the sender has permission.\n if (!PermHandler.hasPerm(sender, info.permission())) {\n \tMessenger.sendMessage(sender, \"No Permission\");\n return true;\n }\n \n // Check if the last argument is a ?, in which case, display usage and description\n if (last.equals(\"?\") || last.equals(\"help\")) {\n showUsage(command, sender, true);\n return true;\n }\n \n // Otherwise, execute the command!\n String[] params = trimFirstArg(args);\n if (!command.execute(plugin, sender, params)) {\n showUsage(command, sender, true);\n }\n return true;\n }", "public void enable(CommonPlugin plugin);", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}", "@Override\n\tpublic void onCommand(CommandSender sender, String[] args) {\n\t\t\n\t}", "static public void callPluginDestroy(Object plugin)\n {\n callSpecialFunc(plugin, \"destroy\");\n }", "@Beta\npublic interface PluginEndpoint {\n /**\n * get the type of method parameter\n *\n * @return Type of method's first parameter\n * @throws IllegalArgumentException if argument list is empty\n */\n Type getMethodParameterType() throws IllegalArgumentException;\n\n /**\n * get the return type of plugin method\n *\n * @return return type of method\n */\n Type getResultType();\n\n /**\n * invoke method with the request object as parameter.\n *\n * @param reqest request object\n * @return result from invoking the object\n * @throws IOException when instantiating plugin before invoking method on it\n * @throws ClassNotFoundException when instantiating plugin before invoking method on it\n * @throws InvocationTargetException method invoke can throw\n * @throws IllegalAccessException method invoke can throw\n * @throws IllegalArgumentException method invoke can throw\n */\n Object invoke(Object reqest) throws IOException, ClassNotFoundException,\n InvocationTargetException, IllegalAccessException, IllegalArgumentException;\n}", "@Override\n\tpublic void addRolePlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "@Override\n public void onEnable(){\n \tgetLogger().info(\"onEnable has been invoked!\");\n \t// This will throw a NullPointerException if you don't have the command defined in your plugin.yml file!\n \tgetCommand(\"basic\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"WhatAmI\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"isonline\").setExecutor(new BetatestCommandExecutor(this));\n }", "public void onPluginStart()\n\t{\n\t\tfor (Integer event : this.getNetworkCommands())\n\t\t\tCalicoEventHandler.getInstance().addListener(event.intValue(), this, CalicoEventHandler.ACTION_PERFORMER_LISTENER);\n\t\t\n\t\tCanvasStatusBar.addMenuButtonRightAligned(CreateCustomScrapButton.class);\n\t\t\n\t\t//Add an additional voice to the bubble menu\n\t\t//CGroup.registerPieMenuButton(SaveToPaletteButton.class);\n\t\t\n\t\t//Register to the events I am interested in from Calico's core events\n\t\t//Example: CalicoEventHandler.getInstance().addListener(NetworkCommand.VIEWING_SINGLE_CANVAS, this, CalicoEventHandler.PASSIVE_LISTENER);\n\n\t}", "private void sendInfoPlugins(HttpServletRequest request, String action) {\n\t\t\n\t\tEmployee user = getUser(request);\n\t\t\n\t\tif (user != null && !isAjaxCall(request)) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t// Info for load plugins\n\t\t\t\tList<PluginLoad> pluginsLoad = new ArrayList<PluginLoad>();\n\t\t\t\t\n\t\t\t\tString servletName = this.getClass().getSimpleName();\n\t\t\t\t\n\t\t\t\tPluginLogic logic = new PluginLogic();\n\t\t\t\t\n\t\t\t\t// Find plugins for logged user\n\t\t\t\tHashMap<String, Boolean> plugins = logic.getPlugins(getUser(request).getContact());\n\t\t\t\n\t\t\t\tfor (String plugin : plugins.keySet()) {\n\t\t\t\t\t\n\t\t\t\t\t// Plugin enabled\n\t\t\t\t\tif (plugins.get(plugin)) {\n\n\t\t\t\t\t\tOperationPlugin operationPlugin = null;\n\t\t\t\t \t\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Instantiate the operation\n\t\t\t\t\t\t\toperationPlugin = (OperationPlugin) Class.forName(OperationPlugin.pluginClass(plugin)).newInstance();\n setInformationPlugin(request, operationPlugin);\n\n\t\t\t\t\t\t} catch (Exception e) {\n//\t\t\t\t\t\t\tLOGGER.warn(e);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Plugin has configuration\n\t\t\t\t\t\tif (operationPlugin != null) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Add configuration of plugin\n\t\t\t\t\t\t\tpluginsLoad.addAll(operationPlugin.pluginLoad(servletName, action));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n // Find in package annotation\n Set<Class<?>> configuredClasses = CacheStatic.getPluginLoads();\n\n if (ValidateUtil.isNotNull(configuredClasses)) {\n\n // Proccess anotations\n for (Class<?> configuredClass : configuredClasses) {\n\n\n // Get annotation configuration\n es.sm2.openppm.core.plugin.annotations.PluginLoad load = configuredClass.getAnnotation(es.sm2.openppm.core.plugin.annotations.PluginLoad.class);\n\n if (Arrays.asList(load.servlet()).contains(servletName)) {\n\n PluginAction annotation = CacheStatic.getPluginAction(configuredClass);\n\n PluginLoad pluginLoad = new PluginLoad();\n pluginLoad.setPluginName(annotation.plugin());\n pluginLoad.setSelector(load.selector());\n pluginLoad.setTypeModification(load.loadType().name());\n pluginLoad.setTemplate(annotation.action());\n pluginLoad.setForms(load.forms());\n\n pluginsLoad.add(pluginLoad);\n }\n }\n }\n\n\n\t\t\t\t// Add configuration for load plugins\n\t\t\t\tif (ValidateUtil.isNotNull(pluginsLoad)) {\n\t\t\t\t\t\n\t\t\t\t\tfor (PluginLoad load : pluginsLoad) {\n\t\t\t\t\t\tLOGGER.debug(\"Plugin for load: \"+load.getPluginName()+\" [\"+load.getSelector()+\"||\"+load.getTemplate()+\"]\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\trequest.setAttribute(\"pluginsLoad\", pluginsLoad);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\tLOGGER.warn(\"Error in plugin\", e);\n\t\t\t}\n\t\t}\n\t}", "public String loadNewPlugin(final String extPointId);", "protected abstract String getPluginId();", "private static void initPlugins() {\n \tJSPFProperties props = new JSPFProperties();\n PluginManager pm = PluginManagerFactory.createPluginManager(props);\n pm.addPluginsFrom(new File(\"plugins/\").toURI());\n JavaBot.plugins = new PluginManagerUtil(pm).getPlugins(javaBotPlugin.class);\n }", "public CommandFramework(Plugin plugin) {\n this.plugin = plugin;\n\n if (plugin.getServer().getPluginManager() instanceof SimplePluginManager) {\n SimplePluginManager manager = (SimplePluginManager) plugin.getServer().getPluginManager();\n\n try {\n Field field = SimplePluginManager.class.getDeclaredField(\"commandMap\");\n field.setAccessible(true);\n map = (CommandMap) field.get(manager);\n } catch (IllegalArgumentException | NoSuchFieldException | IllegalAccessException | SecurityException e) {\n e.printStackTrace();\n }\n }\n }", "@Override\n public int getPluginId() {\n return 10202;\n }", "public PluginCommand(@NotNull DropMultiplier plugin) {\n Preconditions.checkArgument(plugin != null, \"plugin cannot be null.\");\n this.plugin = plugin;\n }", "public NormalizationPlugin(String menuLabel, String pluginFileName)\n {\n super(menuLabel, pluginFileName);\n }", "void addPlugin(BaseComponentPlugin baseComponent);", "@Override\n public String getPluginId() {\n return PLUGIN_ID;\n }", "public CWSCommandExecutor(CastleWarsStats plugin) {\n\t\tthis.plugin = plugin;\n\t}", "private boolean loadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n // load and enable the given plugin\r\n File pluginFolder = manager.getPlugin().getDataFolder().getParentFile();\r\n File pluginFile = new File(pluginFolder + File.separator + pluginName);\r\n \r\n boolean fileExists = false;\r\n for (File actualPluginFile : pluginFolder.listFiles()) {\r\n if (actualPluginFile.getAbsolutePath().equalsIgnoreCase(pluginFile.getAbsolutePath())) {\r\n fileExists = true;\r\n pluginFile = actualPluginFile;\r\n break;\r\n }\r\n }\r\n \r\n if (!fileExists) {\r\n // plugin does not exist\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found at location:\");\r\n manager.sendMessage(player, pluginFile.getAbsolutePath());\r\n return true;\r\n }\r\n // Try and load the plugin\r\n Plugin plugin = null;\r\n try {\r\n plugin = pluginManager.loadPlugin(pluginFile);\r\n } catch (InvalidPluginException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (InvalidDescriptionException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (UnknownDependencyException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n }\r\n if (plugin == null) {\r\n // The plugin failed to load correctly\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' failed to load correctly.\");\r\n return true;\r\n }\r\n // plugin loaded and enabled successfully\r\n pluginManager.enablePlugin(plugin);\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' has been succesfully loaded and enabled.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "public interface IntroPlugin extends MMPlugin {\n /**\n * Provide a \"splash\" image to display at the top of the intro dialog. If\n * this method returns null, then the default Micro-Manager logo will be\n * used.\n *\n * @return The image to use at the top of the intro dialog, or null.\n */\n Icon getSplashImage();\n\n /**\n * Provide a list of paths to config files to include in the config file\n * dropdown menu. These will be provided in addition to any config files\n * the user has used in the past. This list may be null or empty.\n *\n * @return List of config files to show to the user, or null.\n */\n List<String> getConfigFilePaths();\n}", "public void sendInfo(@NotNull CommandSender sender) {\n\n PluginDescriptionFile info = getDescription();\n\n sendMsg(sender, \"plugin-info\",\n info.getName(),\n info.getVersion(),\n String.join(\", \", info.getAuthors()),\n info.getDescription(),\n info.getWebsite()\n );\n }", "public void execute() {\n _plugin.openNavigator();\n }", "public void load(Maussentials plugin);", "public interface TTSPlugin extends Plugin{\n\n\t/**\n\t * Synthesize the given text and play the result.\n\t * \n\t * @param msg The text to synthesize.\n\t */\n\tpublic void sayText(String msg);\n}", "public void registerEvents(Citizens plugin);", "public interface CliSplashScreen extends CliPlugin\n{\n /**\n * This method is called when the Shell is ready to display the SplashScreen.\n * @param ctx \n */\n public void render(CliContext ctx);\n}", "private void fillPluginList() {\n\t\tlesSitesPlugin = new ArrayList<HashMap<String, String>>();\n\t\tcategories = new ArrayList<String>();\n\t\tPackageManager packageManager = getPackageManager();\n\t\tIntent baseIntent = new Intent(ACTION_PICK_PLUGIN);\n\t\tbaseIntent.setFlags(Intent.FLAG_DEBUG_LOG_RESOLUTION);\n\t\tList<ResolveInfo> list = packageManager.queryIntentServices(baseIntent, PackageManager.GET_RESOLVED_FILTER);\n\t\tfor (int i = 0; i < list.size(); ++i) {\n\t\t\tResolveInfo info = list.get(i);\n\t\t\tServiceInfo sinfo = info.serviceInfo;\n\t\t\t IntentFilter filter = info.filter;\n\t\t\tNotification.log(tag, \"taille de la liste de Plugin: \" + i + 1 + \"; sinfo: \" + sinfo);\n\t\t\tif (sinfo != null) {\n\t\t\t\t HashMap<String, String> item = new HashMap<String, String>();\n\t\t\t\t item.put(KEY_PKG, sinfo.packageName); // nom du package\n//\t\t\t\t item.put(KEY_SERVICENAME, StringLt.lastSegment(sinfo.name, '.')); // nom du plugin\n\t\t\t\t item.put(KEY_SERVICENAME, sinfo.name);\n\t\t\t\t String firstCategory = null;\n\t\t\t\t if (filter != null) {\n\t\t\t\t StringBuilder actions = new StringBuilder();\n\t\t\t\t for (Iterator<String> actionIterator = filter.actionsIterator(); actionIterator.hasNext();) {\n\t\t\t\t String action = actionIterator.next();\n\t\t\t\t if (actions.length() > 0)\n\t\t\t\t actions.append(\",\");\n\t\t\t\t actions.append(action);\n\t\t\t\t }\n\t\t\t\t StringBuilder categories = new StringBuilder();\n\t\t\t\t for (Iterator<String> categoryIterator = filter.categoriesIterator(); categoryIterator.hasNext();) {\n\t\t\t\t String category = categoryIterator.next();\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = category;\n\t\t\t\t if (categories.length() > 0)\n\t\t\t\t categories.append(\",\");\n\t\t\t\t categories.append(category);\n\t\t\t\t }\n\t\t\t\t// item.put(KEY_ACTIONS, new\n\t\t\t\t// String(StringLt.lastSegment(actions.toString(), '.')));\n\t\t\t\t// item.put(KEY_CATEGORIES, new\n\t\t\t\t// String(StringLt.lastSegment(categories.toString(),\n\t\t\t\t// '.')));\n\t\t\t\t item.put(KEY_ACTIONS, new String(actions));\n\t\t\t\t item.put(KEY_CATEGORIES, new String(categories));\n\t\t\t\t }\n\t\t\t\t else {\n\t\t\t\t item.put(KEY_ACTIONS, \"<null>\");\n\t\t\t\t item.put(KEY_CATEGORIES, \"<null>\");\n\t\t\t\t }\n\t\t\t\t if (firstCategory == null)\n\t\t\t\t firstCategory = \"\";\n\t\t\t\t categories.add(firstCategory);\n\t\t\t\t lesSitesPlugin.add(item);\n\t\t\t\t// lesSitesPlugin.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t\tlesSites.add(StringLt.lastSegment(sinfo.name, '.'));\n\t\t\t}\n\t\t}\n\t}", "public void running(String plugin)\n {\n synchronized(this.monitor)\n {\n this.running.add(plugin);\n this.uiContents.putIfAbsent(plugin, new HashMap<>());\n this.ui.runningTasks(plugin + \" is running\"); \n }\n }", "public static void setup()\n\t{\n\t\tregisterEvent(calico.plugins.events.clients.ClientConnect.class);\n\t\tregisterEvent(calico.plugins.events.clients.ClientDisconnect.class);\n\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapCreate.class);\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapDelete.class);\n\t\tregisterEvent(calico.plugins.events.scraps.ScrapReload.class);\n\t\t\n\t\t\n\t\t//System.out.println(\"LOAD PLUGINS: \"+COptions.server.plugins);\n\t\t\n\t\tlogger.debug(\"Loading plugins\");\n\t\t\n\t\ttry\n\t\t{\n\t\t\tPluginFinder pluginFinder = new PluginFinder();\n\t\t\tpluginFinder.search(\"plugins/\");\n\t\t\tList<Class<?>> pluginCollection = pluginFinder.getPluginCollection();\n\t\t\tfor (Class<?> plugin: pluginCollection)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Loading \" + plugin.getName());\n\t\t\t\tregisterPlugin(plugin);\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tString[] pluginsToLoad = COptions.server.plugins.split(\",\");\n\t\t\n//\t\tif(pluginsToLoad.length>0)\n//\t\t{\n//\t\t\tfor(int i=0;i<pluginsToLoad.length;i++)\n//\t\t\t{\n//\t\t\t\ttry\n//\t\t\t\t{\n//\t\t\t\t\tClass<?> pluginClass = Class.forName(pluginsToLoad[i].trim());\n//\t\t\t\t\tregisterPlugin(pluginClass);\n//\t\t\t\t}\n//\t\t\t\tcatch(Exception e)\n//\t\t\t\t{\n//\t\t\t\t\tlogger.error(\"Could not load plugin \"+pluginsToLoad[i].trim());\n//\t\t\t\t}\n//\t\t\t}\n//\t\t}\n\t\t\n\t\n\t}", "@Override\n public void help(CommandSender sender) {\n \n }", "public void run() {\n\t\tnew UsageCheckAdapter(EventSourceID.CD_PLUGIN_UNINSTALL);\n\t\t\n\t\tInstallationView view = CodeGeneratorActivator.getDefault().getInstallationView();\n\t\tview.uninstallPlugin();\n\t}", "public void addPlugin(String key, T pluginClass);", "File getPluginDirectory(String pluginId);", "public interface Plugin<T> {\n\t/**\n\t * Method returns the hashmap with loaded plugins. </p> Hashmap is inside\n\t * PluginManager class.\n\t * \n\t * @return hashmap with loaded plugins\n\t */\n\tpublic HashMap<String, T> getStorage();\n\n\t/**\n\t * Method adds the plugin specified in pluginClass param into hashmap with\n\t * param key. </p> Hashmap is inside PluginManager class.\n\t * \n\t * @param key\n\t * to hashmap with added plugin\n\t * @param pluginClass\n\t * of type class to save into hashmap\n\t */\n\tpublic void addPlugin(String key, T pluginClass);\n\n\t/**\n\t * Name of the plugin.\n\t * \n\t * @return name of plugin\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Tests if the plugin has any error\n\t * \n\t * @return true if there is any error.\n\t */\n\tpublic boolean hasError();\n}", "public APlugin getPlugin() {\n return plugin;\n }", "public abstract void onInvoked(CommandSender sender, String[] args);", "public static IP_Main getPluginInstance() { return pluginInstance; }", "static private void callSpecialFunc(Object plugin, String func)\n {\n Class coreClass = plugin.getClass();\n try\n {\n if( coreClass != null )\n {\n Method tempMethod = coreClass.getDeclaredMethod(func,new Class[]{});\n \n Object[] objectArray = new Object[0];\n \n tempMethod.invoke(plugin,objectArray);\n }\n }\n catch( NoSuchMethodException e )\n {\n // Here we just shrug our shoulders and go 'meh' in a Skumby-esque fashion\n // If people don't want to provide a create/destroy method, we can't force\n // them.\n }\n catch( Exception e )\n {\n System.out.println(\"Exception in calling plugin function: \" + e);\n e.printStackTrace();\n }\n }", "@Override\n public void onEnable() {\n this.saveDefaultConfig();\n\n // First read from the config\n FileConfiguration pluginConfig = this.getConfig();\n Logger logger = getLogger();\n boolean isValid = checkIntegrity(pluginConfig);\n\n logger.info(\"Started Polo plugin\");\n\n if (!isValid)\n logger.severe(\"Incomplete config.yml, please modify\");\n\n Config config = new Config(\n pluginConfig.getString(\"address\"),\n pluginConfig.getInt(\"port\"),\n pluginConfig.getString(\"token\"),\n pluginConfig.getBoolean(\"relay-minecraft-membership\"),\n pluginConfig.getBoolean(\"relay-minecraft-deaths\"),\n pluginConfig.getBoolean(\"relay-matrix-kicks\"),\n pluginConfig.getBoolean(\"relay-matrix-bans\")\n );\n\n // Grab the adventure-platform-bukkit audiences object\n this.audiences = BukkitAudiences.create(this);\n\n // Start up the web client\n WebClient webClient = new WebClient(\n this,\n config\n );\n\n // Make the WebClient log through our PluginLogger\n Logger.getLogger(WebClient.class.getName()).setParent(getLogger());\n\n // Start up the Minecraft event listener\n PluginManager manager = getServer().getPluginManager();\n manager.registerEvents(new MCListener(this, webClient), this);\n\n logger.info(\"Started webclient and chat listeners\");\n\n // Start up the Essentials event listener if the plugin is enabled\n if (manager.isPluginEnabled(\"Essentials\")) {\n manager.registerEvents(new Ess3Listener(this, webClient), this);\n logger.info(\"Started Essentials listener\");\n }\n\n // See if the address and port are pointing to Marco\n boolean vibeCheck = webClient.vibeCheck();\n\n if (vibeCheck) {\n logger.finer(\"Started bridge\");\n Sync sync = new Sync(webClient);\n getServer().getScheduler().runTaskTimerAsynchronously(this, sync, 0, 5*20);\n } else {\n logger.severe(\"Couldn't properly connect to marco is the address and port set properly?\");\n }\n }", "public interface GameHelperPlugin {\n\n public ScoreBoard getScoreBoard();\n\n public void getRules();\n\n public void displayMenu();\n\n\n}", "@Override\n public boolean onCommand(CommandSender sender, Command command, String label, String[] arguments) {\n if (!(sender instanceof Player)) {\n sender.sendMessage(Constants.PLUGIN_NAME + \" commands can only be run by a player\");\n return true;\n }\n\n // Now we know that the sender was a player\n Player player = (Player) sender;\n String commandName = command.getName();\n\n if (commandName.equalsIgnoreCase(PLUGIN_COMMAND_LONG_NAME) || commandName\n .equalsIgnoreCase(PLUGIN_COMMAND_SHORT_NAME)) {\n if (arguments.length < 1) {\n MessageHelper.pluginMessage(player, \"Not enough arguments\");\n return false;\n }\n\n if (arguments.length > 2) {\n MessageHelper.pluginMessage(player, \"Too many arguments\");\n return false;\n }\n\n String commandArgument, otherPlayerName;\n\n commandArgument = arguments[0];\n if (arguments.length == 2) {\n // TODO: Add permission for allowing players to add/remove other players\n otherPlayerName = arguments[1];\n }\n\n // Handle the plugin command arguments here to allow players to add, remove, etc. themselves from the queue\n // TODO: Add, remove, start, stop, score, players\n // TODO: Teleport to source block option?\n switch (commandArgument) {\n case \"a\":\n case \"add\":\n mPlugin.getPlayerQueue().addPlayer(player);\n MessageHelper.pluginMessage(player, \"Added yourself to the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're already in a queue\n return true;\n case \"r\":\n case \"remove\":\n mPlugin.getPlayerQueue().removePlayer(player);\n MessageHelper.pluginMessage(player, \"Removed yourself from the queue\");\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().toString());\n // TODO: Send an error message to the player if they're not in the queue\n return true;\n case \"start\":\n break;\n case \"stop\":\n break;\n case \"p\":\n case \"players\":\n case \"s\":\n case \"scores\":\n MessageHelper.pluginMessage(player, \"Player count: \" + mPlugin.getPlayerQueue().getPlayerCount());\n MessageHelper.pluginMessage(player, mPlugin.getPlayerQueue().getScoreStrings());\n return true;\n default:\n return false;\n }\n }\n\n return false;\n }", "public MeaFlarf(JavaPlugin plugin){\n\t\tthis.plugin = plugin;\n\t}", "public Plugin getPlugin()\r\n\t{\r\n\t\treturn plugin;\r\n\t}", "@SuppressWarnings(\"unchecked\")\r\n private boolean unloadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n Plugin plugin = getPlugin(pluginName);\r\n if (plugin == null) {\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found.\");\r\n return true;\r\n }\r\n SimplePluginManager simplePluginManager = (SimplePluginManager) pluginManager;\r\n try {\r\n Field pluginsField = simplePluginManager.getClass().getDeclaredField(\"plugins\");\r\n pluginsField.setAccessible(true);\r\n List<Plugin> plugins = (List<Plugin>) pluginsField.get(simplePluginManager);\r\n Field lookupNamesField = simplePluginManager.getClass().getDeclaredField(\"lookupNames\");\r\n lookupNamesField.setAccessible(true);\r\n Map<String, Plugin> lookupNames = (Map<String, Plugin>) lookupNamesField.get(simplePluginManager);\r\n Field commandMapField = simplePluginManager.getClass().getDeclaredField(\"commandMap\");\r\n commandMapField.setAccessible(true);\r\n SimpleCommandMap commandMap = (SimpleCommandMap) commandMapField.get(simplePluginManager);\r\n Field knownCommandsField;\r\n Map<String, Command> knownCommands = null;\r\n if (commandMap != null) {\r\n knownCommandsField = commandMap.getClass().getDeclaredField(\"knownCommands\");\r\n knownCommandsField.setAccessible(true);\r\n knownCommands = (Map<String, Command>) knownCommandsField.get(commandMap);\r\n }\r\n pluginManager.disablePlugin(plugin);\r\n if (plugins != null && plugins.contains(plugin)) {\r\n plugins.remove(plugin);\r\n }\r\n if (lookupNames != null && lookupNames.containsKey(pluginName)) {\r\n lookupNames.remove(pluginName);\r\n }\r\n if (commandMap != null && knownCommands != null) {\r\n for (Iterator<Map.Entry<String, Command>> it = knownCommands.entrySet().iterator(); it.hasNext();) {\r\n Map.Entry<String, Command> entry = it.next();\r\n if (entry.getValue() instanceof PluginCommand) {\r\n PluginCommand command = (PluginCommand) entry.getValue();\r\n if (command.getPlugin() == plugin) {\r\n command.unregister(commandMap);\r\n it.remove();\r\n }\r\n }\r\n }\r\n }\r\n } catch (NoSuchFieldException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (SecurityException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (IllegalArgumentException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (IllegalAccessException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n }\r\n \r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' was successfully unloaded.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "public abstract void exec(CommandSender sender, String[] args);", "@Override\n\tpublic boolean onCommand(CommandSender sender, Command command,\n\t\t\tString label, String[] args) {\n\t\tif (args.length == 0) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tif (args[0].equals(\"help\")) {\n\t\t\tsender.sendMessage(\"----------------\"+plugin.TAG+\"----------------\");\n\t\t\tsender.sendMessage(ChatColor.AQUA+\"Aide générale OpenCities\");\n\t\t\tsender.sendMessage(\"Vous ne pouvez pas placer ou casser sur la map principale.\");\n\t\t\tsender.sendMessage(\"Commandes de ville : /ville help\");\n\t\t\tsender.sendMessage(\"Commandes de parcelles : /parcelle help\");\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}", "public abstract CommandResponse onCommand(CommandSender sender, String label, String[] args);", "void setPluginstate(java.lang.String pluginstate);", "@Override\n public void shutdown() throws PluginException {\n\n }", "@Override\n public boolean onCommand(CommandSender sender, Command cmd, String label, String[] args) {\n \tif (cmd.getName().equalsIgnoreCase(\"notifier\")) { // The menu and plugin info\n \t\tString[] say = {\n \t\t\t\t\"/-------------------------/\",\n \t\t\t\t\"-\" + PLUGIN_NAME + \" is running version \" + PLUGIN_VERSION,\n \t\t\t\t\"- Commands:\",\n \t\t\t\t\"- /notifier - Shows this\",\n \t\t\t\t\"- /notify - Toggle notifications\",\n \t\t\t\t\"/-------------------------/\"};\n \t\tsender.sendMessage(say);\n \t\treturn true;\n \t}\n \tif (cmd.getName().equalsIgnoreCase(\"notify\")) { // enable and disable notifications\n \t\tif (!(sender instanceof Player)) {\n \t\t\tsender.sendMessage(\"This command can only be run by a player.\");\n \t\t} else {\n \t\t\tPlayer player = (Player) sender;\n \t\t\tPlayerHandler todisable = null;\n \t\t\tfor(PlayerHandler ph : players){\n \t\t\t\tif(ph.getPlayerName().equals(player.getName())){\n \t\t\t\t\ttodisable = ph; // Found a player thread already running\n \t\t\t\t}\n \t\t\t}\n \t\t\tif(todisable != null){\n \t\t\t\t// Disable it and remove it from the ArrayList\n \t\t\t\ttodisable.disable();\n \t\t\t\tplayers.remove(todisable);\n \t\t\t\ttodisable.notify(1);\n \t\t\t\ttodisable = null;\n \t\t\t\tplayer.sendMessage(PLUGIN_NAME + \" disabled!\");\n \t\t\t\tshowConsole(\"Disabled player: \" + player.getName());\n \t\t\t\treturn true;\n \t\t\t}\n \t\t\t// Enable\n \t\t\tPlayerHandler ph = new PlayerHandler(player, true);\n \t\t\tplayers.add(ph);\n \t\t\tplayer.sendMessage(PLUGIN_NAME + \" enabled!\");\n \t\t\tshowConsole(\"Enabled player: \" + player.getName());\n \t\t}\n \t\treturn true;\n \t}\n \tif(cmd.getName().equalsIgnoreCase(\"nudge\")){\n \t\tif(args.length != 1) return false;\n \t\tString name = args[0];\n \t\tif (!(sender instanceof Player)) {\n \t\t\tsender.sendMessage(\"Notifying player!\");\n this.notifyPlayer(name);\n \t\t} else {\n \t\t\tPlayer player = (Player) sender;\n \t\t\tplayer.sendMessage(\"This command is only available for the console!\");\n // this.notifyPlayer(name);\n // TODO Set delay for players without the right permission.\n \t\t}\n \t\treturn true;\n \t}\n \treturn false; \n }", "public void setPluginVersion(String pluginVersion);", "public PluginManager( Path pluginDir )\n {\n this.pluginDirectory = pluginDir;\n pluginMonitor = new PluginMonitor( this );\n }", "@Override\n protected void pluginInitialize() {\n // init();\n }", "public interface PluginInterface {\n\n public void attach(Activity proxyActivity);\n\n public void onCreate(Bundle saveInstanceState);\n\n public void onStart();\n\n public void onResume();\n\n public void onPause();\n\n public void onStop();\n\n public void onDestroy();\n\n public void onSaveInstanceState(Bundle outSate);\n\n public boolean onTouchEvent(MotionEvent event);\n\n public void onBackPressed();\n\n\n}" ]
[ "0.63640755", "0.6314452", "0.62466383", "0.61709785", "0.61140853", "0.6042923", "0.60172594", "0.59903425", "0.59816885", "0.597774", "0.5968209", "0.596722", "0.5946686", "0.59460163", "0.5920076", "0.5856887", "0.5838666", "0.58237505", "0.5785074", "0.5781178", "0.5768115", "0.5752966", "0.57495487", "0.57134825", "0.5684548", "0.5682649", "0.56814057", "0.56635725", "0.56620455", "0.56535757", "0.5650216", "0.56210816", "0.5617071", "0.56151956", "0.56148297", "0.5603581", "0.55632365", "0.5527798", "0.5527637", "0.5521585", "0.55164325", "0.5498088", "0.54898655", "0.5480812", "0.5477873", "0.5473705", "0.5473437", "0.5473437", "0.5463385", "0.5462982", "0.5449267", "0.54476476", "0.5440107", "0.5434643", "0.5424569", "0.54173386", "0.5399468", "0.5384143", "0.53730166", "0.5370368", "0.5368732", "0.5368105", "0.53657687", "0.53655565", "0.5359417", "0.5358804", "0.5352844", "0.5350294", "0.53338903", "0.5327494", "0.53252035", "0.53229547", "0.5319683", "0.5304332", "0.5303945", "0.52954197", "0.5288767", "0.52867657", "0.52798295", "0.5272411", "0.5259141", "0.525058", "0.52501625", "0.5242669", "0.52397424", "0.5234389", "0.5225896", "0.5223608", "0.5220362", "0.5218272", "0.52147114", "0.52141595", "0.52055234", "0.52050143", "0.51917374", "0.51890206", "0.51836914", "0.51688635", "0.5146983", "0.5146575" ]
0.5902613
15
Finds a plugin by name ignoring case.
private Plugin getPlugin(String pluginName) { PluginManager pluginManager = Bukkit.getServer().getPluginManager(); for (Plugin plugin : pluginManager.getPlugins()) { if (plugin.getName().toLowerCase().equals(pluginName.toLowerCase())) { return plugin; } } return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized Optional<Plugin> getPluginByName(final String pluginName) {\n return pluginMetadata.values().stream()\n // Find the matching metadata\n .filter(pluginMetadata -> pluginName.equalsIgnoreCase(pluginMetadata.getName()))\n .findAny()\n // Find the canonical name for this plugin\n .map(PluginMetadata::getCanonicalName)\n // Finally, find the plugin\n .flatMap(canonicalName -> Optional.ofNullable(pluginsLoaded.get(canonicalName)));\n }", "Object find(String name);", "List<Item> findByNameContainingIgnoreCase(String name);", "@Nullable\n\tpublic MethodNode searchMethodByShortName(String name) {\n\t\tfor (MethodNode m : methods) {\n\t\t\tif (m.getMethodInfo().getName().equals(name)) {\n\t\t\t\treturn m;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public abstract T findByName(String name) ;", "String getCaseSensitive();", "@Override\n\tpublic Set<Person> getfindByNameContainingIgnoreCase(String name) {\n\t\treturn null;\n\t}", "private DocumentType findByName(String name, boolean caseSensitive) {\n \tif (name == null) {\n \t\treturn null;\n \t}\n return documentTypeDAO.findByName(name, caseSensitive);\n }", "List<Student> findByNameContainingIgnoringCase(String name);", "public void searchByName(String name) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new FileReader(\"./src/data/contactInfo.text\"));\n\t\t\tString line;\n\t\t\twhile((line = reader.readLine()) != null){\n\t\t\t\tif(line.toLowerCase().contains(name.toLowerCase())) {\n\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t}\n\t\t\t}\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "int getCaseSensitive();", "public NameSurferEntry findEntry(String name) {\n\t\tchar ch = name.charAt(0);\n\t\tif(Character.isLowerCase(ch) == true) {\n\t\t\tch = Character.toUpperCase(ch);\n\t\t}\n\t\tString otherLetters = name.substring(1);\n\t\totherLetters = otherLetters.toLowerCase();\n\t\tname = ch + otherLetters;\n\t\tif (nameFromDatabase.containsKey(name)) {\n\t\t\treturn nameFromDatabase.get(name);\n\t\t}\t\t\t\n\t\telse{\n\t\t\treturn null;\n\t\t}\n\t}", "List<City> findByNameIgnoringCase(String cityName);", "ResultSet searchName(String name) {\n \ttry {\n \t\tStatement search = this.conn.createStatement();\n \tString query = \"SELECT * FROM Pokemon WHERE Name = \" + \"'\" + name + \"'\";\n \t\n \treturn search.executeQuery(query);\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n }", "private static Project findProject(String name) {\r\n \t\tfor (Project project : ProjectPlugin.getPlugin().getProjectRegistry().getProjects()) {\r\n \t\t\tif (project.getName().equals(name)) {\r\n \t\t\t\treturn project;\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn null;\r\n \t}", "public <T extends Base> T findByName(Class<T> T, String name)\n\t\t\tthrows IOException, ClassNotFoundException {\n\t\tT result = null;\n\t\tfor (T t : list(T)) {\n\t\t\tif (t.getName().equals(name)) {\n\t\t\t\tresult = t;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public DynamicMethod searchMethod(String name) {\n return searchWithCache(name).method;\n }", "public void setPluginName(String pluginName);", "@Override\r\n\tpublic Userinfo findbyname(String name) {\n\t\treturn userDAO.searchUserByName(name);\r\n\t}", "List<User> findByUsernameContainingIgnoreCase(String name);", "Tag findByName(String name);", "Expertise findByName(String name);", "public FindResult findClass(String className);", "public abstract ServiceLocator find(String name);", "public Country findByName(String name);", "@Query(value = \"SELECT * FROM FUNCIONARIO \" +\n \"WHERE CONVERT(upper(name), 'SF7ASCII') = CONVERT(upper(:name), 'SF7ASCII')\", nativeQuery = true)\n Optional<List<Funcionario>> findByNameIgnoreCase(String name);", "public final KaranteeniPlugin getPluginInstance(String string) {\r\n\t\treturn (KaranteeniPlugin) kPluginInstances.get(string);\r\n\t}", "@NullSafe\n public static CrudOperation valueOfIgnoreCase(final String name) {\n for (CrudOperation crudOperation : values()) {\n if (crudOperation.name().equalsIgnoreCase(StringUtils.trim(name))) {\n return crudOperation;\n }\n }\n\n return null;\n }", "public abstract String filterLibraryName(final String name);", "@Nullable\n PsiElement findExportedName(String name);", "UserGroup findByNameIgnoreCase(String companyId, String name);", "public Option getOptionByShortName(String string) {\n\t\tfor (Option option : this.options) {\n\t\t\tif (option.getShortName() == null)\n\t\t\t\tcontinue;\n\n\t\t\tif (option.isCaseSensitive() && option.getShortName().equals(string))\n\t\t\t\treturn option;\n\t\t\telse if (!option.isCaseSensitive() && option.getShortName().equalsIgnoreCase(string))\n\t\t\t\treturn option;\n\t\t}\n\n\t\treturn null;\n\t}", "public int search (String name) {\n int result = -1;\n int offset = 0;\n\n for (int i=9; i>-1; i--)\n {\n qLock[i].lock ();\n result = q[i].indexOf (name);\n if (result == -1)\n offset += q[i].size ();\n qLock[i].unlock ();\n if (result != -1)\n break;\n }\n\n if (result == -1)\n return result;\n\n return result + offset;\n }", "private Command getCommandByName(String name) {\n for (Command command : commands) {\n if (command.getName().equals(name)) {\n return command;\n }\n }\n return null;\n }", "public List<PluginCase> findUsingPlugin(Connection conn)\r\n/* 49: */ throws SQLException\r\n/* 50: */ {\r\n/* 51: 86 */ return this.dao.findUsingPlugin(conn);\r\n/* 52: */ }", "public ClassPair findClassAndStub( String name ) {\n\n\n return null ;\n }", "public String searchByName(String name){\n for(Thing things: everything){\n if(things.getName().equalsIgnoreCase(name)){\n return things.toString();\n }\n }\n return \"Cannot Find given Name\";\n }", "@Override\r\n\tpublic Account findByName(String name) {\n\t\treturn null;\r\n\t}", "public static Player findPlayer(String str) {\n\t\tList<Player> plist = getTrackablePlayers();\n\t\tfor (int i = 0; i < plist.size(); i++) {\n\t\t\tif (((Player) plist.get(i)).getName().equals(str)) {\n\t\t\t\treturn (Player) plist.get(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public static Type valueOfIgnoreCase(String name) throws IllegalArgumentException {\n for(Type type: Type.values()) {\n if(type.getName().equalsIgnoreCase(name)) return type;\n }\n\n throw new IllegalArgumentException(String.format(\"Type object with the name '%s' could not be found.\", name));\n }", "private void searchRoutine() {\n String s = (String) JOptionPane.showInputDialog(\n this,\n \"Enter the name of the routine:\",\n \"Search\",\n JOptionPane.PLAIN_MESSAGE,\n null, null, null);\n\n if (s != null) {\n try {\n Routine r = collection.search(s);\n list.setSelectedValue(r, true);\n } catch (DoesNotExistException ee) {\n JOptionPane.showMessageDialog(this, \"Routine with given name does not exist.\");\n }\n }\n }", "public CommonAdapter findAdapterByName(final String name) {\n if (LOGGER.isDebugEnabled()) {\n LOGGER.debug(\"Find adapter : \" + name);\n }\n return ADAPTERS.get(name);\n }", "public static String getProductType(String name)\n {\n return PLUGIN_MAP.get(name) + \".\" + name;\n }", "@Override\r\n\tpublic ArrayList<PlayerPO> findPlayerByName(String name) {\n\t\treturn playerController.findPlayerByName(name);\r\n\t}", "public static int lookup (String name)\n {\n\tInteger result = MAP.get (name.toLowerCase ());\n\n\treturn (result == null) ? -1 : result;\n }", "String getName( String name );", "Keyword findKeywordByName(String name);", "public PrimClass resolveClass(String name) {\n return findPrimClass(importFor(name));\n }", "@Override\n\tpublic Zongjie findByname(String name) {\n\t\treturn zongjieDao.findByname(name);\n\t}", "Caseless getName();", "@Override\r\n\tpublic Plate findByName(String nom) {\n\t\treturn null;\r\n\t}", "Heaver findByName(String name);", "public static SendMethod findByName(String name) {\n\t\tfor (SendMethod sendMethod : SendMethod.values()) {\n\t\t\tif (sendMethod.getName().equals(name)) {\n\t\t\t\treturn sendMethod;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "MetaTag findByName(String metaTagName) ;", "public AssetClass findAssetClassByName(String name_);", "Car findByName(String name);", "@Override\r\n\tpublic Country find(String name) {\r\n\t\tCountry retDM = null;\r\n\r\n\t\tif (name == null) {\r\n\t\t\tthrow new IllegalArgumentException(\"\");\r\n\t\t}\r\n\t\ttry {\r\n\t\t\treadMapFromFile();\r\n\t\t\tretDM=this.daoMap.get(name);\r\n\r\n\t\t} catch (JsonSyntaxException | JsonIOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn retDM;\r\n\t}", "public PageBean<Match> find(String name) {\n\t\tif(name==null||\"\".equals(name.trim())){\r\n\t\t\treturn matchDao.find(\"from Match\");\r\n\t\t}else{\r\n\t\t\treturn matchDao.find(\"from Match where nickname like ? or userName like ?\",\r\n\t\t\t\t\tnew Object[]{\"%\"+name+\"%\",\"%\"+name+\"%\"});\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n\tpublic Projects findByProjectName(String name) {\n\t\tString sql = \"select * from projects where lower(proj_name)=lower('\"+name+\"')\";\n\t\treturn getJdbcTemplate().queryForObject(sql, new BeanPropertyRowMapper<Projects>(Projects.class));\n\t}", "public Person find(String name) {\n\t\tfor (Person person : listOfPeople) {\n\t\t\tif(person.getName().contains(name)) {\n\t\t\t\treturn person;\n\t\t\t}\n\t\t}\n\t\treturn null; // only reached if person with name not found by search.\n\t}", "@Override\n\tpublic ZdParam findByParamName(String paramName) {\n\t\tString sql=\" param_name='\"+paramName+\"'\";\n\t\tList<ZdParam> lparam=this.getBaseDAO().list(sql,null);\n\t\tZdParam jkparam=null;\n\t\tif(lparam!=null&&lparam.size()>0)\n\t\t\tjkparam=lparam.get(0);\n\t\treturn jkparam;\n\t}", "public static Service getServiseByName(ArrayList<Service> services ,String name){\r\n for(Service service:services){\r\n if(service.getName().equalsIgnoreCase(name)){\r\n return service;\r\n }\r\n }\r\n return null;\r\n }", "static public Person searchPerson(String name) {\n return personMap.get(name);\n }", "List<Funcionario> findByNomeCompletoIgnoreCaseContaining(String nomeCompleto);", "TourPackage findByName(@Param(\"name\") String name);", "public static Direction findByName(String name) {\n Direction result = null;\n for (Direction direction : values()) {\n if (direction.name().equalsIgnoreCase(name)) {\n result = direction;\n break;\n }\n }\n return result;\n }", "private static String discoverPackageName( PluginDescriptor pluginDescriptor )\n {\n Map packageNames = new HashMap();\n for ( Iterator it = pluginDescriptor.getMojos().iterator(); it.hasNext(); )\n {\n MojoDescriptor descriptor = (MojoDescriptor) it.next();\n \n String impl = descriptor.getImplementation();\n if ( impl.lastIndexOf( '.' ) != -1 )\n {\n String name = impl.substring( 0, impl.lastIndexOf( '.' ) );\n if ( packageNames.get( name ) != null )\n {\n int next = ( (Integer) packageNames.get( name ) ).intValue() + 1;\n packageNames.put( name, Integer.valueOf( \"\" + next ) );\n }\n else\n {\n packageNames.put( name, Integer.valueOf( \"\" + 1 ) );\n }\n }\n else\n {\n packageNames.put( \"\", Integer.valueOf( \"\" + 1 ) );\n }\n }\n \n String packageName = \"\";\n int max = 0;\n for ( Iterator it = packageNames.keySet().iterator(); it.hasNext(); )\n {\n String key = it.next().toString();\n int value = ( (Integer) packageNames.get( key ) ).intValue();\n if ( value > max )\n {\n max = value;\n packageName = key;\n }\n }\n \n return packageName;\n }", "public static Method findMethod(Class<?> clazz, String name) {\n return findMethod(clazz, name, new Class<?>[0]);\n }", "protected Class< ? extends Object > findClass( String name ) throws ClassNotFoundException {\n\t\tfinal Class< ? extends Object > c = load_classes.get( name );\n\t\tif ( c == null ) throw new ClassNotFoundException();\n\t\treturn c;\n\t}", "public static Component findComponentByName(DialogComponentProvider provider,\n\t\t\tString componentName) {\n\t\treturn findComponentByName(provider.getComponent(), componentName, false);\n\t}", "Language findByName(String name);", "public List<PluginCase> findNewPlugin(Connection conn)\r\n/* 55: */ throws SQLException\r\n/* 56: */ {\r\n/* 57: 96 */ return this.dao.findNewPlugin(conn);\r\n/* 58: */ }", "private boolean findClassInComponents(String name) {\n // we need to search the components of the path to see if we can find the\n // class we want.\n final String classname = name.replace('.', '/') + \".class\";\n final String[] list = classpath.list();\n boolean found = false;\n int i = 0;\n while (i < list.length && found == false) {\n final File pathComponent = (File)project.resolveFile(list[i]);\n found = this.contains(pathComponent, classname);\n i++;\n }\n return found;\n }", "<T> T resolve(String name, Class<T> type);", "public Handle search(String name) {\n int homePos = hash(table, name);\n int pos;\n\n // QUADRATIC PROBE\n for (int i = 0; i < table.length; i++) {\n // possibly iterate over entire table, but will\n // likely stop before then\n pos = (homePos + i * i) % table.length;\n if (table[pos] == null) {\n break;\n }\n else if (table[pos] != GRAVESTONE\n && table[pos].getStringAt().equals(name)) {\n return table[pos];\n }\n } // end for\n\n return null;\n }", "public Contact findContact(String name)\r\n\t{\r\n\t\tSystem.out.println(\"in FindContact\");\r\n\t\tString name1;\r\n\t\tname = name.toUpperCase();\r\n\t\tfor(int i = 0; i < this.size(); i++)\r\n\t\t{\r\n\t\t\tname1 = this.get(i).getContactName().toUpperCase();\r\n\r\n\t\t\tif (name.equalsIgnoreCase(name1)) {\r\n\t\t\t\tSystem.out.println(this.get(i));\r\n\t\t\t\tContact contact = this.get(i);\r\n\t\t\t\treturn contact; \t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t \t \t\t \r\n\t\t} \r\n\t\treturn null;\r\n\t}", "private SymObject find(String name) {\n SymObject object = table.find(name);\n if (object == SymbolTable.OBJECT_NONE) {\n error(name + \" can't be resolved to a name\");\n }\n\n return object;\n }", "public synchronized String getCanonicalName( Plugin plugin )\n {\n for ( Map.Entry<String, Plugin> entry : pluginsLoaded.entrySet() )\n {\n if ( entry.getValue().equals( plugin ) )\n {\n return entry.getKey();\n }\n }\n return null;\n }", "public Class<?> lookupClass(String name) throws ClassNotFoundException {\n return getClass().getClassLoader().loadClass(name);\n }", "public Optional<String> getName(final String id) {\n return Optional.ofNullable(this.registeredPlugins.get(id))\n .map(meta -> meta.name);\n }", "Category findByName(String name);", "public Text getByName(String name){\r\n\t\tfor (int i=0;i<thisDialog.size();i++){\r\n\t\t\tif (thisDialog.get(i).getName().equals(name)){\r\n\t\t\t\treturn thisDialog.get(i);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "private PersistenceUnitInfoImpl findUnit(List<PersistenceUnitInfoImpl>\n pinfos, String name, ClassLoader loader) {\n PersistenceUnitInfoImpl ojpa = null;\n PersistenceUnitInfoImpl result = null;\n for (PersistenceUnitInfoImpl pinfo : pinfos) {\n // found named unit?\n if (name != null) {\n if (name.equals(pinfo.getPersistenceUnitName())){\n if (result != null){\n this.addPuNameCollision(name, result.getPersistenceXmlFileUrl().toString(),\n pinfo.getPersistenceXmlFileUrl().toString());\n\n } else {\n // Grab a ref to the pinfo that matches the name we're\n // looking for. Keep going to look for duplicate pu names.\n result = pinfo;\n }\n }\n continue;\n }\n\n if (isOpenJPAPersistenceProvider(pinfo, loader)) {\n // if no name given and found unnamed unit, return it.\n // otherwise record as default unit unless we find a better match later\n if (StringUtil.isEmpty(pinfo.getPersistenceUnitName()))\n return pinfo;\n if (ojpa == null)\n ojpa = pinfo;\n }\n }\n if(result!=null){\n return result;\n }\n return ojpa;\n }", "@Override\n protected Class \n findClass\n (\n String cname\n ) \n throws ClassNotFoundException\n {\n byte bs[] = pContents.get(cname);\n if(bs == null) \n throw new ClassNotFoundException\n\t(\"Unable to find class (\" + cname + \")!\");\n\n return defineClass(cname, bs, 0, bs.length);\n }", "public Service consultName(String name){\r\n \tCriteria criteria = session.createCriteria(Service.class);\r\n \tcriteria.add(Restrictions.like(\"name\",name));\r\n \treturn (Service)criteria.list().get(0);\r\n }", "public List<Product> findByNameIs(String name);", "public Option getOptionByLongName(String string) {\n\t\tfor (Option option : this.options) {\n\t\t\tif (option.isLongNameCaseSensitive() && option.getLongName().equals(string))\n\t\t\t\treturn option;\n\t\t\telse if (!option.isLongNameCaseSensitive() && option.getLongName().equalsIgnoreCase(string))\n\t\t\t\treturn option;\n\t\t}\n\n\t\treturn null;\n\t}", "public int nameBinarySearch (String name) {\n\t\t//sorting records by first name alphabetical order\n\t\tthis.nameQuickSort(this.getList(), 0, getSize()-1);\n\t\tint low = 0;\n\t\tint high = this.size-1;\n\t\tint middle;\n\n\t\twhile (low<=high) { \n\t\t\tmiddle = (low+high)/2;\n\t\t\tif (name.compareToIgnoreCase(list[middle].getName()) == 0) { //check if name found\n\t\t\t\treturn middle; //return index\n\t\t\t}\n\t\t\tif (name.compareToIgnoreCase(list[middle].getName()) <0) { //check if name to find is in the lower half\n\t\t\t\thigh = middle-1; //move the high to one lower than the middle\n\t\t\t}\n\t\t\telse { //if it is in higher part of the list\n\t\t\t\tlow = middle+1; //move the low to one higher than the middle\n\t\t\t}\n\t\t}\n\t\t//not found\n\t\treturn -1;\n\t}", "public static myRemoteInterface lookUp(String name){\n\t\n\t\tRegistryInterface stub = null;\n\t\ttry{\n\t\t\tstub = (RegistryInterface)Class.forName(\"registry.Registry_stub\").newInstance();\n\t\t}catch (InstantiationException | IllegalAccessException\n\t\t\t\t| ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn (myRemoteInterface)stub.lookUp(name);\n\t\t\n\t}", "public int FindByName(String _name)\n\t{\n\t\tint res = -1;\n\n\t\tfor (int i = 0; i < this.materials.size(); i++)\n\t\t{\n\t\t\tif (this.materials.get(i).name.equalsIgnoreCase(_name))\n\t\t\t{\n\t\t\t\tres = i;\n\t\t\t}\n\t\t}\n\n\t\treturn res;\n\t}", "protected Class findClass(final String name)\n\t\tthrows ClassNotFoundException\n\t{\n\t\t/* Protect the namespace */\n\t\tif (name.startsWith(\"java.\") ||\n\t\t\tname.startsWith(\"org.postgresql.pljava\"))\n\t\t{\n\t\t\tthrow new ClassNotFoundException(name); \n\t\t}\n\n\t\t/* Look to see if we have already loaded the class */\n\t\tClass c = findLoadedClass(name);\n\t\tif (c != null)\n\t\t\treturn c;\n\n\t\t/* Check for the class within our jar */\n\t\tString path = name.replace('.', '/').concat(\".class\");\n\t\tbyte[] entryImg = (byte[]) m_entries.get(path);\n\t\t\n\t\t/* If not found, raise an exception */\n\t\tif (entryImg == null)\n\t\t\tthrow new ClassNotFoundException(name);\n\n\t\t/* create a package for the class */\n\t\tdefinePackage(name);\n\n\t\t/* otherwise convert the image to a class and return it */\n\t\treturn defineClass(name, entryImg, 0, entryImg.length);\n\t}", "public Field findField(final String name) {\r\n\t\tGeneratorHelper.checkJavaFieldName(\"parameter:name\", name);\r\n\r\n\t\tField found = null;\r\n\r\n\t\tfinal Iterator<Field> iterator = this.getFields().iterator();\r\n\r\n\t\twhile (iterator.hasNext()) {\r\n\t\t\tfinal Field field = iterator.next();\r\n\t\t\tif (field.getName().equals(name)) {\r\n\t\t\t\tfound = field;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn found;\r\n\t}", "@Override\n\tpublic List<Product> findByName(String term) {\n\t\treturn productDAO.findByNameLikeIgnoreCase(\"%\" + term + \"%\");\n\t}", "private static void search_by_name() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project Name: \");\r\n\t\t\tString project_name = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_name, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project name cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t}", "public static Type findType(String name) {\n if (MZTabUtils.isEmpty(name)) {\n throw new IllegalArgumentException(\"Modification type name should not be empty!\");\n }\n\n Type type;\n try {\n type = Type.valueOf(name.trim().toUpperCase());\n } catch (IllegalArgumentException e) {\n type = null;\n }\n\n return type;\n }", "public String getPluginName(){\n\t\treturn pluginName;\n\t}", "@Override\n\tpublic RenWutable findByName(String name) {\n\t\treturn null;\n\t}", "boolean contains(String name);", "@Override\n\tpublic String nameFind(String user_id) {\n\t\treturn mapper.nameFind(user_id);\n\t}", "private static Class<?> tryName(String name) throws ClassNotFoundException {\n return Class.forName(name);\r\n }" ]
[ "0.57100934", "0.55983835", "0.55927175", "0.552185", "0.55124587", "0.54179585", "0.54055035", "0.5404354", "0.5395109", "0.53305316", "0.5259281", "0.5231233", "0.5177157", "0.5147347", "0.5116106", "0.5111681", "0.5105515", "0.50824153", "0.50601745", "0.5058", "0.50333077", "0.5026903", "0.5023702", "0.5021138", "0.50171405", "0.5005114", "0.49897012", "0.49423513", "0.4925239", "0.4924039", "0.49141133", "0.490565", "0.4905431", "0.49039757", "0.48732048", "0.48531064", "0.48203775", "0.48007533", "0.47972456", "0.47919574", "0.47869694", "0.47815418", "0.47627133", "0.4753551", "0.47507995", "0.47474602", "0.4724534", "0.47206658", "0.47167236", "0.4711849", "0.4706817", "0.47022182", "0.46855593", "0.4675343", "0.46724218", "0.46680108", "0.46642396", "0.4657161", "0.4650794", "0.46305075", "0.46302548", "0.46277776", "0.46210715", "0.4617081", "0.46074325", "0.46027347", "0.46023592", "0.4593878", "0.4589142", "0.45860666", "0.45721233", "0.4570199", "0.45698655", "0.4568543", "0.4564947", "0.45639467", "0.45600247", "0.4555723", "0.45549852", "0.453128", "0.4526829", "0.45255506", "0.45241475", "0.4523411", "0.45215014", "0.45203543", "0.45201072", "0.45068383", "0.45066735", "0.45065546", "0.4505122", "0.44963583", "0.44932252", "0.44879213", "0.4470838", "0.44671464", "0.44669247", "0.44587642", "0.44546828", "0.4452881" ]
0.57101905
0
Output information about a given plugin.
private boolean pluginInformation(PluginCommandManager manager, CommandSender player, String pluginName) { Plugin plugin = getPlugin(pluginName); if (plugin == null) { manager.sendMessage(player, "A plugin with the name '" + pluginName + "' could not be found."); return true; } PluginDescriptionFile discription = plugin.getDescription(); String authors = ""; List<String> authorsList = discription.getAuthors(); for (int authorIndex = 0; authorIndex < authorsList.size(); ++authorIndex) { String author = authorsList.get(authorIndex); authors += author + ", "; } if (authorsList.size() > 0) { authors = authors.substring(0, authors.length() - 2); } else { authors = "Unknown"; } String key = "plugin." + m_plugin.pluginNameToKey(plugin.getName()); boolean showUrl = m_plugin.getSetting(key + ".webpage.url", true); String url = m_plugin.getSetting(key + ".webpage.url", discription.getWebsite()); manager.sendMessage(player, ChatColor.GOLD + "||======================================||"); manager.sendMessage(player, ChatColor.DARK_GREEN + "Name: " + ChatColor.WHITE + plugin.getName()); manager.sendMessage(player, ChatColor.DARK_GREEN + "Version: " + ChatColor.WHITE + discription.getVersion()); manager.sendMessage(player, ChatColor.DARK_GREEN + "Authors: " + ChatColor.WHITE + authors); if (showUrl) { manager.sendMessage(player, ChatColor.DARK_GREEN + "Website: " + ChatColor.BLUE + url); } manager.sendMessage(player, ChatColor.DARK_GREEN + "Enabled: " + ChatColor.WHITE + (plugin.isEnabled() ? "True" : "False")); manager.sendMessage(player, ChatColor.GOLD + "||======================================||"); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void sendInfo(@NotNull CommandSender sender) {\n\n PluginDescriptionFile info = getDescription();\n\n sendMsg(sender, \"plugin-info\",\n info.getName(),\n info.getVersion(),\n String.join(\", \", info.getAuthors()),\n info.getDescription(),\n info.getWebsite()\n );\n }", "@Override\n public String displayInfo() {\n String str = getPluginName() + \"\\n\";\n str += \"Status: \";\n if (isRunning())\n str += \"running\";\n else\n str += \"stop\";\n str += \"\\nPort:\" + params.getUnifyExportPort();\n return str;\n }", "public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}", "@Override\n public PluginDescription getPluginDetails() {\n return new PluginDescription(this);\n }", "public PluginInfo getInfo() {\r\n return new devplugin.PluginInfo(TvBrowserDataService.class,\r\n mLocalizer.msg(\"name\",\"EPGfree data\"),\r\n mLocalizer.msg(\"description\", \"Data that is available for free with mostly German, Swiss, Austrian and Danish channels.\"),\r\n \"Til Schneider, www.murfman.de\",\r\n mLocalizer.msg(\"license\",\"Terms of Use:\\n=============\\nAll TV/Radio listings provided by TV-Browser (http://www.tvbrowser.org) are protected by copyright laws and may only be used within TV-Browser or other name like applications authorizied by the manufacturer of TV-Browser (http://www.tvbrowser.org) for information about the upcoming program of the available channels.\\nEvery other manner of using, reproducing or redistributing of the TV/Radio listings is illegal and may be prosecuted on civil or criminal law.\\n\\nOn downloading the TV/Radio listings you declare your agreement to these terms.\\n\\nIf you have any questions concerning these terms please contact dev@tvbrowser.org\"));\r\n }", "@Override\n public void executeByPluginType(PluginType pluginType) {\n pluginFactory\n .getPlugin(pluginType)\n .otherOutput();\n }", "private void createLogOutput( PluginExecutor pluginExecutor, Plugin executePlugin, String item )\n {\n StringBuilder sb = new StringBuilder( \"------ \" );\n sb.append( \"(\" );\n sb.append( item );\n sb.append( \") \" );\n sb.append( executePlugin.getKey() );\n sb.append( \":\" );\n sb.append( executePlugin.getVersion() );\n sb.append( \":\" );\n sb.append( pluginExecutor.getGoal() );\n getLog().info( sb.toString() );\n }", "public PluginInfo getInfo() {\r\n if(mPluginInfo == null) {\r\n String name = mLocalizer.msg(\"pluginName\", \"View List Plugin\");\r\n String desc = mLocalizer.msg(\"description\", \"Shows a List of current running Programs\");\r\n String author = \"Bodo Tasche\";\r\n \r\n mPluginInfo = new PluginInfo(ListViewPlugin.class, name, desc, author);\r\n }\r\n \r\n return mPluginInfo;\r\n }", "public void info()\n {\n System.out.println(toString());\n }", "public static void log(String plugin, String message) {\n\t\tSystem.out.println(ConsoleMessage.YELLOW + \"[\" + plugin + \"] \" + message + RESET);\n\t}", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "void printInfo();", "public PluginInfo(Plugin plugin, PluginVersion version, PlayerPluginWrapperType wrapperType) {\n this.version = version;\n this.wrapperType = wrapperType;\n this.plugin = plugin;\n }", "@Override\n public PluginInformation getPluginInformation() {\n return super.getPluginInformation();\n }", "public void printInfo(){\n\t}", "public void printInfo(){\n\t}", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "public static String[] getInfo(){\n\t\n\t\treturn new String[]{\n\t\t\t\t\"plugin_name\",\n\t\t\t\t\"plugin_host\",\n\t\t\t\t\"plugin_version\",\n\t\t\t\t\"plugin_author\"\n\t\t};\n\t\t\t\t\n\t}", "boolean addHelpInfo(PluginHelpInfo helpInfo);", "abstract public void printInfo();", "public static void printInfo(){\n }", "public void info(){\r\n System.out.println(\"Title : \" + title);\r\n System.out.println(\"Author . \" + author);\r\n System.out.println(\"Location : \" + location);\r\n if (isAvailable){\r\n System.out.println(\"Available\");\r\n }\r\n else {\r\n System.out.println(\"Not available\");\r\n }\r\n\r\n }", "@Override\n public void information() {\n System.out.println(\"\");\n System.out.println(\"Dog :\");\n System.out.println(\"Age : \" + getAge());\n System.out.println(\"Name : \" + getName());\n System.out.println(\"\");\n }", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public void showInformation() {\n\t\tSystem.out.println(\"Title: \" + getTitle());\n\t\tSystem.out.println(\"Time: \" + getTime());\n\t\tSystem.out.println(\"Number: \" + getNumber());\n\t}", "public void info() {\r\n System.out.println(\" Name: \" + name + \" Facility: \" + facility + \" Floor: \" + floor + \" Covid: \"\r\n + positive + \" Age: \" + age + \" ID: \" + id);\r\n }", "public abstract void displayInfo();", "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }", "public interface Plugin {\n void doUsefil();\n}", "public void outputStats (){\n System.out.println(\"Your sorcerer's stats:\");\n System.out.println(\"HP = \" + hp);\n System.out.println(\"Mana = \" + mana);\n System.out.println(\"Strength = \" + strength);\n System.out.println(\"Vitality = \" + vitality);\n System.out.println(\"Energy = \" + energy);\n }", "public String getPlugin() {\n\t\treturn adaptee.getPlugin();\n\t}", "void getInfo() {\n\tSystem.out.println(\"My name is \"+name+\" and I am going to \"+school+\" and my grade is \"+grade);\n\t}", "@Override\n\tpublic void showInfo() {\n\t\tSystem.out.println(\"Machine Interface \" + id);\n\t}", "@Override\n public String getPluginName() {\n return \"Unify server-exporter\";\n }", "public void getInfo(){\n System.out.println(\"Name: \" + name + \"\\n\" + \"Address: \" + address);\n }", "public void playerDetailedInfo(Player p){\n System.out.println(\"Indicator: \" + indicator + \"\\nJoker: \"+joker);\n System.out.println(\"Winner: Player\" + p.getPlayerNo());\n System.out.println(\"Tile size: \" + p.getTiles().size());\n System.out.println(\"Joker count: \" + p.getJokerCount());\n System.out.println(\"Double score: \" + p.getDoubleCount()*2);\n System.out.println(\"All tiles in ascending order:\\t\" + p.getTiles());\n System.out.println(\"Clustered according to number: \\t\" + p.getNoClus());\n System.out.println(\"Total number clustering score: \" + p.totalNoClustering());\n System.out.println(\"Clustered according to color: \\t\" + p.getColClus());\n System.out.println(\"Total color clustering score: \" + p.totalColCluster());\n System.out.println(\"Final score of Player\"+p.getPlayerNo()+\": \" + p.getPlayerScore());\n }", "private static void writeClass( Writer writer, String packageName, PluginDescriptor pluginDescriptor )\n throws IOException\n {\n if ( packageName.length() > 0 )\n {\n writer.write( \"package \" + packageName + \";\" + LS );\n writer.write( LS );\n }\n \n writeImports( writer );\n writer.write( LS );\n \n writeMojoJavadoc( writer, pluginDescriptor );\n \n writer.write( \"public class HelpMojo\" + LS );\n writer.write( \" extends AbstractMojo\" + LS );\n writer.write( \"{\" + LS );\n \n writeVariables( writer );\n \n writer.write( LS );\n \n writeExecute( writer, pluginDescriptor );\n \n writer.write( LS );\n writeUtilities( writer );\n writer.write( \"}\" + LS );\n }", "public void printInfo(){\n\t\tSystem.out.println(\"id : \" + id + \" label : \" + label);\n\t\tSystem.out.println(\"vms : \" );\n\t\tfor(VirtualMachine v : vms){\n\t\t\tv.printInfo();\n\t\t}\n\t}", "public void displayGui(Player player, JavaPlugin plugin) {\n\t\tsetPlayer(player);\n\t\tdisplayGui(plugin);\n\t}", "public interface Plugin {\n\n /**\n * Invoked when plugin is loaded\n */\n void Initialize();\n\n /**\n * Get plugin name\n * @return plugin name\n */\n String getName();\n\n /**\n * Show the issue management window\n * @param pmsIssue Notification for which the window should be displayed\n * @see PMSIssue\n * @param pmsUser User data\n * @see PMSUser\n *\n * @return window instance\n * @see Stage\n */\n Stage getIssueWindow(PMSIssue pmsIssue, PMSUser pmsUser);\n\n /**\n * Get a PMSManage object to control the project management system\n * @return PMSManage object\n */\n PMSManage getPMSManage();\n\n\n /**\n * When program is shutting down\n */\n void Free();\n}", "Plugin getPlugin( );", "public void printInfo() {\n\t\tSystem.out.println(\"User: \" + userName);\n\t\tSystem.out.println(\"Login: \" + loginName);\n\t\tSystem.out.println(\"Host: \" + hostName);\n\t}", "private PluginInfo extractPluginInfo(Artifact artifact) {\n if (artifact != null\n && \"jar\".equals(artifact.getExtension())\n && \"\".equals(artifact.getClassifier())\n && artifact.getFile() != null) {\n Path artifactPath = artifact.getFile().toPath();\n if (Files.isRegularFile(artifactPath)) {\n try (JarFile artifactJar = new JarFile(artifactPath.toFile(), false)) {\n ZipEntry pluginDescriptorEntry = artifactJar.getEntry(PLUGIN_DESCRIPTOR_LOCATION);\n\n if (pluginDescriptorEntry != null) {\n try (InputStream is = artifactJar.getInputStream(pluginDescriptorEntry)) {\n // Note: using DOM instead of use of\n // org.apache.maven.plugin.descriptor.PluginDescriptor\n // as it would pull in dependency on:\n // - maven-plugin-api (for model)\n // - Plexus Container (for model supporting classes and exceptions)\n XmlNode root = XmlNodeBuilder.build(is, null);\n String groupId = root.getChild(\"groupId\").getValue();\n String artifactId = root.getChild(\"artifactId\").getValue();\n String goalPrefix = root.getChild(\"goalPrefix\").getValue();\n String name = root.getChild(\"name\").getValue();\n return new PluginInfo(groupId, artifactId, goalPrefix, name);\n }\n }\n } catch (Exception e) {\n // here we can have: IO. ZIP or Plexus Conf Ex: but we should not interfere with user intent\n }\n }\n }\n return null;\n }", "void info(String tag, String msg);", "public static void logStatus(){\r\n\t\tLogger log = Logger.getLogger(LOGGER_NAME);\r\n\t\tStringBuilder logString = new StringBuilder(\"\\n*** PlugIn Status ***\\n\");\r\n\t\t\r\n\t\tList<String> storagePlugins = getPluginsByType(PluginType.STORAGE);\r\n\t\tlogString.append(\"Storage PlugIns: \"+storagePlugins.size()+\"\\n\");\r\n\t\t\r\n\t\tlog.info(logString.toString());\r\n\t\treturn;\r\n\t}", "private void showInfo() {\n JOptionPane.showMessageDialog(\n this,\n \"Пока что никакой\\nинформации тут нет.\\nДа и вряд ли будет.\",\n \"^^(,oO,)^^\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "public interface IPlugin {\n void setParam(IParam param);\n\n IParam getParam();\n\n void setMonitor(IPluginMonitor monitor);\n\n IPluginMonitor getMonitor();\n\n void init();\n\n void connection();\n\n void finish();\n\n Map<String, String> getMonitorInfo();\n}", "public interface TTSPlugin extends Plugin{\n\n\t/**\n\t * Synthesize the given text and play the result.\n\t * \n\t * @param msg The text to synthesize.\n\t */\n\tpublic void sayText(String msg);\n}", "public String getOutputInfo(int index) {\n\t\tswitch (index) {\n\t\t\tcase 0:\n\t\t\t\treturn \"The table containing the population\";\n\t\t\tdefault:\n\t\t\t\treturn \"No such input\";\n\t\t}\n\t}", "public void showInfo()\n\t{\n\t\tSystem.out.println(\"Account Number : \"+getAccountNumber());\n\t\tSystem.out.println(\"Balance : \"+getBalance());\n\t\tSystem.out.println(\"Tenure Year : \"+tenureYear);\n\t}", "Plugin getPlugin();", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "private static void printUsage()\n {\n HelpFormatter hf = new HelpFormatter();\n String header = String.format(\n \"%nAvailable commands: ring, cluster, info, cleanup, compact, cfstats, snapshot [name], clearsnapshot, bootstrap\");\n String usage = String.format(\"java %s -host <arg> <command>%n\", NodeProbe.class.getName());\n hf.printHelp(usage, \"\", options, header);\n }", "private void helpService() {\n output.println(\"Help command\");\n output.println(\"-calc <number> \\t Calculates the value of pi based on <number> points; quit \\t Exit from program \");\n }", "public void showInfo() {\n\t\t\n\t\tsuper.showInfo();\n\t\tSystem.out.println(\"Your Checking Account features: \"\n\t\t\t\t+ \"\\nDebit Card Number: \" + debitCardNumber\n\t\t\t\t+ \"\\nDebit Card PIN: \" + debitCardPin\n\t\t\t\t+ \"\\n****************\"\n\t\t\t\t);\n\t\t\n\t}", "public void showPlayer ( Plugin plugin , Player player ) {\n\t\ttry {\n\t\t\tinvoke ( \"showPlayer\" , new Class[] { Plugin.class , Player.class } , plugin , player );\n\t\t} catch ( NoSuchMethodException ex ) { // legacy\n\t\t\tshowPlayer ( player );\n\t\t}\n\t}", "public void printDetailedPlayer(Player player);", "public void printHelp() throws IOException {\n\n HelpFormatter hf = new HelpFormatter();\n hf.setShellCommand(m_name);\n hf.setGroup(m_options);\n hf.print();\n }", "void doInfo() throws AmbiguousException, PlayerDebugException\n\t{\n\t\t/* info without any args brings up help */\n\t\tif (!hasMoreTokens())\n\t\t\tout( getHelpTopic(\"info\") ); //$NON-NLS-1$\n\t\telse\n\t\t{\n\t\t\t/* otherwise we have a boatload of options */\n\t\t\tString subCmdString = nextToken();\n\t\t\tint subCmd = infoCommandFor(subCmdString);\n\t\t\tswitch(subCmd)\n\t\t\t{\n\t\t\t\tcase INFO_ARGS_CMD:\n\t\t\t\t\tdoInfoArgs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_BREAK_CMD:\n\t\t\t\t\tdoInfoBreak();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_FILES_CMD:\n\t\t\t\t\tdoInfoFiles();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_FUNCTIONS_CMD:\n\t\t\t\t\tdoInfoFuncs();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_HANDLE_CMD:\n\t\t\t\t\tdoInfoHandle();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_LOCALS_CMD:\n\t\t\t\t\tdoInfoLocals();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_SCOPECHAIN_CMD:\n\t\t\t\t\tdoInfoScopeChain();\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase INFO_SOURCES_CMD:\n\t\t\t\t\tdoInfoSources();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_STACK_CMD:\n\t\t\t\t\tdoInfoStack();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_VARIABLES_CMD:\n\t\t\t\t\tdoInfoVariables();\n\t\t\t\t\tbreak;\n\n\t\t\t\tcase INFO_DISPLAY_CMD:\n\t\t\t\t\tdoInfoDisplay();\n\t\t\t\t\tbreak;\n\n case INFO_TARGETS_CMD:\n doInfoTargets();\n break;\n\n case INFO_SWFS_CMD:\n doInfoSwfs();\n break;\n\n\t\t\t\tdefault:\n\t\t\t\t\tdoUnknown(\"info\", subCmdString); //$NON-NLS-1$\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void getInfo() {\n System.out.println(\"Content : \" + content);\n System.out.println(\"Name : \" + name);\n System.out.println(\"Location : (\" + locX + \",\" + locY + \")\");\n System.out.println(\"Weight : \" + String.format(\"%.5f\", weight) + \" kg/day\");\n System.out.println(\"Habitat : \" + habitat);\n System.out.println(\"Type : \" + type);\n System.out.println(\"Diet : \" + diet);\n System.out.println(\"Fodder : \" + String.format(\"%.5f\", getFodder()) + \" kg\");\n System.out.println(tamed ? \"Tame : Yes \" : \"Tame : No \");\n System.out.println(\"Number of Legs : \" + legs);\n }", "public APlugin getPlugin() {\n return plugin;\n }", "public void printUsage() {\n printUsage(System.out);\n }", "protected void info(String token, TextToken<BasicTextTokenType> object) {\n switch (object.getType()){\n case INVENTORY:\n if (player.getInventory().isEmpty()) {\n output.println(\"You have nothing in your inventory\");\n } else {\n output.println(player.inventoryOverview());\n }\n break;\n case MONEY:\n output.println(player.getMoney());\n break;\n case HEALTH:// this is used to for displaying the entire dictionary of the game\n String out = \"Here are all words in the system's current syntax: \";\n Set<String> words = gameData.getDictionary();\n for(String s : words) {\n if(!s.equals(\"\")) {\n out = out.concat(s).concat(\", \");\n }\n }\n out = out.substring(0, out.length() - 2);\n out = out.concat(\".\");\n output.println(out);\n break;\n case MAX_HEALTH:\n output.println(player.getMaxHealth());\n break;\n default:\n output.println(\"Nothing by that name was found\");\n }\n\n }", "public abstract void info(Player p);", "@Override\r\n\tpublic String info() {\n\t\treturn \"Hello World! Привет мир!\";\r\n\t}", "public void print()\n\t{\n\t\tif(gameObj[1].size() > 0)\n\t\t{\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t\tSystem.out.println(\"[Lives: \" + lives + \"][Score: \" + score + \n\t\t\t\t\t\t\t\"][Time: \" + gameTime + \"]\");\n\t\t\tSystem.out.println(\"*********************Player Info*******************************\");\n\t\t}else\n\t\t\tSystem.out.println(\"Spawn a player ship to view game info\");\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "public static final void display(final Player player, final Class<? extends Tool> pluginToolClasses, final String... description) {\r\n\t\tof(pluginToolClasses, description).displayTo(player);\r\n\t}", "public void showcommandhelp(Player p)\r\n \t{\n \t\tp.sendMessage(PixArtPlugin.versionheader);\r\n \t\tp.sendMessage(\"Pixel art creation tool\");\r\n \t\tp.sendMessage(\"Syntax:\");\r\n \t\tp.sendMessage(\"/pixart [option] [arguments]\");\r\n \t\tp.sendMessage(\"supported Options- build, calc, ScaleX,ScaleY,FlipX,FlipY,Mode\");\r\n \t\tp.sendMessage(\"use /pixart [option] help for help with each.\");\r\n \t\t\r\n \t\t\r\n \t\t\r\n \t}", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "@Override\r\n public void info() {\n System.out.println(\"开始介绍\");\r\n }", "public interface AnalysisPluginInterface {\n\n\t/**\n\t * The framework will call this method to get the title of this analysis\n\t * plugin.\n\t * \n\t * @return The title.\n\t */\n\tString getTitle();\n\n\t/**\n\t * The framework will call this method to get the description of this\n\t * analysis plugin.\n\t * \n\t * @return The description.\n\t */\n\tString getDescription();\n\n\t/**\n\t * The framework will use the method to pass by a complete set of user's\n\t * data.\n\t * \n\t * @param data\n\t * A list of all person objects.\n\t */\n\tvoid setData(List<Person> data);\n\n\t/**\n\t * The framework will call this method to get the result. The result\n\t * should be presented in a JPanel.\n\t * \n\t * @return A JPanel the presents the result.\n\t */\n\tJPanel getPanel();\n\n}", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "public void writeInfo(String message){\n final String output = getTimeString() + \" INFO: \" + message+ ENTER;\n switch (PreferencesHelper.getConsolePopupLevel()) {\n case ALL:\n case ONLY_INFO:\n popConsoleView();\n break;\n default:\n break;\n }\n UIBundlingThread.getInstance().addRunnable(new Runnable(){\n public void run() {\n if(infoStream == null){\n infoStream = console.newOutputStream();\n infoStream.setColor(CustomMediaFactory.getInstance().getColor(\n CustomMediaFactory.COLOR_BLACK));\n }\n writeToConsole(infoStream, output);\n }\n });\n\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "void getInfo() {\n \tSystem.out.println(\"There doesn't seem to be anything here.\");\n }", "public static void printOut(Talkable p) {\n System.out.println(p.getName() + \" says=\" + p.talk());\n outFile.fileWrite(p.getName() + \"|\" + p.talk());\n }", "public void dumpMetaInfo(final LtMetaInfo metaInfo, final Writer writer) {\n\t\tPrintWriter pr = new PrintWriter(writer);\n\n\t\tURL url = getClass().getProtectionDomain().getCodeSource().getLocation();\n\t\tif (url.getPath().endsWith(\".jar\")) {\n\t\t\ttry {\n\t\t\t\tJarFile jarFile = new JarFile(toFile(url));\n\t\t\t\tManifest mf = jarFile.getManifest();\n\t\t\t\tAttributes attr = mf.getMainAttributes();\n\t\t\t\tpr.printf(\"perfload.implementation.version=%s\", attr.getValue(\"Implementation-Version\"));\n\t\t\t\tpr.println();\n\t\t\t\tpr.printf(\"perfload.implementation.date=%s\", attr.getValue(\"Implementation-Date\"));\n\t\t\t\tpr.println();\n\t\t\t\tpr.printf(\"perfload.implementation.revision=%s\", attr.getValue(\"Implementation-Revision\"));\n\t\t\t\tpr.println();\n\t\t\t} catch (IOException ex) {\n\t\t\t\tlog.error(ex.getMessage(), ex);\n\t\t\t}\n\t\t}\n\n\t\tpr.printf(\"test.file=%s\", metaInfo.getTestplanFileName());\n\t\tpr.println();\n\n\t\tpr.printf(\"test.start=%s\", DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(metaInfo.getStartTimestamp()));\n\t\tpr.println();\n\t\tpr.printf(\"test.finish=%s\", DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(metaInfo.getFinishTimestamp()));\n\t\tpr.println();\n\n\t\tList<Daemon> daemonList = metaInfo.getDaemons();\n\t\tCollections.sort(daemonList);\n\n\t\tfor (Daemon daemon : daemonList) {\n\t\t\tpr.printf(\"daemon.%d=%s:%d\", daemon.getId(), daemon.getHost(), daemon.getPort());\n\t\t\tpr.println();\n\t\t}\n\n\t\tList<String> lpTargets = metaInfo.getLpTargets();\n\t\tif (!lpTargets.isEmpty()) {\n\t\t\tCollections.sort(lpTargets);\n\t\t\tpr.printf(\"targets=%s\", on(',').join(lpTargets));\n\t\t\tpr.println();\n\t\t}\n\n\t\tList<String> lpOperations = metaInfo.getLpOperations();\n\t\tif (!lpOperations.isEmpty()) {\n\t\t\tCollections.sort(lpOperations);\n\t\t\tpr.printf(\"operations=%s\", on(',').join(lpOperations));\n\t\t\tpr.println();\n\t\t}\n\n\t\tList<Executions> executionsList = metaInfo.getExecutionsList();\n\t\tCollections.sort(executionsList);\n\t\tfor (Executions executions : executionsList) {\n\t\t\tpr.printf(\"executions.%s.%s=%d\", executions.operation, executions.target, executions.executions);\n\t\t\tpr.println();\n\t\t}\n\t}", "default String info(String... args) {\n String message = create(args);\n getLogger().info(message);\n return message;\n }", "@Override\n public void executeByPluginType(String contentType) {\n pluginFactory\n .getPlugin(contentType)\n .otherOutput();\n }", "public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}", "void printPlayersActionInfo(Player p) {\n }", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private static void printUsage() throws Exception {\n\t\tSystem.out.println(new ResourceGetter(\"uk/ac/cam/ch/wwmm/oscar3/resources/\").getString(\"usage.txt\"));\n\t}", "private static void printCliHelp(String message) {\n \t\tSystem.out.println(message);\n \t\tHelpFormatter formatter = new HelpFormatter();\n\t\tformatter.printHelp(\"java -jar OsmPbfMetadata.jar\", createOptions());\n \t\tSystem.exit(-1);\n \t}", "public void printUserInfo(){\n System.out.print(\"Username: \"+ getName() + \"\\n\" + \"Birthday: \"+getBirthday()+ \"\\n\"+ \"Hometown: \"+getHome()+ \"\\n\"+ \"About: \" +getAbout()+ \" \\n\"+ \"Subscribers: \" + getSubscriptions());\n\t}", "private void aboutHandler() {\n JOptionPane.showMessageDialog(\n this.getParent(),\n \"YetAnotherChessGame v1.0 by:\\nBen Katz\\nMyles David\\n\"\n + \"Danielle Bushrow\\n\\nFinal Project for CS2114 @ VT\");\n }", "void show_info() {\n\t\tsetAlwaysOnTop(false);\n\n\t\tString msg = \"<html><ul><li>Shortcuts:<br/>\"\n\t\t\t\t+ \"(\\\") start macro<br/>\"\n\t\t\t\t+ \"(esc) exit<br/><br/>\"\n\t\t\t\t+ \"<li>Author: <b>Can Kurt</b></ul></html>\";\n\n\t\tJLabel label = new JLabel(msg);\n\t\tlabel.setFont(new Font(\"arial\", Font.PLAIN, 15));\n\n\t\tJOptionPane.showMessageDialog(null, label ,\"Info\", JOptionPane.INFORMATION_MESSAGE);\n\n\t\tsetAlwaysOnTop(true);\n\t}", "public void displayGui(JavaPlugin plugin) {\n\n\t\tif (player == null) {\n\t\t\tthrow new IllegalArgumentException(\"The player must be set before displaying the GUI\");\n\t\t}\n\n\t\tInventory gui = createInventory();\n\n\t\titems.buildGui(gui);\n\n\t\tlistener = new GuiEventListener(this, gui, plugin, player);\n\t\tlistener.registerListener();\n\n\t\tplayer.openInventory(gui);\n\n\t}", "public String getPluginName(){\n\t\treturn pluginName;\n\t}", "void gaInfo(String text);", "void printHelp();", "@Override\n\tpublic void printInfo() {\n\t\tsuper.printInfo();\n\t\tmessage();\n\t\tdoInternet();\n\t\tmailing();\n\t\tcalling();\n\t\twatchingTV();\n\n\t}", "public static void info(Object message) {\n\t\tSystem.out.print(message);\n\t}", "private void help() {\n for (GameMainCommandType commandType : GameMainCommandType.values()) {\n System.out.printf(\"%-12s%s\\n\", commandType.getCommand(), commandType.getInfo());\n }\n System.out.println();\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public Plugin getPlugin()\r\n\t{\r\n\t\treturn plugin;\r\n\t}", "public interface Plugin<T> {\n\t/**\n\t * Method returns the hashmap with loaded plugins. </p> Hashmap is inside\n\t * PluginManager class.\n\t * \n\t * @return hashmap with loaded plugins\n\t */\n\tpublic HashMap<String, T> getStorage();\n\n\t/**\n\t * Method adds the plugin specified in pluginClass param into hashmap with\n\t * param key. </p> Hashmap is inside PluginManager class.\n\t * \n\t * @param key\n\t * to hashmap with added plugin\n\t * @param pluginClass\n\t * of type class to save into hashmap\n\t */\n\tpublic void addPlugin(String key, T pluginClass);\n\n\t/**\n\t * Name of the plugin.\n\t * \n\t * @return name of plugin\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Tests if the plugin has any error\n\t * \n\t * @return true if there is any error.\n\t */\n\tpublic boolean hasError();\n}", "public interface Outputable {\n void onOutput(String output, int id);\n}", "public void info(String string) {\n\t\t\n\t}" ]
[ "0.6855751", "0.64436203", "0.6092187", "0.60830677", "0.5993037", "0.59798354", "0.5969257", "0.59056467", "0.59005404", "0.58309877", "0.57771724", "0.5753976", "0.57223475", "0.56977457", "0.56557536", "0.56557536", "0.55751836", "0.5491542", "0.545732", "0.53952867", "0.53709966", "0.5361653", "0.532862", "0.5324033", "0.53081524", "0.53012866", "0.52910155", "0.5268314", "0.5205228", "0.52028626", "0.51534885", "0.5134572", "0.5132538", "0.51267993", "0.5108014", "0.51051444", "0.50995356", "0.50982064", "0.5094979", "0.50919074", "0.50827765", "0.50770056", "0.5073585", "0.50644225", "0.5060942", "0.50600064", "0.50577676", "0.5034277", "0.5031808", "0.5027648", "0.5019572", "0.5014554", "0.50095725", "0.50008607", "0.499481", "0.49911687", "0.4990393", "0.49898466", "0.49838868", "0.49838242", "0.49816567", "0.4980153", "0.4978876", "0.49787635", "0.49762967", "0.49757922", "0.49691424", "0.4957189", "0.49536765", "0.49514672", "0.49412614", "0.49394345", "0.49320072", "0.4926563", "0.49265194", "0.49249834", "0.49176863", "0.4910964", "0.49062124", "0.48982644", "0.48908007", "0.48884892", "0.48803034", "0.48750326", "0.48714402", "0.48694223", "0.4858789", "0.4858603", "0.4853245", "0.48495415", "0.4844593", "0.48419836", "0.48356444", "0.48323047", "0.4830792", "0.48306656", "0.4828383", "0.48273256", "0.48251444", "0.48241037" ]
0.63885564
2
Disable a given plugin.
private boolean disablePlugin(PluginCommandManager manager, CommandSender player, String pluginName) { PluginManager pluginManager = Bukkit.getServer().getPluginManager(); Plugin plugin = getPlugin(pluginName); if (plugin == null) { manager.sendMessage(player, "A plugin with the name '" + pluginName + "' could not be found."); return true; } pluginManager.disablePlugin(plugin); manager.sendMessage(player, "The plugin '" + pluginName + "' was successfully disabled."); m_plugin.cachePluginDetails(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void disable(CommonPlugin plugin);", "@Override\n public void onPluginDisable(PluginDisableEvent event) {\n if (this.Methods != null && this.Methods.hasMethod()) {\n Boolean check = this.Methods.checkDisabled(event.getPlugin());\n\n if(check) {\n ConnectFour.Method = null;\n }\n }\n }", "@Override\n public void onPluginDisable(PluginDisableEvent event) {\n if (EconServerListener.Methods != null && EconServerListener.Methods.hasMethod()) {\n Boolean check = EconServerListener.Methods.checkDisabled(event.getPlugin());\n\n if(check) {\n this.plugin.Method = null;\n System.out.println(\"[\" + plugin.name + \"] Payment method was disabled. No longer accepting payments.\");\n EconomyHandler.currencyEnabled = false;\n }\n }\n }", "public void disable();", "@Override\r\n public void onDisable() {\r\n \tBukkit.getLogger().info(\"[VoteHeads] Plugin Disabled.\");\r\n\r\n }", "void disableMod();", "void disable();", "void disable();", "protected abstract void disable();", "@Override\r\n public void onDisable() {\r\n log.info(\"[SeattleSummer] plugin disabled.\");\r\n }", "public void disableComponent(String name);", "public void disable()\r\n\t{\r\n\t\tenabled = false;\r\n\t}", "@Override\n\tpublic void disable(String id) throws Exception {\n\t\t\n\t}", "public void disable ( ) {\r\n\t\tenabled = false;\r\n\t}", "void disable() {\n }", "public abstract void onDisable();", "public void onDisable() {\n \n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println( pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" is disabled!\" );\n }", "public void disable() {\n \t\t\tsetEnabled(false);\n \t\t}", "@EventHandler(priority = EventPriority.HIGHEST, ignoreCancelled = true)\n public void onPluginDisable(@NotNull PluginDisableEvent event) {\n if (event.getPlugin() != plugin) {\n return;\n }\n\n int counter = 0; //callbacks might open GUIs, eg. in nested menus\n\t\tint maxCount = 10;\n while (!activeGuiInstances.isEmpty() && counter++ < maxCount) {\n for (Gui gui : new ArrayList<>(activeGuiInstances)) {\n for (HumanEntity viewer : gui.getViewers()) {\n viewer.closeInventory();\n }\n }\n }\n\n if (counter == maxCount) {\n\t\t\tplugin.getLogger().warning(\"Unable to close GUIs on plugin disable: they keep getting opened \"\n\t\t\t\t\t+ \"(tried: \" + maxCount + \" times)\");\n\t\t}\n }", "public void onDisable() {\n }", "public void onDisable() {\n }", "public void onDisable() {\r\n }", "public void onDisable()\n {\n }", "default void onDisable() {}", "public void onDisable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println(pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" disabled!\");\n }", "public void onDisable() {\n }", "@Override\n\tpublic void onDisable() {\n\t\tArduinoInstruction.getInst().disable();\n\t}", "public void disable()\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.disable(mBinder);\n } catch (RemoteException e) {\n Log.e(TAG, \"disable failed\");\n }\n }", "@Override\n\tpublic void onDisable() {\n\t\t\n\t}", "@Override\n public void onDisable() {\n }", "void disable(final Op op);", "@Override\n\tpublic void onDisable() {\n\n\t}", "@Override\r\n\tpublic void onDisable() {\n\t}", "void disablePWM();", "public static void disable() {\n if (lock.compareAndSet(false, true)) {\n\n RxJavaPlugins.setOnCompletableAssembly(null);\n RxJavaPlugins.setOnSingleAssembly(null);\n RxJavaPlugins.setOnMaybeAssembly(null);\n\n RxJavaPlugins.setOnObservableAssembly(null);\n RxJavaPlugins.setOnFlowableAssembly(null);\n RxJavaPlugins.setOnConnectableObservableAssembly(null);\n RxJavaPlugins.setOnConnectableFlowableAssembly(null);\n\n RxJavaPlugins.setOnParallelAssembly(null);\n\n lock.set(false);\n }\n }", "public void onDisable()\n\t{\n\t\t//Tells the user that the plugin is shutting down.\n\t\tlog.info(\"Shut down.\");\n\t}", "protected void turnOFF(BaseNotificationPlugin plugin) {\n pluginSettingService.saveActivePlugin(UserSetting.EMAIL_CHANNEL, plugin.getId(), false);\n }", "private void disablePlugIn(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'disablePlugIn'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.disablePlugIn(aConnector, aToken));\n\t}", "public void disable() {\r\n m_enabled = false;\r\n useOutput(0, 0);\r\n }", "@SuppressWarnings(\"unchecked\")\r\n private boolean unloadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n Plugin plugin = getPlugin(pluginName);\r\n if (plugin == null) {\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found.\");\r\n return true;\r\n }\r\n SimplePluginManager simplePluginManager = (SimplePluginManager) pluginManager;\r\n try {\r\n Field pluginsField = simplePluginManager.getClass().getDeclaredField(\"plugins\");\r\n pluginsField.setAccessible(true);\r\n List<Plugin> plugins = (List<Plugin>) pluginsField.get(simplePluginManager);\r\n Field lookupNamesField = simplePluginManager.getClass().getDeclaredField(\"lookupNames\");\r\n lookupNamesField.setAccessible(true);\r\n Map<String, Plugin> lookupNames = (Map<String, Plugin>) lookupNamesField.get(simplePluginManager);\r\n Field commandMapField = simplePluginManager.getClass().getDeclaredField(\"commandMap\");\r\n commandMapField.setAccessible(true);\r\n SimpleCommandMap commandMap = (SimpleCommandMap) commandMapField.get(simplePluginManager);\r\n Field knownCommandsField;\r\n Map<String, Command> knownCommands = null;\r\n if (commandMap != null) {\r\n knownCommandsField = commandMap.getClass().getDeclaredField(\"knownCommands\");\r\n knownCommandsField.setAccessible(true);\r\n knownCommands = (Map<String, Command>) knownCommandsField.get(commandMap);\r\n }\r\n pluginManager.disablePlugin(plugin);\r\n if (plugins != null && plugins.contains(plugin)) {\r\n plugins.remove(plugin);\r\n }\r\n if (lookupNames != null && lookupNames.containsKey(pluginName)) {\r\n lookupNames.remove(pluginName);\r\n }\r\n if (commandMap != null && knownCommands != null) {\r\n for (Iterator<Map.Entry<String, Command>> it = knownCommands.entrySet().iterator(); it.hasNext();) {\r\n Map.Entry<String, Command> entry = it.next();\r\n if (entry.getValue() instanceof PluginCommand) {\r\n PluginCommand command = (PluginCommand) entry.getValue();\r\n if (command.getPlugin() == plugin) {\r\n command.unregister(commandMap);\r\n it.remove();\r\n }\r\n }\r\n }\r\n }\r\n } catch (NoSuchFieldException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (SecurityException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (IllegalArgumentException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (IllegalAccessException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n }\r\n \r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' was successfully unloaded.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "public void disable()\n\t{\n\t\tplayButton.setEnabled(false);\n\t\tpassButton.setEnabled(false);\n\t\tbigTwoPanel.setEnabled(false);\n\t}", "public void disable() {\n\t\tm_enabled = false;\n\t\tuseOutput(0);\n\t}", "@Override\n\tpublic void onDisable() {\n\t\tgetLogger().info(\"SimplyWrapper successfully disabled !\");\n\t}", "void disableCmdlet(long cmdletID) throws IOException;", "@Override\n public void onDisable() {\n super.onDisable();\n running = false;\n }", "@Override\n\tpublic void onDisabled(Context context) \n\t{\n\t\tPackageManager pm = context.getPackageManager();\n\t\tpm.setComponentEnabledSetting(\n\t\t\t\tnew ComponentName(\"de.fhe\", \"MyAppWidgetProvider\"),\n\t\t\t\tPackageManager.COMPONENT_ENABLED_STATE_DISABLED, \n\t\t\t\tPackageManager.DONT_KILL_APP );\n\t}", "public jpuppeteer.util.XFuture<?> disable() {\n return connection.send(\"Security.disable\", null);\n }", "public void disable(){\r\n\t\tthis.activ = false;\r\n\t}", "@Override\r\n public void disableServo(int servo) {\r\n checkServoCommandThread();\r\n ServoCommand cmd=new ServoCommand();\r\n cmd.bytes=new byte[2];\r\n cmd.bytes[0]=CMD_DISABLE_SERVO;\r\n cmd.bytes[1]=(byte)getServo(servo);\r\n submitCommand(cmd);\r\n }", "@Override\n\tpublic boolean disablePartner(Partner partner) {\n\t\treturn false;\n\t}", "public void disable() {\n\t\tm_runner.disable();\n\t}", "@Override\n public void onDisable() {\n \tgetLogger().info(\"onDisable has been invoked!\");\n }", "public interface Disabler<M extends Disabled> {\n\n\tvoid disable(M entiry);\n}", "public void disable() {\n disabled = true;\n circuit.disable();\n updateSign(true);\n notifyChipDisabled();\n }", "@Override\n public void onDisable() {\n getLogger().info(\"Successfully disabled.\");\n }", "public void onProviderDisabled(String provider) {\n\n }", "public void stopPlugin() {\n try {\n ServicesRegisterManager.removeService(Parameters.JAR_REPOSITORY_MANAGER);\n }\n catch (ServiceClosedException sce) {}\n }", "public void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderDisabled(String provider) {\n }", "public void onProviderDisabled(String provider) {\n }", "public void onProviderDisabled(String provider) {\n\t }", "public void onProviderDisabled(String provider) {\n\t\t\n\t}", "public static void disable(Player p) {\n\t\tswitch (p.name) {\n\t\tcase \"Captain America\":\n\t\t\tca_attack.setEnabled(false);\n\t\t\tbreak;\n\t\tcase \"Hawkeye\":\n\t\t\the_attack.setEnabled(false);\n\t\t\tbreak;\n\t\tcase \"Black Widow\":\n\t\t\tbw_attack.setEnabled(false);\n\t\t\tbreak;\n\t\tcase \"Hulk\":\n\t\t\thulk_attack.setEnabled(false);\n\t\t\tbreak;\n\t\tcase \"Thor\":\n\t\t\tthor_attack.setEnabled(false);\n\t\t\tbreak;\n\t\tcase \"Loki\":\n\t\t\tloki_attack.setEnabled(false);\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n public void onDisable() {\n try {\n System.out.println(\"Cleaning Dynamic Server System Processes.\");\n for (MinigameServer minigameServer : dynamicServerSystemManager.getServers())\n minigameServer.deleteServer();\n\n // Clean the output directory.\n FileUtils.deleteDirectory(new File(\"../minigameservers\"));\n new File(\"../minigameservers\").mkdirs();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n plugin = null;\n }", "public void onProviderDisabled(String provider)\n {\n }", "public abstract void wgb_onDisable();", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderDisabled(String provider) {\n\r\n\t\t}", "@Override\n\tpublic void requestDisableModule() {\n\t\tif (!moduleActive.get() && !enableRequested.get()) {\n\t\t\tLOGGER.error(\"RequestDisableModule: Module not enabled - ignoring request\");\n\t\t\treturn;\n\t\t}\n\t\tenableRequested.set(false);\n\t\tdisableRequested.set(true);\n\t\tsynchronized (lockPeerChange) {\n\t\t\tlockPeerChange.notifyAll();\n\t\t}\n\t\tLOGGER.trace(\"RequestDisableModule: Finished Request\");\n\t}", "public void disable(boolean b) {\n\t\tif (b) permanent = true;\n\t\tenabled = false;\n\t\trect.setColor(disabledColor);\n\t}", "public void onProviderDisabled(String provider) {\n \n \t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\n\t\t}", "@Override\n\t\tpublic void onProviderDisabled(String provider) {\n\n\t\t}", "@Override\r\n\tpublic void disable() {\r\n\t\tthis.tablero.disable();\r\n\t\tthis.panel.disableWhileThinking();\r\n\t}", "void disableUpgrade(NodeType type);", "public void onProviderDisabled(String provider) {\n\t\t}", "@Override\n boolean disable() {\n return altingChannel.disable();\n }", "protected static void unregister(Plugin plugin) {\n\t\tPlatform platform = PLATFORMS.remove(plugin);\n\n\t\tif (platform == null)\n\t\t\treturn;\n\n\t\tplatform.getObjectiveUpdater().stop(true);\n\t\tplatform.getTimeLine().getTimeTask().stop();\n\t\tEventManager.unregisterListener(platform);\n\t}", "@Override\n\t public void onProviderDisabled(String provider) \n\t {\n\t \n\t }", "void unsetPluginstate();", "public void onProviderDisabled(String provider) {\n\n\n\n }", "@Override\n\tpublic void disabled(AbstractHardware<? extends AbstractHardwareListener> hardware) {\n\t}", "@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t\n\t}", "@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t\n\t}", "@Override\n\tpublic void onProviderDisabled(String provider) {\n\t\t\n\t}", "@Override\r\n\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\r\n\t\t}", "@Override\n\t\t\tpublic void onProviderDisabled(String provider) {\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void onProviderDisabled(String provider) {\n\t\r\n\t}", "public abstract void Disabled();", "public void enable(CommonPlugin plugin);", "@Override\n\tpublic void onProviderDisabled(String provider) {\n\t}", "@Override\n\tpublic void onProviderDisabled(String provider) {\n\n\t}" ]
[ "0.85843617", "0.6701336", "0.66274375", "0.6614218", "0.65663564", "0.6521611", "0.6472441", "0.6472441", "0.6437443", "0.6417665", "0.6411031", "0.63922036", "0.6368101", "0.63668776", "0.63350046", "0.63079876", "0.62374204", "0.61866075", "0.6159259", "0.61504984", "0.61504984", "0.6128055", "0.61103904", "0.6107418", "0.6103484", "0.6102601", "0.6093344", "0.6068203", "0.6026113", "0.60194486", "0.600611", "0.60014063", "0.5993056", "0.59771955", "0.5965312", "0.59070975", "0.587069", "0.58424634", "0.5838673", "0.5821667", "0.5815239", "0.5793403", "0.5786385", "0.57729554", "0.573888", "0.5713824", "0.5712319", "0.5707019", "0.57067984", "0.5698511", "0.5652952", "0.5644382", "0.56213826", "0.560362", "0.559219", "0.55517733", "0.55424786", "0.553639", "0.553639", "0.553639", "0.55287534", "0.55287534", "0.5511814", "0.5507211", "0.54993165", "0.5493111", "0.548364", "0.547714", "0.5468332", "0.5468332", "0.5468332", "0.5468332", "0.5468332", "0.5468332", "0.5468332", "0.5467671", "0.54476416", "0.54435784", "0.5443478", "0.5438027", "0.5438027", "0.543133", "0.5419479", "0.54145825", "0.5410484", "0.54053843", "0.540012", "0.53997886", "0.53845704", "0.53821844", "0.538048", "0.538048", "0.538048", "0.5364876", "0.5364684", "0.5358298", "0.5357189", "0.53493154", "0.5340032", "0.5339357" ]
0.7022427
1
Unload a given plugin.
@SuppressWarnings("unchecked") private boolean unloadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) { PluginManager pluginManager = Bukkit.getServer().getPluginManager(); Plugin plugin = getPlugin(pluginName); if (plugin == null) { manager.sendMessage(player, "A plugin with the name '" + pluginName + "' could not be found."); return true; } SimplePluginManager simplePluginManager = (SimplePluginManager) pluginManager; try { Field pluginsField = simplePluginManager.getClass().getDeclaredField("plugins"); pluginsField.setAccessible(true); List<Plugin> plugins = (List<Plugin>) pluginsField.get(simplePluginManager); Field lookupNamesField = simplePluginManager.getClass().getDeclaredField("lookupNames"); lookupNamesField.setAccessible(true); Map<String, Plugin> lookupNames = (Map<String, Plugin>) lookupNamesField.get(simplePluginManager); Field commandMapField = simplePluginManager.getClass().getDeclaredField("commandMap"); commandMapField.setAccessible(true); SimpleCommandMap commandMap = (SimpleCommandMap) commandMapField.get(simplePluginManager); Field knownCommandsField; Map<String, Command> knownCommands = null; if (commandMap != null) { knownCommandsField = commandMap.getClass().getDeclaredField("knownCommands"); knownCommandsField.setAccessible(true); knownCommands = (Map<String, Command>) knownCommandsField.get(commandMap); } pluginManager.disablePlugin(plugin); if (plugins != null && plugins.contains(plugin)) { plugins.remove(plugin); } if (lookupNames != null && lookupNames.containsKey(pluginName)) { lookupNames.remove(pluginName); } if (commandMap != null && knownCommands != null) { for (Iterator<Map.Entry<String, Command>> it = knownCommands.entrySet().iterator(); it.hasNext();) { Map.Entry<String, Command> entry = it.next(); if (entry.getValue() instanceof PluginCommand) { PluginCommand command = (PluginCommand) entry.getValue(); if (command.getPlugin() == plugin) { command.unregister(commandMap); it.remove(); } } } } } catch (NoSuchFieldException ex) { manager.sendMessage(player, "Failed to query plugin manager, could not unload plugin."); return true; } catch (SecurityException ex) { manager.sendMessage(player, "Failed to query plugin manager, could not unload plugin."); return true; } catch (IllegalArgumentException ex) { manager.sendMessage(player, "Failed to query plugin manager, could not unload plugin."); return true; } catch (IllegalAccessException ex) { manager.sendMessage(player, "Failed to query plugin manager, could not unload plugin."); return true; } manager.sendMessage(player, "The plugin '" + pluginName + "' was successfully unloaded."); m_plugin.cachePluginDetails(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public synchronized void unload() {\n if (hasPlugin()) {\n try {\n plugin.unload();\n plugin = null;\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while unloading with exception:\", ex);\n }\n }\n }", "protected static void unregister(Plugin plugin) {\n\t\tPlatform platform = PLATFORMS.remove(plugin);\n\n\t\tif (platform == null)\n\t\t\treturn;\n\n\t\tplatform.getObjectiveUpdater().stop(true);\n\t\tplatform.getTimeLine().getTimeTask().stop();\n\t\tEventManager.unregisterListener(platform);\n\t}", "boolean unload();", "boolean unload(boolean save);", "static public void callPluginDestroy(Object plugin)\n {\n callSpecialFunc(plugin, \"destroy\");\n }", "public void stopPlugin() {\n try {\n ServicesRegisterManager.removeService(Parameters.JAR_REPOSITORY_MANAGER);\n }\n catch (ServiceClosedException sce) {}\n }", "public void removePlugin(@NotNull EditorPlugin plugin) {\n pluginSystem.removePlugin(plugin);\n }", "@Deactivate\n public void deactivate()\n {\n m_PluginFactoryTracker.close();\n if (m_RegistryComponent != null)\n {\n m_RegistryComponent.dispose();\n }\n }", "public void unload(){ \n load.unloadFirst(); \n }", "public void unload() throws IOException;", "public void unload() {\n plugin.getEngine().getWorldProvider().getHeartbeat().unsubscribe(WIND);\n plugin.getRootConfig().unsubscribe(TEMPERATURES);\n }", "void unsetPluginstate();", "public void unload() {\r\n\t\tunloadMCE(id);\r\n\t}", "public void onUnload() {\n\t}", "public void deletePlugin( final String pluginName )\n {\n Log.debug( \"Deleting plugin '{}'...\", pluginName );\n\n try ( final DirectoryStream<Path> ds = Files.newDirectoryStream( getPluginsDirectory(), new DirectoryStream.Filter<Path>()\n {\n @Override\n public boolean accept( final Path path ) {\n if ( Files.isDirectory( path ) )\n {\n return false;\n }\n\n final String fileName = path.getFileName().toString().toLowerCase();\n return ( fileName.equals( pluginName + \".jar\" ) || fileName.equals( pluginName + \".war\" ) );\n }\n } ) )\n {\n for ( final Path pluginFile : ds )\n {\n try\n {\n Files.delete( pluginFile );\n pluginMonitor.runNow( true ); // trigger unload by running the monitor (which is more thread-safe than calling unloadPlugin directly).\n }\n catch ( IOException ex )\n {\n Log.warn( \"Unable to delete plugin '{}', as the plugin jar/war file cannot be deleted. File path: {}\", pluginName, pluginFile, ex );\n }\n }\n }\n catch ( Throwable e )\n {\n Log.error( \"An unexpected exception occurred while deleting plugin '{}'.\", pluginName, e );\n }\n }", "public boolean unHookPlugin(String id) {\n\t\tsynchronized(this.hookedPlugins) {\n\t\t\tif (id == null || !this.hookedPlugins.containsKey(id))\n\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\tPluginLogListener listener = this.hookedPlugins.get(id);\n\t\t\tlistener.dispose(); \n\t\t\tthis.hookedPlugins.remove(id);\n\t\t}\t\t\n\t\treturn true;\n\t}", "public void unloaded(){\n\t\tloaded=false;\n\t}", "public void load(Maussentials plugin);", "public void unload() {\n releasePressureToReturn();\n releasePressureToShooter();\n latch(false);\n// reloaded = false;\n }", "public void removeExtensionPoint(IPlugin extensionPointPlugin) {\n lock.writeLock().lock();\n try {\n for (String id : extensionPointPlugin.getIds()) {\n extensionPointPluginMap.remove(extensionPointPlugin.getName(), id);\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "public void removePluginListener( PluginListener listener )\n {\n pluginListeners.remove( listener );\n }", "public void closeLoader();", "@Override\n public void stop(BundleContext context) throws Exception {\n super.stop(context);\n plugin = null;\n }", "@Override\n public void shutdown() throws PluginException {\n\n }", "@Override\n\tpublic void stop(BundleContext context) throws Exception {\n\t\tm_plugin = null;\n\t\tsuper.stop(context);\n\t}", "public void onWorldUnload(Minecraft minecraft, WorldClient world, String message);", "public synchronized void shutdown()\n {\n Log.info( \"Shutting down. Unloading all loaded plugins...\" );\n\n // Stop the plugin monitoring service.\n pluginMonitor.stop();\n\n // Shutdown all loaded plugins.\n for ( Map.Entry<String, Plugin> plugin : pluginsLoaded.entrySet() )\n {\n try\n {\n plugin.getValue().destroyPlugin();\n Log.info( \"Unloaded plugin '{}'.\", plugin.getKey() );\n }\n catch ( Exception e )\n {\n Log.error( \"An exception occurred while trying to unload plugin '{}':\", plugin.getKey(), e );\n }\n }\n pluginsLoaded.clear();\n pluginDirs.clear();\n pluginMetadata.clear();\n classloaders.clear();\n childPluginMap.clear();\n failureToLoadCount.clear();\n }", "void unloadUserData();", "public void finished(String plugin)\n {\n synchronized(this.monitor)\n {\n if ( this.running.remove(plugin) )\n { \n this.finished = plugin; // Updated shared resource\n }\n this.monitor.notify(); // Notify filter to start\n }\n }", "public void unRegister(GameObject gameObject) {\r\n\t\tsuper.unRegister((Object)gameObject);\r\n\t}", "public void exitOverlay() {\n\t\tdeRegister(); \n\t}", "public void removePluginListener(PluginListener listener)\n\t{\n\t\tthis.pluginListeners.remove(listener);\n\t}", "@Override\n public void onDestroy() {\n mPluginManager = null;\n \n super.onDestroy();\n }", "public void unloadChunk(Chunk chunk) {\n String key = chunkToString(chunk);\n ChunkWrapper wrapper = chunks.get(key);\n if (wrapper != null) {\n wrapper.save(false, false);\n chunks.remove(key);\n }\n }", "public void onChunkUnload()\n {\n //RadioMod.logger.info(\"Unload\");\n RadioMod.instance.musicManager.radioSources.get(this.uuid).stopMusic();\n }", "public void stop(BundleContext context) throws Exception {\n\t\tsuper.stop(context);\n\t\tplugin = null;\n\t}", "public void exit() {\n loader.getApplet().stop();\n loader.getApplet().destroy();\n }", "void unloadUser(KingdomUser user);", "void close() {\n unload0(name, handle);\n }", "public void disable(CommonPlugin plugin);", "public void\tdeinitialize(Game game);", "public Lookup unload() {\n storedVariables.remove();\n return this;\n }", "@Override\r\n\tpublic void stop(BundleContext context) throws Exception {\r\n\t\tsuper.stop(context);\r\n\t\tplugin = null;\r\n\t\tresourceBundle = null;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void completeIntent(Plugin plugin) {\n\t\tPreconditions.checkState(intents.contains(plugin), \"Plugin %s has not registered intent for event %s\", plugin, this);\n\t\tintents.remove(plugin);\n\t\tif (latch.decrementAndGet() == 0 && fired.get()) {\n\t\t\tdone.done((T) this, null);\n\t\t}\n\t}", "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 static void deletePluginData(ATPluginData pluginData) throws Exception {\n try {\n DomainAccessObject access =\n DomainAccessObjectFactory.getInstance().getDomainAccessObject(ATPluginData.class);\n access.getLongSession();\n access.deleteLongSession(pluginData);\n } catch(Exception e) {\n e.printStackTrace();\n throw new Exception(\"Error Deleting Plugin Data to Database ...\");\n }\n }", "public void unloadGameTextures()\r\n {\n }", "public static void reload(PluginData data) throws LoadException {\n\t\tPluginBase pluginBase = data.getInstance();\n\t\tpluginBase.onUnload();\n\t\tEventManager.INSTANCE.invoke(new PluginUnloadEvent(data));\n\t\tEventManager.INSTANCE.destroyCache(pluginBase);\n\t\t// Reload\n\t\tPluginLoader.load(data.getJar());\n\t}", "public static void destruct() {\n\t\tinstance = null;\n\t}", "void internalShutdown() {\n\t\tsynchronized(this.hookedPlugins) {\n\t\t\tIterator<String> it = this.hookedPlugins.keySet().iterator();\n\t\t\twhile (it.hasNext()) {\n\t\t\t\tString id = it.next(); \n\t\t\t\tPluginLogListener listener = this.hookedPlugins.get(id);\n\t\t\t\tlistener.dispose(); \n\t\t\t}\n\t\t\tthis.hookedPlugins.clear(); \n\t\t}\t\n\t\tthis.hierarchy.shutdown();\n\t}", "@Override\n public boolean onUnbind(Intent intent) {\n mPluginManager = null;\n \n stopSelf();\n \n return false;\n }", "void decoller();", "public native void loadPlugin(final String plugin);", "private void unloadProject()\n {\n if (projectBuilder != null) {\n projectBuilder.database.close();\n projectBuilder = null;\n }\n\n if (projectSettingsPanel != null) {\n Container container = projectSettingsPanel.getParent();\n if (container != null)\n container.remove(projectSettingsPanel);\n projectSettingsPanel = null;\n }\n\n projectSettingsContainer.removeAll();\n generateButton.setEnabled(false);\n\n project = null;\n }", "public void unloadDocument() {\n\t\tfor (int i=0; i<jtp.getTabCount()-1; i++) {\n\t\t\t((XCDisplay)jtp.getComponentAt(i)).unloadDocument();\n\t\t}\n\t\t//jtp.removeChangeListener(jtp.getChangeListeners()[0]);\n\t\t//jtp.removeAll();\n\t}", "private Storage_Area unloadAGV (Storage_Area storage) throws Exception\r\n {\r\n return unloadContainer(0,0, storage);\r\n }", "public void Unload() {\n\t\tsceneLoaded = false;\n\t\tfor (GameObject gO : gameObjects) {\n\t\t\tEngine.Instance.RemoveObject(gO);\n\t\t}\n\t\tEngine.Instance.currentScenes.remove(this);\n\t}", "void release(ClassLoader classLoader);", "@Override\n\tpublic void closeProcedure(String instanceId, IProgressMonitor monitor) throws UnloadFailed\n\t{\n\t\tLogger.info(\"Closing procedure \" + instanceId, Level.PROC, this);\n\t\tif (isLocallyLoaded(instanceId))\n\t\t{\n\t\t\tcloseLocalProcedure(instanceId, monitor);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tunloadRemoteProcedure(instanceId, false, monitor);\n\t\t}\n\t}", "public void firePluginRemoved()\n\t{\n\t\tfor (PluginListener pl : this.pluginListeners)\n\t\t{\n\t\t\tpl.pluginRemoved(pluginEvent);\n\t\t}\t\n\t}", "@Override\n public void exit() {\n player.steeringBehaviorsManager.removeBehavior(ballPursuit);\n }", "public void unregisterGameObject(GameObject gameObject) {\n synchronized (mGameObjects) {\n mGameObjects.remove(gameObject);\n }\n Main.logger.log(Logger.VERBOSE, \"Unregistered \" + gameObject + \" @ \" + gameObject.getLocation());\n }", "boolean unregister(HistogramInterface histogram);", "boolean unregister(Gauge<?> gauge);", "private void unloadRemoteProcedure(String instanceId, boolean kill, IProgressMonitor monitor) throws UnloadFailed\n\t{\n\t\tLogger.debug(\"unloadRemoteProcedure()\", Level.PROC, this);\n\t\tmonitor.beginTask(\"Unload remote procedure\", 2);\n\n\t\t// Check proxy connection\n\t\tcheckConnectivity();\n\n\t\t// Check the identifier\n\t\tif (!m_models.isRemote(instanceId))\n\t\t{\n\t\t\tmonitor.setCanceled(true);\n\t\t\tmonitor.done();\n\t\t\tthrow new UnloadFailed(\"No such procedure: '\" + instanceId + \"'\");\n\t\t}\n\n\t\tm_models.deleteRemoteProcedureModel(instanceId);\n\t\tmonitor.worked(1);\n\n\t\ttry\n\t\t{\n\t\t\t// Request context to load the procedure\n\t\t\tboolean closed = false;\n\t\t\tif (kill)\n\t\t\t{\n\t\t\t\tmonitor.subTask(\"Killing process\");\n\t\t\t\tLogger.debug(\"Requesting context to kill procedure : \" + instanceId, Level.PROC, this);\n\t\t\t\tclosed = s_ctx.killExecutor(instanceId);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tmonitor.subTask(\"Closing process\");\n\t\t\t\tLogger.debug(\"Requesting context to close procedure : \" + instanceId, Level.PROC, this);\n\t\t\t\tclosed = s_ctx.closeExecutor(instanceId);\n\t\t\t}\n\t\t\tif (!closed)\n\t\t\t{\n\t\t\t\t// The context command was sent but it raised an error\n\t\t\t\tmonitor.setCanceled(true);\n\t\t\t\tmonitor.done();\n\t\t\t\tthrow new UnloadFailed(\"Could not unload the procedure \" + instanceId);\n\t\t\t}\n\t\t\tmonitor.worked(1);\n\t\t}\n\t\tcatch (ContextError err)\n\t\t{\n\t\t\tLogger.error(err.getLocalizedMessage(), Level.PROC, this);\n\t\t\t// The procedure could not be unloaded due to an error in the\n\t\t\t// context\n\t\t\t// processing\n\t\t\tthrow new UnloadFailed(\"Could not unload the procedure \" + instanceId + \": \" + err.getLocalizedMessage());\n\t\t}\n\t}", "@Override\r\n public void unsetup(SpigotImporter importer, Panel panel) {\n try{\r\n System.out.println(panels.length);\r\n //MavselWizardSwing2 \r\n ((MavselWizardSwing1) ((Panel) panels[0]).getComponent()).unsetup((MavselSpigot)importer); \r\n ((MavselWizardSwing2) ((Panel) panels[1]).getComponent()).unsetup((MavselSpigot)importer);\r\n }catch(Exception e){\r\n e.printStackTrace();\r\n }\r\n \r\n panels = null;\r\n }", "@EventHandler(ignoreCancelled = true)\n\tpublic void onChunkUnload(ChunkUnloadEvent e) {\n\t\tChunk chunk = e.getChunk();\n\t\t\n\t\tCropControl.getDAO().unloadChunk(chunk);\n\t}", "public void destroy() {\r\n // applet is going away...\r\n }", "public void run() {\n\t\tnew UsageCheckAdapter(EventSourceID.CD_PLUGIN_UNINSTALL);\n\t\t\n\t\tInstallationView view = CodeGeneratorActivator.getDefault().getInstallationView();\n\t\tview.uninstallPlugin();\n\t}", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "@Override\n\tprotected void cleanupAddon(SkyAddon registeredAddon)\n\t{\n\t}", "@Override\n\tpublic void unloadResources() {\n\t\ttextureManager.unLoadTextures();\n\t}", "public void unregisterBundle(final Bundle bundle) throws Exception {\n\n\n\t\t// check if bundle has initial configuration\n\t\tfinal Iterator pathIter = PathEntry.getContentPaths(bundle);\n\t\tif (pathIter == null) {\n\t\t\tservices.debug(\"Bundle \"+bundle.getSymbolicName()+\" has no initial configuration\");\n\t\t\treturn;\n\t\t}\n\n\t\t// TODO : A boolean scr options if checked the configuration loaded by configurationloader is removed when the bundle contains remved. Now the configuuration stays untouched\n\t\t/*\n while (pathIter.hasNext()) {\n PathEntry path = (PathEntry)pathIter.next();\n Enumeration entries = bundle.getEntryPaths(path.getPath());\n\n if (entries != null) {\n while (entries.hasMoreElements()) {\n URL url = bundle.getEntry((String)entries.nextElement());\n if (canHandle(url)) {\n uninstall(url);\n }\n }\n }\n } */\n\n\t}", "void firePluginDestroyedEvent( String name, Plugin plugin )\n {\n for ( final PluginListener listener : pluginListeners )\n {\n try\n {\n listener.pluginDestroyed( name, plugin );\n }\n catch ( Exception ex )\n {\n Log.warn( \"An exception was thrown when one of the pluginManagerListeners was notified of a 'destroyed' event for plugin '{}'!\", name, ex );\n }\n }\n }", "public static void delInstance() {\n \tINSTANCE = null;\n \tcloseConnection();\n }", "public static void closeDriver() {\n driver.remove();\n }", "public void stop(BundleContext context) throws Exception {\n \t\tsuper.stop(context);\n \t\tplugin = null;\n \t\tresourceBundle = null;\n \t}", "public void resetPlugin(){\n\t\tpriorj.getTechniques().clear();\n\t}", "@Override\n\tpublic void onGuiClosed() {\n\t\tfield_154330_a.removed();\n\t\tsuper.onGuiClosed();\n\t}", "public void deallocate() {\n\tsetLoaded(false);\n\n if (!externalAudioPlayer) {\n if (audioPlayer != null) {\n audioPlayer.close();\n audioPlayer = null;\n }\n }\n \n\tif (!externalOutputQueue) {\n\t outputQueue.close();\n\t}\n }", "public boolean unloadPlayer(P player){\n if(playerMap.containsKey(player)){\n //Player is safe to unload\n playerMap.remove(player);\n return true;\n } else {\n //Player isn't safe to save\n System.out.println(\"Tried to unload player \" + player.getName() + \"'s data, but it's not available\");\n return false;\n }\n }", "public void unlinkToDeath() {\n this.mCallback.asBinder().unlinkToDeath(this, 0);\n }", "public void destroy() {\n World.getInstance().getTracked().remove(this); // unregister self from World\n }", "public RemoteLibrary removeLibrary(String path);", "public Object unplug(Object obj)\r\n\t{\n\t\tif (obj instanceof BrokerEngine)\r\n\t\t{\r\n\t\t\treturn doUnplug((BrokerEngine)obj);\r\n\t\t}\r\n\t\tif (obj instanceof Component)\r\n\t\t{\r\n\t\t\treturn doUnplug((Component)obj);\r\n\t\t}\r\n\t\t\r\n\t\t// deferred, synchronous handling of unplugging calls \r\n\t\tdefer(new UnplugEvent(obj));\r\n\t\treturn obj;\r\n\t}", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "public void hidePlayer ( Plugin plugin , Player player ) {\n\t\ttry {\n\t\t\tinvoke ( \"hidePlayer\" , new Class[] { Plugin.class , Player.class } , plugin , player );\n\t\t} catch ( NoSuchMethodException ex ) { // legacy\n\t\t\thidePlayer ( player );\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n @Override\n public void unexport() {\n String protocolKey = null;\n String ipPort = url.getServerPortStr();\n\n Exporter<T> exporter = (Exporter<T>) exporterMap.remove(protocolKey);\n\n if (exporter != null) {\n exporter.destroy();\n }\n ProviderMessageRouter requestRouter = ipPort2RequestRouter.get(ipPort);\n\n if (requestRouter != null) {\n requestRouter.removeProvider(provider);\n }\n }", "public void removePluginManagerListener( PluginManagerListener listener )\n {\n pluginManagerListeners.remove( listener );\n }", "protected abstract void onUnloadedCustom();", "public void unloadSoundSystem() {\n/* 205 */ if (this.loaded) {\n/* */ \n/* 207 */ stopAllSounds();\n/* 208 */ this.sndSystem.cleanup();\n/* 209 */ this.loaded = false;\n/* */ } \n/* */ }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.379 -0400\", hash_original_method = \"AA9956729CDDEA75EF3CDA9B48AC7516\", hash_generated_method = \"A1C0583673DED01556F86A0826E69463\")\n \n public static boolean unloadDriver(){\n \tdouble taintDouble = 0;\n \n \treturn ((taintDouble) == 1);\n }", "public static void shutdown()\n\t{\n\t\tinstance = null;\n\t}", "public static void deleteInstance()\r\n\t{\r\n\t\tlightManager = null;\r\n\t}", "public void stop(){\n\t\t\n\t\tif (extObj != null){\n\t\t\textObj.stopComponent();\n\t\t\textObj = null;\n\t\t}\n\t\t\n\t\textClassLoader = null;\n\t}", "void unregister(Path path);", "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 releaseTexture(URL url)\n {\n String file_path = url.toExternalForm();\n textureMap.remove(file_path);\n componentMap.remove(file_path);\n \n }", "public void unregister(Observer obj);", "public void unloadCube(Cube cube) {\n\t\tunloadCube(cube.getX(), cube.getY(), cube.getZ());\n\t}" ]
[ "0.78178805", "0.63376176", "0.6264037", "0.6252084", "0.61708367", "0.6146918", "0.61319774", "0.60265285", "0.5981251", "0.59537387", "0.59000057", "0.58392954", "0.57562095", "0.5703514", "0.56103164", "0.55355674", "0.5519259", "0.5514696", "0.5492614", "0.5437131", "0.542805", "0.5427069", "0.5418343", "0.5400099", "0.53827864", "0.53718597", "0.53647846", "0.5283766", "0.52649367", "0.5253314", "0.5217062", "0.51975155", "0.51894283", "0.5130148", "0.5122614", "0.5116222", "0.5112636", "0.5112273", "0.5110241", "0.51058495", "0.5099189", "0.50973195", "0.509402", "0.50784266", "0.50724185", "0.50702554", "0.506126", "0.50524503", "0.50444204", "0.5020042", "0.5002458", "0.49981812", "0.4979057", "0.49670267", "0.496382", "0.49407092", "0.49391884", "0.4937839", "0.48982868", "0.48900285", "0.48770157", "0.4873252", "0.48732173", "0.48730144", "0.48606834", "0.48592177", "0.4852699", "0.4851333", "0.4845663", "0.48368755", "0.4824224", "0.48203245", "0.48002616", "0.4795951", "0.47941792", "0.47883552", "0.47846463", "0.47760257", "0.47671717", "0.47657037", "0.4759037", "0.47565818", "0.47464252", "0.47349635", "0.4709101", "0.4707164", "0.47009414", "0.4672345", "0.46636692", "0.46475437", "0.4641525", "0.46401596", "0.4635405", "0.4628079", "0.4619471", "0.46178228", "0.46117884", "0.46020558", "0.45967287", "0.45915186" ]
0.60227466
8
Enable a given plugin.
private boolean enablePlugin(PluginCommandManager manager, CommandSender player, String pluginName) { PluginManager pluginManager = Bukkit.getServer().getPluginManager(); Plugin plugin = getPlugin(pluginName); if (plugin == null) { manager.sendMessage(player, "A plugin with the name '" + pluginName + "' could not be found."); return true; } pluginManager.enablePlugin(plugin); manager.sendMessage(player, "The plugin '" + pluginName + "' was successfully enabled."); m_plugin.cachePluginDetails(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void enable(CommonPlugin plugin);", "protected abstract void onPluginEnable();", "public void enable();", "public void onEnable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n\n // Setup permissions\n Plugin permissionsPlugin = this.getServer().getPluginManager().getPlugin(\"Permissions\");\n\n if (permissionsPlugin == null) {\n log.info(\"[\" + pdfFile.getName() + \"] Permission system not detected, defaulting to all users\");\n usePermissions = false;\n } else {\n log.info(\"[\" + pdfFile.getName() + \"] Permission system detected\");\n usePermissions = true;\n this.permissionHandler = ((Permissions) permissionsPlugin).getHandler();\n }\n\n // Register commands\n getCommand(\"tradewolf\").setExecutor(new TradeWolfCommand(this));\n\n // Output to console that plugin is enabled\n log.info(pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" enabled!\");\n }", "public void enable()\r\n\t{\r\n\t\tenabled = true;\r\n\t}", "protected abstract void enable();", "public void onEnable() {\n\r\n \tloadSettings();\r\n \tinitDbPool();\r\n \t\r\n // EXAMPLE: Custom code, here we just output some info so we can check all is well\r\n PluginDescriptionFile pdfFile = this.getDescription();\r\n\t\tlogger.info( pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" is enabled!\" );\r\n }", "public void enable ( ) {\r\n\t\tenabled = true;\r\n\t}", "public void onEnable() {\n\t\tmain = this;\n\t\tthis.config = new YMLFile(\"plugins\", \"BBSkyBPvpArena\", \"config\");\n\t\tthis.etatDuJeu = 0;\n\t\tthis.pari = new Pari();\n\t\tthis.play = new Play();\n\t\tgetServer().getPluginManager().registerEvents(new pluginListeners(), this);\n\t\tgetCommand(\"arene\").setExecutor(new CommandListener());\n\t\tSystem.out.println(\"plugin SkyBlock Pvp Arena ON!\");\n\t}", "public void enable() {\r\n m_enabled = true;\r\n }", "@Override\n\tpublic void enable(String id) throws Exception {\n\t\t\n\t}", "void enable();", "public void enablePlugins(@SuppressWarnings(\"unused\") boolean toggle) {\n\t\tthrow new InternalWikiException(\"No longer supported.\");\n\t}", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!this.Methods.hasMethod()) {\n if(this.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n ConnectFour.Method = this.Methods.getMethod();\n Log.info(\"Using: \" + ConnectFour.Method.getName() + \" - \" + ConnectFour.Method.getVersion());\n }\n }\n }", "@Override\r\n public boolean isPluginEnabled()\r\n {\n return true;\r\n }", "private void enablePlugIn(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'enablePlugIn'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.enablePlugIn(aConnector, aToken));\n\t}", "public void enable() {\n \t\t\tsetEnabled(true);\n \t\t}", "@Override\n public void onEnable(){\n \tgetLogger().info(\"onEnable has been invoked!\");\n \t// This will throw a NullPointerException if you don't have the command defined in your plugin.yml file!\n \tgetCommand(\"basic\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"WhatAmI\").setExecutor(new BetatestCommandExecutor(this));\n \tgetCommand(\"isonline\").setExecutor(new BetatestCommandExecutor(this));\n }", "void enableMod();", "@Override\n public void onPluginEnable(PluginEnableEvent event) {\n if (!EconServerListener.Methods.hasMethod()) {\n if(EconServerListener.Methods.setMethod(event.getPlugin())) {\n // You might want to make this a public variable inside your MAIN class public Method Method = null;\n // then reference it through this.plugin.Method so that way you can use it in the rest of your plugin ;)\n this.plugin.Method = EconServerListener.Methods.getMethod();\n System.out.println(\"[\" + plugin.name + \"] Payment method found (\" + this.plugin.Method.getName() + \" version: \" + this.plugin.Method.getVersion() + \")\");\n EconomyHandler.currencyEnabled = true;\n }\n }\n }", "@Override\n\tpublic void onEnable()\n\t{\n\t\tloggerPrefix = String.format(\"[InvReg %s]\", this.getDescription().getVersion());\n\t\tlogger().info(\"Enabled!\");\n\t\tsupportHandler = new SupportHandler(this);\n\t\tgetServer().getPluginManager().registerEvents(this.supportHandler, this);\n\n\t\t// Plugin support loading\n\t\tloadWorldGuardSupport();\n\t\tloadFactionSupport();\n\t\tloadGriefPrevention();\n\t\tloadForgeSupport();\n\t\tsupportHandler.load();\n\n\t\t// Config handling\n\t\tFile configFile = new File(References.CONFIG);\n\t\tYamlConfiguration config = null;\n\t\tif (configFile.exists())\n\t\t{\n\t\t\tconfig = YamlConfiguration.loadConfiguration(configFile);\n\t\t\tsupportHandler.loadConfig(config);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tconfig = new YamlConfiguration();\n\t\t\tsupportHandler.createConfig(config);\n\t\t\ttry\n\t\t\t{\n\t\t\t\tconfig.save(configFile);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void enable() {\n\t\tenabled = true;\n\t\t//System.out.println(\"Enabled Controller\");\n\t}", "@Override\n public void onEnable()\n {\n pluginInstance = this;\n\n // Registered Listeners\n getServer().getPluginManager().registerEvents(new IP_Checker(), this);\n\n // Registered Commands\n Objects.requireNonNull(getCommand(\"ips\")).setExecutor(new IP_Commands());\n\n // Loading config\n loadConfig();\n }", "@EventHandler(priority = EventPriority.MONITOR)\r\n public void onPluginEnable(PluginEnableEvent ev) {\n Plugin pla = ev.getPlugin().getServer().getPluginManager().getPlugin(\"Heroes\");\r\n if (pla == ev.getPlugin()) {\r\n pl.logger.info(\"[HealthBar] Found heroes - implementing health system.\");\r\n // Do nothing but you know, make the message sound like its actually\r\n // doing someting other than:\r\n new HealthBarHeroes(pla);\r\n HealthBar.useHeroes = true;\r\n }\r\n }", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "public void onEnable() {\n PluginDescriptionFile pdfFile = this.getDescription();\n System.out.println( pdfFile.getName() + \" version \" + pdfFile.getVersion() + \" is enabled!\" );\n }", "public void onEnable()\n\t{\n\t\t//Tells the user that the plugin is starting up.\n\t\tlog.info(\"Started up.\");\n\t}", "public void startPlugin() {\n\t\t// add a new ResourceChangeListener\n\t\tCheops.getInstance().addResourceChangeListener();\n\t}", "public void enable() {\n disabled = false;\n updateSign(true);\n circuit.enable();\n notifyChipEnabled();\n }", "public void enableAudioAdaptiveJittcomp(boolean enable);", "public void enablePlayer(String player) {\r\n\t\tObject[] o = piece.values().toArray();\r\n\t\tfor (int i=0; i<o.length; i++) {\r\n\t\t\tChessPiece p = (ChessPiece)o[i];\r\n\t\t\tif (p.chessPlayer.equals(player)) {\r\n\t\t\t\tp.addMouseListener(this);\r\n\t\t\t\tp.addMouseMotionListener(this);\r\n\t\t\t}\r\n\t\t}\r\n\t\tactivePlayer = player;\r\n\t}", "public void enable(int priority)\n {\n // Verify service is connected\n assertService();\n \n try {\n \tmLedService.enable(mBinder, mName, priority);\n } catch (RemoteException e) {\n Log.e(TAG, \"enable failed\");\n }\n }", "public void addPlugin(String key, T pluginClass);", "public void enable()\n\t{\n\t\tplayButton.setEnabled(true);\n\t\tpassButton.setEnabled(true);\n\t\tbigTwoPanel.setEnabled(true);\n\t}", "public void enable(){\r\n\t\tthis.activ = true;\r\n\t}", "@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "private boolean loadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n // load and enable the given plugin\r\n File pluginFolder = manager.getPlugin().getDataFolder().getParentFile();\r\n File pluginFile = new File(pluginFolder + File.separator + pluginName);\r\n \r\n boolean fileExists = false;\r\n for (File actualPluginFile : pluginFolder.listFiles()) {\r\n if (actualPluginFile.getAbsolutePath().equalsIgnoreCase(pluginFile.getAbsolutePath())) {\r\n fileExists = true;\r\n pluginFile = actualPluginFile;\r\n break;\r\n }\r\n }\r\n \r\n if (!fileExists) {\r\n // plugin does not exist\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found at location:\");\r\n manager.sendMessage(player, pluginFile.getAbsolutePath());\r\n return true;\r\n }\r\n // Try and load the plugin\r\n Plugin plugin = null;\r\n try {\r\n plugin = pluginManager.loadPlugin(pluginFile);\r\n } catch (InvalidPluginException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (InvalidDescriptionException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (UnknownDependencyException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n }\r\n if (plugin == null) {\r\n // The plugin failed to load correctly\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' failed to load correctly.\");\r\n return true;\r\n }\r\n // plugin loaded and enabled successfully\r\n pluginManager.enablePlugin(plugin);\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' has been succesfully loaded and enabled.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "public void onEnable(){\n instance = this;\n kitHandler = new KitHandler();\n arcadeHandler = ArcadeHandler.getInstance();\n state = GameState.LOBBY;\n\n PluginManager pm = Bukkit.getPluginManager();\n pm.registerEvents(new PlayerListener(), this);\n }", "public abstract void onEnable();", "public void onEnable() {\n }", "public void onEnable() {\n super.onEnable();\n File config = new File(getDataFolder(), \"config.yml\");\n if (!getDataFolder().exists()) {\n getDataFolder().mkdir();\n }\n if (!config.exists()) {\n saveResource(\"config.yml\", true);\n }\n\n configuration = new ConfigManager(config).build();\n log(\"Loaded DeluxeCounter by FusionCoding\");\n\n countManager = new CountManager();\n countManager.init();\n\n PluginManager pm = Bukkit.getPluginManager();\n pm.registerEvents(new AsyncPlayerPreLoginListener(), this);\n getCommand(\"cowtester\").setExecutor(new CowTesterCommand());\n\n }", "@Override\n\tpublic void onEnable() {\n\t\tcreateConfig();\n\t\tif(cfg == null) {\n\t \tcfg = getConfig();\n\t }\n\t\t// Listener registrieren\n\t\t//getServer().getPluginManager().registerEvents(new EnderchestListener(this), this));\n\t\t\n\t\t// Befehle registrieren\n\t\t// https://pastebin.com/6NsN6f6X sehr cooles Beispiel für TAB-Vervollständigung\n\t\tthis.getCommand(\"enderchest\").setExecutor(new CommandEnderchest(this));\n\t\t\n\t\t// abschließen\n \tgetLogger().info(pdf.getName() + \" version \" + pdf.getVersion() + \" by \" + pdf.getAuthors().get(0) + \" enabled! :)\");\n\t}", "public void enable() {\n\t\tm_enabled = true;\n\t\tm_controller.reset();\n\t}", "void enable(final Op op);", "public void onEnable() {\n\t\tpermissionsManager = new PermissionsManager();\n\n\t\t// build our notes table\n\t\tDatabaseTableInfo notesTable = new DatabaseTableInfo();\n\t\tnotesTable.name = \"notes\";\n\t\tnotesTable.fields = new String[]{\n\t\t\t\t\"date TIMESTAMP DEFAULT 0\",\n\t\t\t\t\"noteTaker TINYTEXT\",\n\t\t\t\t\"notee TINYTEXT\",\n\t\t\t\t\"note TEXT\"\n\t\t};\n\t\tDatabaseManager.addTableConstruct(notesTable);\n\t\t\n\t\t// initialize our database manager\n\t\tdatabaseManager = new DatabaseManager();\n\t\t\n\t\t// our note manager\n\t\tnoteManager = new NoteManager();\n\t\t\n\t\t// set our command executors\n\t\tcommandManager = new CommandManager();\n\t\tthis.getCommand(\"note\").setExecutor(commandManager);\n\t\tthis.getCommand(\"notes\").setExecutor(commandManager);\n\t\tthis.getCommand(\"editnote\").setExecutor(commandManager);\n\t\tthis.getCommand(\"notedate\").setExecutor(commandManager);\n\t\tthis.getCommand(\"notepad\").setExecutor(commandManager);\n\t\t\n\t\t// load our multiline chat handler\n\t\tmultilineChatEntry = new MultilineChatEntry();\n\t\t\n\t\t// load our configuration\n\t\t//this.saveDefaultConfig();\n\t\tconfigurationManager = new ConfigurationManager(this.getConfig());\n\t\tthis.saveConfig();\n\t\t\n\t\t// let them now!\n\t\tLogger.log(\"&aPlugin enabled!\");\n\t}", "public void enable() {\n canvas.setEnabled(true);\n addListeners();\n runViaListener();\n canvas.repaint();\n }", "@Override\n public void enable() {\n if (!sensorEnabled) {\n //Log.d(TAG, \"start app tracking\");\n sensorEnabled = true;\n new AppObserver().executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n }\n }", "void registerQuestionPlugin(QuestionPlugin plugin);", "protected void enableActionVolumeInc()\n {\n Action action = new Action(\"VolumeInc\");\n iDelegateVolumeInc = new DoVolumeInc();\n enableAction(action, iDelegateVolumeInc);\n }", "public void enableAdaptiveRateControl(boolean enabled);", "public void registerPlugin(final DajlabExtension plugin) {\r\n\r\n\t\tif (plugin != null) {\r\n\t\t\tif (plugin instanceof DajlabControllerExtensionInterface) {\r\n\t\t\t\tcontrollers.add((DajlabControllerExtensionInterface<DajlabModelInterface>) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof TabExtensionInterface) {\r\n\t\t\t\ttabPlugins.add((TabExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof MenuExtensionInterface) {\r\n\t\t\t\tmenuPlugins.add((MenuExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void onEnable() {\n spigotLogger = new SpigotLogger(\"Phantom\", ChatColor.WHITE, ChatColor.GRAY, LogLevel.DEBUG);\n\n // Load the configuration files.\n if (!setupConfigs(settingsConfig, messagesConfig)) {\n // If failed -> Stop enabling the plugin any further.\n spigotLogger.log(LogLevel.FATAL, \"Failed to load all config files.\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }\n\n // Set up all storage systems.\n if (!storageManager.setup()) {\n // If failed -> Stop enabling the plugin any further.\n spigotLogger.log(LogLevel.FATAL, \"Failed to set up storage systems.\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }\n\n // Load all (internal) modules.\n if (!moduleManager.loadAllModules()) {\n // If failed -> Stop enabling the plugin any further.\n spigotLogger.log(LogLevel.FATAL, \"Failed to load all internal modules.\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }\n\n // Now everything is loaded and we can start creating all prerequisites for the storage systems.\n // Of course we're running this async as they mostly involve IO operations.\n // Todo create server join states (OPEN, MAINTENANCE, BOOTING) for a minor update.\n Bukkit.getScheduler().runTaskAsynchronously(this, () -> {\n if (!storageManager.testSystems()) {\n // If failed -> Disable Phantom.\n }\n\n if (!storageManager.createPrerequisites()) {\n // If failed -> Disable Phantom.\n }\n });\n\n spigotLogger.log(LogLevel.SUCCESS, \"Enabled plugin.\");\n }", "private boolean enableModule(final boolean checkDependencies) {\n\t\tif (moduleActive.get()) {\n\t\t\tLOGGER.error(\"EnableModule: Module already started - cancel enable\");\n\t\t\treturn false;\n\t\t}\n\n\t\tif (checkDependencies && !checkDependenciesSatisfied()) {\n\t\t\tLOGGER.error(\"EnableModule: Dependencies not satisfied - cancel enable\");\n\t\t\treturn false;\n\t\t}\n\n\t\teventDispatcher.onEnable();\n\n\t\tfinal boolean enable;\n\t\tsynchronized (selfModule.INTERNAL_getInternalMutex()) {\n\t\t\tenable = selfModule.INTERNAL_internalEnable(this);\n\t\t}\n\t\tif (enable) {\n\t\t\tmoduleActive.set(true);\n\t\t\t// Update state and send broadcast\n\t\t\tpeerDiscoveryService.updateSelfState(ModuleLifecycleState.Active);\n\t\t\tpeerDiscoveryService.sendStateMulticast();\n\t\t\treturn true;\n\t\t} else {\n\t\t\tLOGGER.error(\"EnableModule: Failed to enable module - cancel enable\");\n\t\t\teventDispatcher.onDisable();\n\t\t}\n\n\t\treturn false;\n\t}", "@Override\n public void onEnable() {\n getConfig().options().copyDefaults(true);\n saveConfig();\n\n blockDamage = getConfig().getBoolean(\"damage.block\");\n playerDamage = getConfig().getBoolean(\"damage.player\");\n nukeCreeper = getConfig().getBoolean(\"natural.nuke_creeper\");\n\n loadListeners();\n loadCommands();\n\n getLogger().info(\"Successfully enabled.\");\n }", "void enableService(AGServiceDescription service, boolean enabled)\n throws IOException, SoapException;", "@Override\n public void register(PluginAPI api){\n if(api instanceof VPluginAPI){\n VPluginAPI vapi = (VPluginAPI) api;\n vapi.addComponent(ODECreator.class);\n vapi.addComponent(ODESolver.class);\n }\n }", "public void enable() {\n TalonHelper.configNeutralMode(Arrays.asList(armMotor, armMotorSlave), NeutralMode.Brake);\n }", "public boolean setEnabled(boolean enable);", "@Override\n\tpublic void onEnabled(Context context) {\n\t\tsuper.onEnabled(context);\n\t\tIntent intent = new Intent(context, UpdateWidgetService.class);\n\t\tcontext.startService(intent);\n\t}", "@Override\r\n public void onEnable() {\n getLogger().info((TextFormat.GREEN + \"Custom Messages plugin has been enabled.\"));\r\n getServer().getPluginManager().registerEvents(this, this); // Registering the plugin's events\r\n\r\n // Config\r\n saveDefaultConfig();\r\n config = getConfig();\r\n\r\n // Checking config's version - Hard coded\r\n if (config.getInt(\"Version\") != currentConfig){\r\n getLogger().warn(TextFormat.RED + \"Outdated config, please consider updating the plugin.\");\r\n getServer().getPluginManager().disablePlugin(this);\r\n }\r\n }", "public void enable() {\n\t\tm_controller.reset();\n\t\tm_runner.enable();\n\t}", "public void onProviderEnabled(String provider) {\r\n controller.onProviderEnabled(provider);\r\n }", "public void enableVideoAdaptiveJittcomp(boolean enable);", "public jpuppeteer.util.XFuture<?> enable() {\n return connection.send(\"Security.enable\", null);\n }", "public void setEnabled(boolean arg){\r\n\t\tenabled = arg;\r\n\t\tif(!arg){\r\n\t\t\tstop(0);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tsonido = new Sonido(path,true);\r\n\t\t}\r\n\t}", "protected void enableActionUnityGain()\n {\n Action action = new Action(\"UnityGain\");\n action.addOutputParameter(new ParameterRelated(\"Value\", iPropertyUnityGain));\n iDelegateUnityGain = new DoUnityGain();\n enableAction(action, iDelegateUnityGain);\n }", "@Override\r\n public void onEnable() {\r\n config = new SeattleSummerConfigHandler(this);\r\n\r\n PluginManager pm = this.getServer().getPluginManager();\r\n pm.registerEvent(Event.Type.WEATHER_CHANGE, weatherListener, Event.Priority.Normal, this);\r\n\r\n log.info(\"[SeattleSummer] plugin enabled.\");\r\n }", "public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t\t\n\t\t}", "@Override\n public void onEnable() {\n instance = this;\n\n getLogger().info(\"Hello, SpigotMC!\");\n\n getServer().getPluginManager().registerEvents(new Listeners(), this);\n }", "public void registerIntent(Plugin plugin) {\n\t\tPreconditions.checkState(!fired.get(), \"Event %s has already been fired\", this);\n\t\tPreconditions.checkState(!intents.contains(plugin), \"Plugin %s already registered intent for event %s\", plugin, this);\n\t\t\n\t\tintents.add(plugin);\n\t\tlatch.incrementAndGet();\n\t}", "public void enable() {\n for (int i = 0; i < listeners.size(); i++) {\n CacheManagerListener listener = (CacheManagerListener) \n listeners.get(i);\n listener.cacheManagerEnabled();\n }\n }", "@Override\n public boolean setPlugin(IAuthorizationPlugin plugin) {\n if (!getName().equals(plugin.getClass().getCanonicalName())\n || !getName().equals(plugin.getClass().getName())) {\n return false;\n }\n if (hasPlugin()) {\n unload();\n }\n try {\n /**\n * The exception should not happen here as we already have an\n * instance of IAuthorizationPlugin. But it is required by the\n * compiler.\n *\n * NOTE: If we were to add a throws clause here we would interrupt\n * the whole stack walk through and prevent the other authorization\n * entities to work properly.\n */\n this.plugin = plugin.getClass().getDeclaredConstructor().newInstance();\n return true;\n } catch (InstantiationException ex) {\n LOGGER.log(Level.INFO, \"Class could not be instantiated: \", ex);\n } catch (IllegalAccessException ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an exception: \", ex);\n } catch (Throwable ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an unknown error: \", ex);\n }\n return false;\n }", "public void onProviderEnabled(String provider) {\n\n\t\t\t\t}", "@SuppressWarnings( {\"MissingPermission\"})\n private void enableLocationPlugin() {\n if (PermissionsManager.areLocationPermissionsGranted(this)) {\n // Create an instance of LOST location engine\n initializeLocationEngine();\n\n locationPlugin = new LocationLayerPlugin(mapView, map, locationEngine);\n locationPlugin.setLocationLayerEnabled(LocationLayerMode.TRACKING);\n } else {\n permissionsManager = new PermissionsManager(this);\n permissionsManager.requestLocationPermissions(this);\n }\n }", "public void onEnabled() {\r\n }", "public abstract void Enabled();", "@Override\r\n\tpublic void enable() {\r\n\t\tthis.tablero.enable();\r\n\t\tthis.panel.enableWhileThinking();\r\n\t}", "@Override\n\tpublic boolean enablePartner(Partner partner) {\n\t\treturn false;\n\t}", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "public void setEnabled(boolean enabled) {\n mBundle.putBoolean(KEY_ENABLED, enabled);\n }", "public void onProviderEnabled(String provider) {\n\t\t\n\t}", "public void onEnabled(Context context) {\n\t}", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "@Override\n public void onEnable() {\n plugin = this;\n if(!getServer().getPluginManager().isPluginEnabled(\"BedWars1058\")){\n getLogger().severe(\"Unable to locate Bedwars1058.\");\n getLogger().severe(\"Plugin will be disabled!\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }else{\n bwAPI = Bukkit.getServicesManager().getRegistration(BedWars .class).getProvider();\n bedwarsEnabled = true;\n }\n if(!getServer().getPluginManager().isPluginEnabled(\"Citizens\")){\n getLogger().severe(\"Citizens is missing shopkeeper won't be used!\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }else{\n npcRegistry = CitizensAPI.getNPCRegistry();\n citizensEnabled = true;\n getLogger().info(\"Hooked with Citizens for shopkeeper\");\n }\n /*commandManager = new BukkitCommandManager(this);\n if(commandManager == null){\n getLogger().severe(\"Unable to intialize BukkitCommandManager.\");\n getLogger().severe(\"Plugin will be disabled!\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }*/\n fileUtils = new FileUtils();\n configuration = new Configuration();\n if(!configuration.createConfiguration(this)){\n getLogger().severe(\"Unable to create configuration file.\");\n getLogger().severe(\"Plugin will be disabled!\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }\n messages = new Messages();\n if(!messages.generateMessages()){\n getLogger().severe(\"Unable to create messages.yml file.\");\n getLogger().severe(\"Plugin will be disabled!\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }\n cacheManager = new CacheManager(this);\n if(!cacheManager.buildCache()){\n getLogger().severe(\"Unable to create cache file.\");\n getLogger().severe(\"Plugin will be disabled!\");\n getServer().getPluginManager().disablePlugin(this);\n return;\n }\n scheduler = new WorkloadScheduler();\n scheduler.intializeThread();\n storage = new Storage(this,getConfiguration().isUsingMysql());\n storage.build();\n storage.tryConnection();\n storage.createDatabase();\n randomUtility = new RandomUtility(this);\n cosmeticManager = new CosmeticManager();\n cosmeticManager.loadCosmetics();\n playerManager = new PlayerCosmeticsManager();\n registerListeners();\n cooldownTasks = new Cooldowns();\n cooldownTasks.runTaskTimerAsynchronously(this,100L,20L);\n registerCommands();\n getLogger().info(\"------------------------------------------------\");\n getLogger().info(\"Enabled Plugin\");\n getLogger().info(\"------------------------------------------------\");\n\n }", "protected static void register(Plugin plugin) {\n\t\tPlatform platform = PLATFORMS.get(plugin);\n\t\tif (platform != null)\n\t\t\treturn;\n\n\t\tplatform = new Platform(plugin);\n\t\tPLATFORMS.put(plugin, platform);\n\t}", "public void onEnable() {\n\t\tsaveDefaultConfig();\r\n\t\tcitiesLogger = getLogger();\r\n\r\n\t\tString mongoHost = getConfig().getString(\"mongo host\");\r\n\t\tint port = getConfig().getInt(\"mongo port\");\r\n\t\tString databaseName = getConfig().getString(\"mongo database\");\r\n\t\tString tableName = getConfig().getString(\"mongo table\");\r\n\t\t\r\n\t\ttry {\r\n\t\t\tmongo = new MongoClient(mongoHost,port);\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\tgetLogger().log(Level.SEVERE,\"Error connecting to database, bailing out\",e);\r\n\t\t\tthis.getServer().getPluginManager().disablePlugin(this);\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tdb = mongo.getDB(databaseName);\r\n\t\ttable = db.getCollection(tableName);\r\n\r\n\t\tdisabled = false;\r\n\t\tpop = new CityPopulator(this);\r\n\t\t//if no schematics are found, disabled will be set true.\r\n\t\t//this means we should probably not continue enabling.\r\n\t\t//disabled will only be false if this onEnable function\r\n\t\t//runs and succesfully runs CityPopulator\r\n\t\t//(without CityPopulator disabling the plugin)\r\n\t\tif (disabled) return;\r\n\r\n\t\tpop.setLoadDistance(getConfig().getInt(\"load distance in chunks\"));\r\n\t\tint chunkRate = getConfig().getInt(\"chunk generate rate in ticks\");\r\n\t\t\r\n\t\tgetServer().getScheduler().scheduleSyncRepeatingTask(this,pop,0,chunkRate);\r\n\t\tlog(\"MonoCities has been enabled\");\r\n\t}", "@SimpleFunction(description = \"Enable screen status sensor to run once\")\n @Override\n\tpublic void Enabled(boolean enabled) {\n\t\t// TODO Auto-generated method stub\n\t\tif (this.enabled != enabled)\n\t\t\tthis.enabled = enabled;\n\n\t\tif (enabled) {\n\t\t\tprobe.registerListener(listener);\n\t\t\tLog.i(TAG, \"register listener for run-once\");\n\t\t} else {\n\t\t\tprobe.unregisterListener(listener);\n\t\t\tLog.i(TAG, \"unregister run-once listener\");\n\t\t}\n\t\t\n\t}", "public void onProviderEnabled(String provider) {}", "public void onProviderEnabled(String provider) {\n\t\t\t}", "public void setEnable(Boolean enable) {\n this.enable = enable;\n }", "@Override\n\tpublic void onEnable() {\n\t}", "protected void enableActionSetMute()\n {\n Action action = new Action(\"SetMute\");\n action.addInputParameter(new ParameterRelated(\"Value\", iPropertyMute));\n iDelegateSetMute = new DoSetMute();\n enableAction(action, iDelegateSetMute);\n }", "default void onEnable() {}", "public native void loadPlugin(final String plugin);", "public void onProviderEnabled(String provider) {\n\t\t}", "public void onProviderEnabled(String provider) {\n\t\t}", "public void onProviderEnabled(String provider) {\n }" ]
[ "0.8180231", "0.6845532", "0.62351143", "0.6208571", "0.61587036", "0.60187805", "0.60181314", "0.59871256", "0.59733886", "0.5958752", "0.59316546", "0.59068966", "0.59018916", "0.5856401", "0.579539", "0.57884496", "0.5788369", "0.57648516", "0.57433075", "0.5724016", "0.5701087", "0.5660248", "0.56258494", "0.56237", "0.5613534", "0.56134325", "0.5610576", "0.5596693", "0.55886644", "0.552023", "0.5499087", "0.5473635", "0.54586655", "0.54492605", "0.54410684", "0.5433177", "0.54194987", "0.54167366", "0.5415931", "0.54154086", "0.53695387", "0.53402746", "0.53276056", "0.53027636", "0.5300567", "0.528973", "0.5279067", "0.52640575", "0.5250334", "0.5227272", "0.5223155", "0.5216277", "0.52089876", "0.51853853", "0.5123354", "0.51137567", "0.5112012", "0.5103614", "0.51008475", "0.5077667", "0.50760573", "0.5073888", "0.5061014", "0.50571865", "0.50525975", "0.50428617", "0.5035606", "0.5024516", "0.50226945", "0.50226945", "0.50226945", "0.5016002", "0.5011622", "0.4996741", "0.49965215", "0.49905497", "0.4985422", "0.49834698", "0.49809211", "0.49786142", "0.4977559", "0.49762034", "0.4972673", "0.49675614", "0.4963314", "0.49619627", "0.4961326", "0.4957112", "0.49540728", "0.49513203", "0.49453312", "0.49439737", "0.49434665", "0.49430203", "0.4939196", "0.49390393", "0.49337584", "0.49295375", "0.49295375", "0.49290267" ]
0.700807
1
Reload a given plugin.
private boolean reloadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) { PluginManager pluginManager = Bukkit.getServer().getPluginManager(); Plugin plugin = getPlugin(pluginName); if (plugin == null) { manager.sendMessage(player, "A plugin with the name '" + pluginName + "' could not be found."); return true; } pluginManager.disablePlugin(plugin); pluginManager.enablePlugin(plugin); manager.sendMessage(player, "The plugin '" + pluginName + "' was successfully reloaded."); m_plugin.cachePluginDetails(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void reload(CommandSender sender) {\n if (sender.hasPermission(\"survivalplay.reload\")) {\n // simulate restart\n survivalPlay.getLogger().info(\"simulate restart... || please ignore: unregistered PluginClassLoader\");\n // > disable Plugin\n Bukkit.getPluginManager().disablePlugin(survivalPlay);\n // > enable Plugin\n Bukkit.getPluginManager().enablePlugin(survivalPlay);\n sender.sendMessage(new ComponentBuilder(survivalPlay.getPrefix())\n .append(\"Plugin erfolgreich reloaded!\").color(ChatColor.GREEN)\n .create());\n } else {\n sender.sendMessage(Messages.NO_PERMISSONS.get());\n }\n }", "public void reloadMsPlugins(String path);", "public static void reload(PluginData data) throws LoadException {\n\t\tPluginBase pluginBase = data.getInstance();\n\t\tpluginBase.onUnload();\n\t\tEventManager.INSTANCE.invoke(new PluginUnloadEvent(data));\n\t\tEventManager.INSTANCE.destroyCache(pluginBase);\n\t\t// Reload\n\t\tPluginLoader.load(data.getJar());\n\t}", "public void reload();", "void reload();", "void reload();", "void reload();", "public void reload(String filename) throws IOException, RemoteException, Error;", "public void reload() {\n\n\t}", "public void reload(){\n\t\tplugin_configuration.load();\n\t\tflarf_configuration.load();\n\t\tmessages_configuration.load();\n\t\tstadiumlisting.load();\n\t}", "public void reload() {\n\t\treload = true;\n\t}", "public native void loadPlugin(final String plugin);", "public synchronized void reload() {\n if (this.reloader == null || !this.reloader.isAlive()) {\n this.reloader = new Reloader();\n this.reloader.start();\n }\n }", "@Override\n public synchronized void unload() {\n if (hasPlugin()) {\n try {\n plugin.unload();\n plugin = null;\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while unloading with exception:\", ex);\n }\n }\n }", "public void load(Maussentials plugin);", "public void reload() {\n reloading = true;\n }", "public void reload() {\n reload(true);\n reload(false);\n }", "public void reload() {\n try {\n this.configuration = ConfigurationProvider.getProvider(YamlConfiguration.class).load(this.getConfigurationFile());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void reload() {\n\t\tfileConfiguration = YamlConfiguration.loadConfiguration(configFile);\n\t\tfinal InputStream defaultConfigStream = plugin.getResource(fileName);\n\t\tif (defaultConfigStream != null) {\n\t\t\tfinal Reader defConfigStream = new InputStreamReader(defaultConfigStream, StandardCharsets.UTF_8);\n\t\t\tfinal YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);\n\t\t\tfileConfiguration.setDefaults(defConfig);\n\t\t}\n\t}", "public void reload() {\n reloadConfig();\n loadConfiguration();\n }", "private void reloadPlugIn(WebSocketConnector aConnector, Token aToken) {\n\t\tif (mService == null) {\n\t\t\tmService = new AdminPlugInService(NS_ADMIN, mNumberOfDays, getServer());\n\t\t}\n\n\t\tif (mLog.isDebugEnabled()) {\n\t\t\tmLog.debug(\"Processing 'reloadPlugIn'...\");\n\t\t}\n\n\t\tgetServer().sendToken(aConnector, mService.reloadPlugIn(aConnector, aToken));\n\t}", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "public void reloadFile() {\n if (configuration == null) {\n file = new File(plugin.getDataFolder(), fileName);\n }\n configuration = YamlConfiguration.loadConfiguration(file);\n\n // Look for defaults in the jar\n Reader defConfigStream = null;\n try {\n defConfigStream = new InputStreamReader(plugin.getResource(fileName), \"UTF8\");\n } catch (UnsupportedEncodingException ex) {}\n\n if (defConfigStream != null) {\n YamlConfiguration defConfig = YamlConfiguration.loadConfiguration(defConfigStream);\n configuration.setDefaults(defConfig);\n }\n }", "public void reload() {\n FileConfiguration config = plugin.getConfig();\n\n // Set up answers\n answers = new HashMap<>();\n if(config.contains(\"answers\")) {\n Map<String, Object> answersConfig = config.getConfigurationSection(\"answers\").getValues(true);\n for (Map.Entry<String, Object> entry : answersConfig.entrySet()) {\n if(entry.getValue() instanceof String) {\n answers.put(entry.getKey(), (String) entry.getValue());\n } else {\n logger.info(\"Invalid value for answer ID \" + entry.getKey());\n }\n }\n } else {\n logger.info(\"The config does not have answers! Not even for your existence!\");\n }\n\n // Set up questions\n questions = new HashMap<>();\n if(config.contains(\"questions\")) {\n Map<String, Object> questionsConfig = config.getConfigurationSection(\"questions\").getValues(true);\n for (Map.Entry<String, Object> entry : questionsConfig.entrySet()) {\n String answerID = \"\";\n if(entry.getValue() instanceof Integer) {\n answerID = entry.getValue().toString();\n } else if(entry.getValue() instanceof String) {\n answerID = (String) entry.getValue();\n } else if(answerID.isEmpty()) {\n logger.info(\"Invalid value for question regex \" + entry.getKey());\n continue;\n }\n\n if(questions.containsKey(entry.getKey()) && !answers.containsKey(answerID)) {\n logger.warning(\"Answer ID \" + entry.getValue() + \" not found\");\n } else {\n questions.put(entry.getKey(), answerID);\n }\n }\n\n logger.info(\"Registered \" + questions.size() + \" questions\");\n } else {\n logger.info(\"The config does not have questions!\");\n }\n\n commands = new HashMap<>();\n if(config.contains(\"listen-commands\")) {\n Map<String, Object> cmdsConfig = config.getConfigurationSection(\"listen-commands\").getValues(false);\n for (Map.Entry<String, Object> entry : cmdsConfig.entrySet()) {\n String cmdName = entry.getKey().toLowerCase();\n if(commands.containsKey(cmdName)) continue;\n\n CommandConfig newCmd = new CommandConfig(cmdName);\n ConfigurationSection ms = config.getConfigurationSection(\"listen-commands\").getConfigurationSection(cmdName);\n if(ms == null) continue;\n\n if(ms.contains(\"cancel\")) newCmd.cancel = ms.getBoolean(\"cancel\");\n if(ms.contains(\"tell-staff\")) newCmd.tellStaff = ms.getBoolean(\"tell-staff\");\n if(ms.contains(\"args-offset\")) newCmd.offset = ms.getInt(\"args-offset\");\n commands.put(cmdName, newCmd);\n logger.info(\"Listening to command '\" + cmdName + \"'\");\n }\n }\n }", "public static void reload()\r\n {\r\n reloadAsynch();\r\n waitWhileLoading();\r\n }", "@Override\n\tpublic void refresh(){\n\t\tgetLoaderManager().restartLoader(0, null, this);\n\t}", "public void reload() {\n synchronized (PROPS) {\n for (SettingsGroup group : PROPS) {\n group.reload();\n }\n }\n \n fireSettingsHandlerEvent(EventType.RELOAD, null);\n }", "public void reload() {\n reloading = true;\n notifyObserver();\n if (!testing) {\n if (timerAction.isExpired()) {\n timerAction = runOnce(() -> resetMagazine(), Duration.millis(reloadTimerMilliseconds));\n }\n } else {\n resetMagazine();\n }\n }", "public void reload(String key) {\n\t\tif (configurationOptionsByKey.containsKey(key)) {\n\t\t\tconfigurationOptionsByKey.get(key).reload(false);\n\t\t}\n\t}", "public void reload() {\n\n\t\tPlayerCache.reloadFile(); // load /save playercache.dat\n\n\t\t// next, update all playercaches\n\n\t\tupdatePlayerCaches();\n\n\n\t}", "private Plugin loadPlugin(String p) {\n Plugin plugin = this.getServer().getPluginManager().getPlugin(p);\n if (plugin != null && plugin.isEnabled()) {\n getLogger().info(\" Using \" + plugin.getDescription().getName() + \" (v\" + plugin.getDescription().getVersion() + \")\");\n return plugin;\n }\n return null;\n }", "public static void reload(WebDriver driver)\n\t{\n\t\tdriver.navigate().refresh();\n\t}", "public Game reloadGame(Game game) {\n return gameRepository.findByGameId(game.getGameId());\n }", "public interface PluginManager<P extends REIPlugin<?>> extends ParentReloadable<P> {\n @Environment(EnvType.CLIENT)\n static PluginManager<REIClientPlugin> getClientInstance() {\n return ClientInternals.getPluginManager();\n }\n \n static PluginManager<REIPlugin<?>> getInstance() {\n return Internals.getPluginManager();\n }\n \n static PluginManager<REIServerPlugin> getServerInstance() {\n return Internals.getServerPluginManager();\n }\n \n static List<PluginManager<? extends REIPlugin<?>>> getActiveInstances() {\n return EnvExecutor.getEnvSpecific(() -> () -> Arrays.asList(getInstance(), getClientInstance(), getServerInstance()),\n () -> () -> Arrays.asList(getInstance(), getServerInstance()));\n }\n \n static boolean areAnyReloading() {\n return CollectionUtils.anyMatch(getActiveInstances(), PluginManager::isReloading);\n }\n \n boolean isReloading();\n \n <T extends Reloadable<? super P>> T get(Class<T> reloadableClass);\n \n List<REIPluginProvider<P>> getPluginProviders();\n \n Iterable<P> getPlugins();\n \n @ApiStatus.Internal\n PluginView<P> view();\n}", "public void reloadWeapon() {\r\n Timer timer = new Timer();\r\n Colt.playReloadSound();\r\n timer.schedule(new FinishReload(), 2000);\r\n }", "@Override\n public String getName()\n {\n return \"reload\";\n }", "Plugin getPlugin();", "public String loadNewPlugin(final String extPointId);", "public void reInitialize() {\n lock.writeLock().lock();\n try {\n extensionPointPluginMap = HashBasedTable.create();\n final PluginRegistry registry = PluginRegistry.getInstance();\n List<IPlugin> extensionPointPlugins = registry.getPlugins(ExtensionPointPluginType.class);\n for (IPlugin extensionPointPlugin : extensionPointPlugins) {\n addExtensionPoint(extensionPointPlugin);\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "public interface Reload {\r\n public void reloadDataNow();\r\n}", "Plugin getPlugin( );", "public void reload() {\n\t\tif (file.lastModified() <= fileModified)\n\t\t\treturn;\n\t\n\t\treadFile();\n\t}", "public static void reloadAsynch()\r\n {\r\n instance.processor.submit(instance.reloader);\r\n }", "@SuppressWarnings(\"unchecked\")\r\n private boolean unloadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n Plugin plugin = getPlugin(pluginName);\r\n if (plugin == null) {\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found.\");\r\n return true;\r\n }\r\n SimplePluginManager simplePluginManager = (SimplePluginManager) pluginManager;\r\n try {\r\n Field pluginsField = simplePluginManager.getClass().getDeclaredField(\"plugins\");\r\n pluginsField.setAccessible(true);\r\n List<Plugin> plugins = (List<Plugin>) pluginsField.get(simplePluginManager);\r\n Field lookupNamesField = simplePluginManager.getClass().getDeclaredField(\"lookupNames\");\r\n lookupNamesField.setAccessible(true);\r\n Map<String, Plugin> lookupNames = (Map<String, Plugin>) lookupNamesField.get(simplePluginManager);\r\n Field commandMapField = simplePluginManager.getClass().getDeclaredField(\"commandMap\");\r\n commandMapField.setAccessible(true);\r\n SimpleCommandMap commandMap = (SimpleCommandMap) commandMapField.get(simplePluginManager);\r\n Field knownCommandsField;\r\n Map<String, Command> knownCommands = null;\r\n if (commandMap != null) {\r\n knownCommandsField = commandMap.getClass().getDeclaredField(\"knownCommands\");\r\n knownCommandsField.setAccessible(true);\r\n knownCommands = (Map<String, Command>) knownCommandsField.get(commandMap);\r\n }\r\n pluginManager.disablePlugin(plugin);\r\n if (plugins != null && plugins.contains(plugin)) {\r\n plugins.remove(plugin);\r\n }\r\n if (lookupNames != null && lookupNames.containsKey(pluginName)) {\r\n lookupNames.remove(pluginName);\r\n }\r\n if (commandMap != null && knownCommands != null) {\r\n for (Iterator<Map.Entry<String, Command>> it = knownCommands.entrySet().iterator(); it.hasNext();) {\r\n Map.Entry<String, Command> entry = it.next();\r\n if (entry.getValue() instanceof PluginCommand) {\r\n PluginCommand command = (PluginCommand) entry.getValue();\r\n if (command.getPlugin() == plugin) {\r\n command.unregister(commandMap);\r\n it.remove();\r\n }\r\n }\r\n }\r\n }\r\n } catch (NoSuchFieldException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (SecurityException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (IllegalArgumentException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n } catch (IllegalAccessException ex) {\r\n manager.sendMessage(player, \"Failed to query plugin manager, could not unload plugin.\");\r\n return true;\r\n }\r\n \r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' was successfully unloaded.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "public HouseReloadCommand() {\r\n setCommand(\"reload\");\r\n setPermission(\"house.admin.reload\");\r\n setLength(1);\r\n setBoth();\r\n setUsage(\"/house reload\");\r\n\r\n }", "public void onPluginChanged( Intent intent ) {\n\t\tlogger.info( \"onReceive\", intent );\n\t\tlogger.info( \"data\", intent.getData() );\n\t\tupdateInstalledPlugins( intent.getExtras() );\n\t}", "public void enable(CommonPlugin plugin);", "public Reload (LinkedList<Reloadable> reloadables, Management management, BetterSleeping plugin)\n {\n this.management = management;\n this.reloadables = reloadables;\n this.plugin = plugin;\n }", "public IPluginResource load( URI path ) throws LoaderException;", "public void onReloadClicked() {\n\n }", "public default void reloadAll() {\n\t\tBukkit.getConsoleSender().sendMessage(\"Reloading \" + getClass().getSimpleName() + \"'s Configs!\");\n\t\treload();\n\t\tBukkit.getConsoleSender().sendMessage(\"Finished \" + getClass().getSimpleName() + \"'s Configs!\");\n\t}", "void reloadFromDiskSafe();", "public void setPluginName(String pluginName);", "@Override\n public void reloadDraft(Draft draftToReload) {\n // FIRST ACTIVATE THE WORKSPACE IF NECESSARY\n if (!workspaceActivated) {\n activateWorkspace();\n }\n\n // WE DON'T WANT TO RESPOND TO EVENTS FORCED BY\n // OUR INITIALIZATION SELECTIONS\n draftController.enable(false);\n\n // LOAD ALL THE DRAFT INFO\n //playerList.setAll(FXCollections.observableArrayList(dataManager.getDraft().getPlayerPool()));\n\n // NOW WE DO WANT TO RESPOND WHEN THE USER INTERACTS WITH OUR CONTROLS\n draftController.enable(true);\n }", "@Override\n public boolean onCommand(@NotNull CommandSender sender, @NotNull Command command, @NotNull String label, @NotNull String[] args) {\n if (args[0].equalsIgnoreCase(\"reload\")) {\n reload(sender);\n return true;\n }\n sender.sendMessage(new ComponentBuilder(survivalPlay.getPrefix())\n .append(\"Survival-play.de Server System, Version: \").color(ChatColor.RED)\n .append(survivalPlay.getDescription().getVersion()).color(ChatColor.DARK_RED)\n .create());\n return false;\n }", "private boolean loadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n // load and enable the given plugin\r\n File pluginFolder = manager.getPlugin().getDataFolder().getParentFile();\r\n File pluginFile = new File(pluginFolder + File.separator + pluginName);\r\n \r\n boolean fileExists = false;\r\n for (File actualPluginFile : pluginFolder.listFiles()) {\r\n if (actualPluginFile.getAbsolutePath().equalsIgnoreCase(pluginFile.getAbsolutePath())) {\r\n fileExists = true;\r\n pluginFile = actualPluginFile;\r\n break;\r\n }\r\n }\r\n \r\n if (!fileExists) {\r\n // plugin does not exist\r\n manager.sendMessage(player, \"A plugin with the name '\" + pluginName + \"' could not be found at location:\");\r\n manager.sendMessage(player, pluginFile.getAbsolutePath());\r\n return true;\r\n }\r\n // Try and load the plugin\r\n Plugin plugin = null;\r\n try {\r\n plugin = pluginManager.loadPlugin(pluginFile);\r\n } catch (InvalidPluginException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (InvalidDescriptionException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n } catch (UnknownDependencyException e) {\r\n // Something went wrong so set the plugin to null\r\n plugin = null;\r\n }\r\n if (plugin == null) {\r\n // The plugin failed to load correctly\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' failed to load correctly.\");\r\n return true;\r\n }\r\n // plugin loaded and enabled successfully\r\n pluginManager.enablePlugin(plugin);\r\n manager.sendMessage(player, \"The plugin '\" + pluginName + \"' has been succesfully loaded and enabled.\");\r\n m_plugin.cachePluginDetails();\r\n return true;\r\n }", "@Override\n public boolean setPlugin(IAuthorizationPlugin plugin) {\n if (!getName().equals(plugin.getClass().getCanonicalName())\n || !getName().equals(plugin.getClass().getName())) {\n return false;\n }\n if (hasPlugin()) {\n unload();\n }\n try {\n /**\n * The exception should not happen here as we already have an\n * instance of IAuthorizationPlugin. But it is required by the\n * compiler.\n *\n * NOTE: If we were to add a throws clause here we would interrupt\n * the whole stack walk through and prevent the other authorization\n * entities to work properly.\n */\n this.plugin = plugin.getClass().getDeclaredConstructor().newInstance();\n return true;\n } catch (InstantiationException ex) {\n LOGGER.log(Level.INFO, \"Class could not be instantiated: \", ex);\n } catch (IllegalAccessException ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an exception: \", ex);\n } catch (Throwable ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an unknown error: \", ex);\n }\n return false;\n }", "public static void reload() {\n\t\tatlasHelpScreen.reload();\n\t}", "public static void reload() {\n\t\tif (getConfigManager() != null) {\n\t\t\tgetConfigManager().reload();\n\t\t}\n\t\tfor (Iterator i = getInstance().configGroups.keySet().iterator(); i.hasNext(); ) {\n\t\t\tString group = (String) i.next();\n\t\t\tif (getConfigManager(group) != null) {\n\t\t\t\tgetConfigManager(group).reload();\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public void reload() {\n\t\tpause();\n\t\tsetPosition(0);\n\t}", "<T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;", "@Override\r\n\tpublic void reload() {\n\t\tallcode.clear();\r\n\t\tinit();\r\n\t}", "public void reload() {\n if ( _build_file != null ) {\n openBuildFile( _build_file );\n }\n }", "public void reload(){\n populateList();\n }", "public ReloadCommand() {\n super(\"reload\");\n }", "private void reload() {\n if (running == false) {\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.entrySet().forEach((pair) -> {\n IPlayer player = pair.getValue();\n try {\n player.setPoints(0);\n player.resetStrategy();\n addNewAgent(player, player.getStrategy());\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n\n }\n\n }", "private void reloadProject()\n {\n unloadProject();\n\n if (!projectDirectory.exists()) {\n displayError(DIRECTORY_DOES_NOT_EXIST_MESSAGE, null);\n return;\n }\n\n if (!projectDirectory.isDirectory()) {\n displayError(NOT_A_DIRECTORY_MESSAGE, null);\n return;\n }\n\n if (!ProjectReader.isValidProjectDirectory(projectDirectory)) {\n displayError(PROJECT_NOT_FOUND_MESSAGE, null);\n return;\n }\n\n try {\n project = ProjectReader.read(projectDirectory);\n projectBuilder = new ProjectBuilder(project);\n projectSettingsPanel = new ProjectSettingsPanel(projectBuilder);\n projectSettingsContainer.add(projectSettingsPanel, BorderLayout.PAGE_START);\n projectSettingsContainer.add(new JPanel(), BorderLayout.CENTER);\n } catch (Throwable t) {\n displayError(UNABLE_TO_LOAD_PROJECT_MESSAGE, t);\n return;\n }\n\n preferences.put(PREF_PROJECT_DIRECTORY, projectDirectory.toString());\n try { preferences.sync(); } catch (BackingStoreException e) { e.printStackTrace(); }\n\n generateButton.setEnabled(true);\n\n pack();\n }", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "public void refresh();", "void onReloadSafe(ResourceManager resourceManager);", "public void setPluginVersion(String pluginVersion);", "protected void reload() {\n runnables.values().stream()\n .filter(Objects::nonNull) //idk how it can be null, but better be prepared\n .map(BungeeF3Runnable::getTask)\n .filter(Objects::nonNull) //fix for NullPointer\n .forEach(ScheduledTask::cancel);\n\n runnables.clear();\n players.clear();\n hookedServers.clear();\n\n checkServers();\n\n try {\n parser = new BungeeConfigParser(this);\n } catch (IOException ex) {\n logger.error(\"Failed to load config file!\", ex);\n return;\n }\n if (!parser.isOnlyAPI()) {\n startRunnables();\n }\n\n if (isHooked(\"LP\")) {\n lpHook = new LuckPermsHook(parser.getF3GroupList());\n }\n }", "public Class loadClass( Plugin plugin, String className ) throws ClassNotFoundException {\n final PluginClassLoader loader;\n synchronized ( this ) {\n loader = classloaders.get( plugin );\n }\n return loader.loadClass( className );\n }", "public void deletePlugin( final String pluginName )\n {\n Log.debug( \"Deleting plugin '{}'...\", pluginName );\n\n try ( final DirectoryStream<Path> ds = Files.newDirectoryStream( getPluginsDirectory(), new DirectoryStream.Filter<Path>()\n {\n @Override\n public boolean accept( final Path path ) {\n if ( Files.isDirectory( path ) )\n {\n return false;\n }\n\n final String fileName = path.getFileName().toString().toLowerCase();\n return ( fileName.equals( pluginName + \".jar\" ) || fileName.equals( pluginName + \".war\" ) );\n }\n } ) )\n {\n for ( final Path pluginFile : ds )\n {\n try\n {\n Files.delete( pluginFile );\n pluginMonitor.runNow( true ); // trigger unload by running the monitor (which is more thread-safe than calling unloadPlugin directly).\n }\n catch ( IOException ex )\n {\n Log.warn( \"Unable to delete plugin '{}', as the plugin jar/war file cannot be deleted. File path: {}\", pluginName, pluginFile, ex );\n }\n }\n }\n catch ( Throwable e )\n {\n Log.error( \"An unexpected exception occurred while deleting plugin '{}'.\", pluginName, e );\n }\n }", "public void restartSermonLoader(){\n getLoaderManager().restartLoader(QuerySermonProperties.id,null,this);\n }", "public synchronized JaspiraEventHandlerCode refresh(JaspiraEvent je)\r\n\t\t{\r\n\t\t\t// First, save the current object\r\n\t\t\tif (propertyBrowser != null)\r\n\t\t\t{\r\n\t\t\t\tif (!propertyBrowser.saveObject())\r\n\t\t\t\t{\r\n\t\t\t\t\t// There was an error saving the current object, abort\r\n\t\t\t\t\t// Do not consume the event, this should go to other property browsers, too\r\n\t\t\t\t\treturn EVENT_HANDLED;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t// This will transfer the plugin state to the oe plugin and will cause the property browser\r\n\t\t\t// to display the object if it is active\r\n\t\t\tsetPluginState(currentState);\r\n\r\n\t\t\t// Do not consume the event, this should go to other property browsers, too\r\n\t\t\treturn EVENT_HANDLED;\r\n\t\t}", "public void startPlugin() {\n\t\t// add a new ResourceChangeListener\n\t\tCheops.getInstance().addResourceChangeListener();\n\t}", "protected void setPluginCache(OwPluginStatusCachingUtility newCache)\r\n {\r\n this.pluginCache = newCache;\r\n }", "ReloadActionController createReloadActionController();", "public void reload() {\n mHandle = new Texture(mBitmap, mMinMode, mMagMode, mWrapS, mWrapT).getHandle();\n }", "private void reloadBook() {\n\t\tnew SwingWorker<Void, Void>() {\n\t\t\t@Override\n\t\t\tprotected Void doInBackground() {\n\t\t\t\tbook.reload();\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void done() {\n\t\t\t\tstateChangeRequest(Key.BOOK, null);\n\t\t\t}\n\t\t}.execute();\n\t}", "public void reload(ODatabaseDocumentInternal database) {\n lock.writeLock().lock();\n try {\n identity = new ORecordId(database.getStorageInfo().getConfiguration().getSchemaRecordId());\n ODocument document = new ODocument(identity);\n //noinspection NonAtomicOperationOnVolatileField\n document = database.reload(document, null, true, true);\n fromStream(document);\n forceSnapshot(database);\n } finally {\n lock.writeLock().unlock();\n }\n }", "@Test\n void reload() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setTurn(true);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w = new Weapon(\"machine gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n w.setLoaded(false);\n p.getPh().getWeaponDeck().addWeapon(w);\n p.reload(w);\n assertTrue(p.getPh().getWeaponDeck().getWeapon(w.getName()).getLoaded());\n }", "<T> void refresh(T persistentObject);", "static public void callPluginDestroy(Object plugin)\n {\n callSpecialFunc(plugin, \"destroy\");\n }", "public void refresh() {\n }", "public void reload() {\n SharedPreferences prefs = getActivity().getSharedPreferences(\"com.ryansteckler.nlpunbounce_preferences\", Context.MODE_WORLD_READABLE);\n Set<String> sampleSet = new HashSet<String>();\n Set<String> set = prefs.getStringSet(\"wakelock_regex_set\", sampleSet);\n ArrayList<String> list = new ArrayList<String>(set);\n\n // Create The Adapter with passing ArrayList as 3rd parameter\n mAdapter = new RegexAdapter(getActivity(), list, \"wakelock\");\n\n // Sets The Adapter\n setListAdapter(mAdapter);\n }", "public void loadPluginFileBean(){\n\t\tthis.broadcastManager.registerBroadcastReceiver(new String[]{ACTION_PLUGIN_FILE_FINISHED}, this);\n\t\tfor(PluginFileBean pluginFileBean:this.pluginFileBeanList){\n\t\t\tif(pluginFileBean!=null){\n\t\t\t\tpluginFileBean.setBroadcastManager(this.broadcastManager);\n\t\t\t\tpluginFileBean.setJarClassLoader(this.jarClassLoader);\n\t\t\t\tif(pluginFileBean.getPluginDownloader()==null){\n\t\t\t\t\tpluginFileBean.setPluginDownloader(defaultPluginDownloader);\n\t\t\t\t}\n\t\t\t\tpluginFileBean.loadPluginBean();\n\t\t\t}\n\t\t}\n\t}", "protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;", "private static native void reloadHostPage()\n /*-{\n $wnd.location.reload();\n }-*/;", "void refresh();", "void refresh();", "void refresh();", "void refresh();" ]
[ "0.6735729", "0.6486844", "0.63444805", "0.6226328", "0.605925", "0.605925", "0.605925", "0.59714484", "0.58425945", "0.57313913", "0.57121414", "0.56881475", "0.56798965", "0.5622578", "0.5576045", "0.55666965", "0.5471954", "0.5470068", "0.5422811", "0.5393931", "0.5324796", "0.5256527", "0.5242826", "0.5224731", "0.51945364", "0.5194482", "0.51923805", "0.5086621", "0.5049209", "0.5034053", "0.49719906", "0.4952398", "0.49495307", "0.49495122", "0.49303013", "0.48961976", "0.48862547", "0.48688254", "0.48579714", "0.4831458", "0.4820374", "0.4811297", "0.47967914", "0.47883946", "0.4785949", "0.47528875", "0.47294813", "0.47243467", "0.47119883", "0.46821442", "0.46651495", "0.4645628", "0.4638924", "0.46336147", "0.4581577", "0.45792812", "0.45651603", "0.45537814", "0.45414415", "0.45398733", "0.45391986", "0.45335737", "0.4483721", "0.44823465", "0.4477619", "0.44736", "0.44621167", "0.44579896", "0.44565314", "0.44565314", "0.44565314", "0.44565314", "0.44565314", "0.44565314", "0.44565314", "0.44422492", "0.44242692", "0.4420869", "0.44205415", "0.4416775", "0.44147643", "0.4410826", "0.4403794", "0.4389943", "0.43838575", "0.43787256", "0.43753064", "0.43669167", "0.43625933", "0.43532848", "0.4344108", "0.43403134", "0.432635", "0.4326234", "0.43241554", "0.43099532", "0.43027848", "0.43027848", "0.43027848", "0.43027848" ]
0.68054783
0
Load a given plugin.
private boolean loadPlugin(PluginCommandManager manager, CommandSender player, String pluginName) { PluginManager pluginManager = Bukkit.getServer().getPluginManager(); // load and enable the given plugin File pluginFolder = manager.getPlugin().getDataFolder().getParentFile(); File pluginFile = new File(pluginFolder + File.separator + pluginName); boolean fileExists = false; for (File actualPluginFile : pluginFolder.listFiles()) { if (actualPluginFile.getAbsolutePath().equalsIgnoreCase(pluginFile.getAbsolutePath())) { fileExists = true; pluginFile = actualPluginFile; break; } } if (!fileExists) { // plugin does not exist manager.sendMessage(player, "A plugin with the name '" + pluginName + "' could not be found at location:"); manager.sendMessage(player, pluginFile.getAbsolutePath()); return true; } // Try and load the plugin Plugin plugin = null; try { plugin = pluginManager.loadPlugin(pluginFile); } catch (InvalidPluginException e) { // Something went wrong so set the plugin to null plugin = null; } catch (InvalidDescriptionException e) { // Something went wrong so set the plugin to null plugin = null; } catch (UnknownDependencyException e) { // Something went wrong so set the plugin to null plugin = null; } if (plugin == null) { // The plugin failed to load correctly manager.sendMessage(player, "The plugin '" + pluginName + "' failed to load correctly."); return true; } // plugin loaded and enabled successfully pluginManager.enablePlugin(plugin); manager.sendMessage(player, "The plugin '" + pluginName + "' has been succesfully loaded and enabled."); m_plugin.cachePluginDetails(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native void loadPlugin(final String plugin);", "public void load(Maussentials plugin);", "public IPluginResource load( URI path ) throws LoaderException;", "private Plugin loadPlugin(String p) {\n Plugin plugin = this.getServer().getPluginManager().getPlugin(p);\n if (plugin != null && plugin.isEnabled()) {\n getLogger().info(\" Using \" + plugin.getDescription().getName() + \" (v\" + plugin.getDescription().getVersion() + \")\");\n return plugin;\n }\n return null;\n }", "<T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;", "private void loadPlugin(File file) {\n JarFile jarFile;\n\n try {\n jarFile = new JarFile(file);\n } catch (IOException e) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_JARFILE_CREATE, e);\n return;\n }\n\n JarEntry pJson = jarFile.getJarEntry(\"plugin.json\");\n\n if (pJson == null)\n return;\n\n try {\n BufferedReader reader = new BufferedReader(new InputStreamReader(jarFile.getInputStream(pJson)));\n PluginInfo info = new GsonBuilder().setPrettyPrinting().create().fromJson(reader, PluginInfo.class);\n\n if (info != null) {\n ClassLoader classLoader = new URLClassLoader(new URL[] { file.toURI().toURL() }, this.getClass().getClassLoader());\n\n Plugin plugin;\n\n try {\n plugin = (Plugin) classLoader.loadClass(info.getMain()).newInstance();\n plugin.setInfo(info);\n plugins.add(plugin);\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException e) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_INSTANTIATION, e);\n return;\n }\n\n Enumeration<JarEntry> entries = jarFile.entries();\n while (entries.hasMoreElements()) {\n JarEntry e = entries.nextElement();\n String name = e.getName();\n\n if (name.endsWith(\".class\")) {\n try {\n Class clazz = Class.forName(name.substring(0, name.length() - 6).replace('/', '.'), true, classLoader);\n\n if (clazz != null && clazz.getSuperclass().equals(Module.class)) {\n try {\n plugin.loadModule((Module) clazz.newInstance());\n } catch (InstantiationException | IllegalAccessException exception) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_CREATE_MODULE, exception);\n }\n }\n } catch (ClassNotFoundException exception) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_LOAD_CLASS, name);\n }\n }\n }\n }\n } catch (IOException e) {\n Logger.instance.logf(Level.WARNING, Messages.PLUGIN_CANT_CREATE_INPUTSTREAM, file.getAbsolutePath());\n }\n }", "public String loadNewPlugin(final String extPointId);", "Plugin getPlugin();", "Plugin getPlugin( );", "public interface PluginProvider {\n\n /**\n * Returns an instance of the specified plugin by loading the plugin class through the specified class loader.\n *\n * @param type plugin type class\n * @param className plugin class name\n * @param classLoader class loader to be used to load the plugin class\n * @param <T> plugin type\n * @return instance of the plugin\n * @throws PluginLoadingException if en error occurred when loading or instantiation of the plugin\n */\n <T> T getPluginInstance(Class<T> type, String className, ClassLoader classLoader) throws PluginLoadingException;\n}", "public Class loadClass( Plugin plugin, String className ) throws ClassNotFoundException {\n final PluginClassLoader loader;\n synchronized ( this ) {\n loader = classloaders.get( plugin );\n }\n return loader.loadClass( className );\n }", "public void setPlugin(Plugin plugin)\r\n\t{\r\n\t\tthis.plugin = plugin;\r\n\t}", "public void setPlugin(APlugin plugin) {\n this.plugin = plugin;\n }", "private PluginLoader<Object> createPluginLoader() {\n return PluginLoader.forType(Object.class)\n .ifVersionGreaterOrEqualTo(JAVA_9).load(pluginTypeBetweenJava9AndJava13.getName())\n .ifVersionGreaterOrEqualTo(JAVA_14).load(pluginTypeAfterJava13.getName())\n .fallback(newInstance(pluginTypeBeforeJava9));\n }", "public void loadPluginsStartup();", "public synchronized PluginClassLoader getPluginClassloader( Plugin plugin )\n {\n return classloaders.get( plugin );\n }", "void loadMyDogPluginParams(MyDogPluginsParams myDogPluginsParams);", "public static boolean loadPlugin(Class pluginClass, CytoscapeObj cytoscapeObj,\n CyWindow cyWindow) {\n if (pluginClass == null) {return false;}\n\n\n //System.out.println( \"AbstractPlugin loading: \"+pluginClass );\n\n //look for constructor with CyWindow argument\n if (cyWindow != null) {\n Constructor ctor = null;\n try {\n Class[] argClasses = new Class[1];\n argClasses[0] = CyWindow.class;//cyWindow.getClass();\n ctor = pluginClass.getConstructor(argClasses);\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n\n\n// (SecurityException se) {\n// System.err.println(\"In AbstractPlugin.loadPlugin:\");\n// System.err.println(se.getMessage());\n// se.printStackTrace();\n// return false;\n// } catch (NoSuchMethodException nsme) {\n// //ignore, there are other constructors to look for\n// }\n\n \n\n if (ctor != null) {\n try {\n Object[] args = new Object[1];\n args[0] = cyWindow;\n return ctor.newInstance(args) != null;\n } catch (Exception e) {\n System.err.println(\"In AbstractPlugin.loadPlugin:\");\n System.err.println(\"Exception while constructing plugin instance:\");\n System.err.println(e.getMessage());\n e.printStackTrace();\n return false;\n }\n }\n }\n return false;\n }", "public void onLoad() {\n // store jar path for plugin loader\n thisJar = this.getFile();\n }", "public interface Loader {\n void loadLibrary(String str) throws Exception;\n\n void loadLibraryFromPath(String str) throws Exception;\n }", "public void load() throws ClassNotFoundException, IOException;", "@Override\n public synchronized void load(Map<String, Object> parameters) {\n // fill properly the \"forGroups\" and \"forProjects\" fields\n processTargetGroupsAndProjects();\n\n if (!hasPlugin()) {\n LOGGER.log(Level.SEVERE, \"Configured plugin \\\"{0}\\\" has not been loaded into JVM (missing file?). \"\n + \"This can cause the authorization to fail always.\",\n getName());\n setFailed();\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n return;\n }\n\n setCurrentSetup(new TreeMap<>());\n getCurrentSetup().putAll(parameters);\n getCurrentSetup().putAll(getSetup());\n\n try {\n plugin.load(getCurrentSetup());\n setWorking();\n } catch (Throwable ex) {\n LOGGER.log(Level.SEVERE, \"Plugin \\\"\" + getName() + \"\\\" has failed while loading with exception:\", ex);\n setFailed();\n }\n\n LOGGER.log(Level.INFO, \"[{0}] Plugin \\\"{1}\\\" {2} and is {3}.\",\n new Object[]{\n getFlag().toString().toUpperCase(),\n getName(),\n hasPlugin() ? \"found\" : \"not found\",\n isWorking() ? \"working\" : \"failed\"});\n }", "public interface Loader {\n\t\tpublic void load();\n\t}", "@Override\n public boolean setPlugin(IAuthorizationPlugin plugin) {\n if (!getName().equals(plugin.getClass().getCanonicalName())\n || !getName().equals(plugin.getClass().getName())) {\n return false;\n }\n if (hasPlugin()) {\n unload();\n }\n try {\n /**\n * The exception should not happen here as we already have an\n * instance of IAuthorizationPlugin. But it is required by the\n * compiler.\n *\n * NOTE: If we were to add a throws clause here we would interrupt\n * the whole stack walk through and prevent the other authorization\n * entities to work properly.\n */\n this.plugin = plugin.getClass().getDeclaredConstructor().newInstance();\n return true;\n } catch (InstantiationException ex) {\n LOGGER.log(Level.INFO, \"Class could not be instantiated: \", ex);\n } catch (IllegalAccessException ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an exception: \", ex);\n } catch (Throwable ex) {\n LOGGER.log(Level.INFO, \"Class loader threw an unknown error: \", ex);\n }\n return false;\n }", "public interface Plugin {\n void doUsefil();\n}", "public void addPlugin(String key, T pluginClass);", "public PluginInfo load(String apkfile, String packageName) {\n\t\tPluginInfo pluginInfo = new PluginInfo();\n\n\t\ttry {\n\t\t\tboolean ok = pluginInfo.load(context, storagePath, apkfile, packageName);\n\t\t\t\n\t\t\tlog.d(\"load plugin: \" + apkfile + \", name:\" + packageName + \", result:\" + ok);\n\t\t\t\n\t\t\tif (!ok)\n\t\t\t\treturn null;\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tsynchronized(this) {\n\t\t\t//Will object information added to the plugin's container\n\t\t\tpluginInfoMap.put(pluginInfo.getPackageName(), pluginInfo);\n\t\t}\n\t\treturn pluginInfo;\n\t}", "public void enable(CommonPlugin plugin);", "public Object GetPlugin()\r\n\t{\r\n\t\tif (_isSingleton)\r\n\t\t{\r\n\t\t\tif (_singletonPlugin == null)\r\n\t\t\t{\r\n\t\t\t\ttry {\r\n\t\t\t\t\t_singletonPlugin = ClassFactory.CreateObject(_pluginType);\r\n\t\t\t\t} catch (Exception e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n if (_configuration != null && !_configuration.equals(\"\"))\r\n {\r\n \tPathUtilities.PushFilename(_filename);\r\n \ttry\r\n \t{\r\n XmlFramework.DeserializeXml(_configuration, _singletonPlugin);\r\n \t}\r\n catch(Exception e)\r\n {\r\n _singletonPlugin = null;\r\n }\r\n \tfinally\r\n \t{\r\n \t\tPathUtilities.PopFilename(_filename);\r\n \t}\r\n }\r\n\t\t\t}\r\n\t\t\treturn _singletonPlugin;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tObject plugin = null;\r\n\t\t\ttry {\r\n\t\t\t\tplugin = ClassFactory.CreateObject(_pluginType);\r\n\t\t\t} catch (Exception e1) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te1.printStackTrace();\r\n\t\t\t}\r\n if (_configuration != null && !_configuration.equals(\"\"))\r\n {\r\n \tPathUtilities.PushFilename(_filename);\r\n try\r\n {\r\n XmlFramework.DeserializeXml(_configuration, plugin);\r\n }\r\n catch(Exception e)\r\n {\r\n plugin = null;\r\n }\r\n \tfinally\r\n \t{\r\n \tPathUtilities.PopFilename(_filename);\r\n \t}\r\n }\r\n return plugin;\r\n\t\t}\r\n\t}", "ClassLoader loadContribution(Contribution contribution)\n throws ContributionLoadException, MatchingExportNotFoundException;", "public static void load() {\n }", "public void loadAllPlugins(final String extPointId);", "public interface Plugin<T> {\n\t/**\n\t * Method returns the hashmap with loaded plugins. </p> Hashmap is inside\n\t * PluginManager class.\n\t * \n\t * @return hashmap with loaded plugins\n\t */\n\tpublic HashMap<String, T> getStorage();\n\n\t/**\n\t * Method adds the plugin specified in pluginClass param into hashmap with\n\t * param key. </p> Hashmap is inside PluginManager class.\n\t * \n\t * @param key\n\t * to hashmap with added plugin\n\t * @param pluginClass\n\t * of type class to save into hashmap\n\t */\n\tpublic void addPlugin(String key, T pluginClass);\n\n\t/**\n\t * Name of the plugin.\n\t * \n\t * @return name of plugin\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Tests if the plugin has any error\n\t * \n\t * @return true if there is any error.\n\t */\n\tpublic boolean hasError();\n}", "void registerQuestionPlugin(QuestionPlugin plugin);", "private boolean pluginLoading(String pluginName) {\n return pm.getPlugin(pluginName) != null;\n }", "public void load(String url);", "public void loadingLibrary(String libraryFilename);", "public Extension loadExtension(String name, String path) {\n if (presetExtensions.containsKey(name)) {\n Extension extension = null;\n try {\n Class clazz = presetExtensions.get(name);\n Constructor<Extension> constructor = clazz.getConstructor(); \n extension = (Extension)constructor.newInstance();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return extension;\n }\n try {\n File file = new File(path);\n URL[] urls = { file.toURI().toURL() };\n URLClassLoader urlClassLoader = new URLClassLoader(urls);\n JarFile jar = new JarFile(file);\n Extension extension = null;\n for (Enumeration<JarEntry> entries = jar.entries(); entries.hasMoreElements();) {\n JarEntry entry = entries.nextElement();\n String entryName = entry.getName();\n if (!entryName.endsWith(\".class\")) continue;\n String className = entryName.replace(\"/\", \".\").substring(0, entryName.length() - 6);\n try {\n Class clazz = urlClassLoader.loadClass(className);\n if (!Extension.class.isAssignableFrom(clazz)) continue;\n Constructor<Extension> constructor = clazz.getConstructor(String.class, String.class);\n extension = (Extension)constructor.newInstance(name, path);\n } catch (ClassNotFoundException e1) {\n // e1.printStackTrace();\n }\n }\n jar.close();\n urlClassLoader.close();\n return extension;\n } catch (Exception e) {\n e.printStackTrace();\n return null;\n }\n }", "public void load();", "public void load();", "public void loadPlugins()\n throws Exception\n {\n SecurityClassLoader securityClassLoader = new SecurityClassLoader(Plugin.class.getClassLoader(),\n ImmutableList.of(\"ideal.sylph.\", \"com.github.harbby.gadtry.\")); //raed only sylph-api deps\n this.loader = ModuleLoader.<Plugin>newScanner()\n .setPlugin(Plugin.class)\n .setScanDir(pluginDir)\n .setLoader(OperatorManager::serviceLoad)\n .setClassLoaderFactory(urls -> new VolatileClassLoader(urls, securityClassLoader)\n {\n @Override\n protected void finalize()\n throws Throwable\n {\n super.finalize();\n logger.warn(\"Jvm gc free ClassLoader: {}\", Arrays.toString(urls));\n }\n })\n .setLoadHandler(module -> {\n logger.info(\"loading module {} find {} Operator\", module.getName(), module.getPlugins().size());\n ModuleInfo moduleInfo = new ModuleInfo(module, new ArrayList<>());\n analyzeModulePlugins(moduleInfo);\n ModuleInfo old = userExtPlugins.put(module.getName(), moduleInfo);\n if (old != null) {\n Try.of(old::close).onFailure(e -> logger.warn(\"free old module failed\", e)).doTry();\n }\n }).load();\n }", "private void loadPlugins(){\r\n\t\tKomorebiCoreConfig config = new KomorebiCoreConfig();\r\n\t\t\r\n\t\tif(config.getRootNode().getChildrenCount(\"plugins\") < 1){\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tList<ConfigurationNode> pluginNodes = config.getRootNode().getChildren(\"plugins\").get(0).getChildren(\"plugin\");\r\n\t\tfor(int pos=0; pos<pluginNodes.size(); ++pos){\r\n\t\t\tString name = config.getString(\"plugins.plugin(\"+pos+\")[@name]\");\r\n\t\t\tString version = config.getString(\"plugins.plugin(\"+pos+\")[@version]\");\r\n\t\t\tif(version == null || name == null){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tloadPluginsJar(name+\"-\"+version); // check all classes in jar\r\n\t\t}\r\n\t}", "private ProviderLoader loadFileProvider(final cacheItem cached) {\n final File file = cached.getFirst();\n final PluginScanner second = cached.getSecond();\n return filecache.get(file, second);\n }", "public static Plugin getPlugin() {\n return plugin;\n }", "private void loadPluginsJar(String jarname){\r\n\t\tURL[] urlList = new URL[1];\r\n\t\ttry{\r\n\t\t\tURL jarUrl = new URL(\"file:\"+jarname+\".jar\");\r\n\t\t\turlList[0] = jarUrl;\r\n\t\t}catch(MalformedURLException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+jarname+\"' could not be loaded (invalid path)\");\r\n\t\t}\r\n\t\t\r\n\t\tURLClassLoader classLoader = new URLClassLoader(urlList);\r\n\t\ttry{\r\n\t\t\tJarFile jfile = new JarFile(jarname+\".jar\");\r\n\t\t\t\r\n\t\t\t// walk through all files of the jar\r\n\t\t\tEnumeration<JarEntry> entries = jfile.entries();\r\n\t\t\twhile(entries.hasMoreElements()){\r\n\t\t\t\tJarEntry entry = entries.nextElement();\r\n\t\t\t\tif(entry.isDirectory() || !entry.getName().endsWith(\".class\")){\r\n\t\t\t\t\tcontinue; // we only care for classes\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tString className = entry.getName().substring(0,entry.getName().length()-6).replace('/', '.');\r\n\t\t\t\t\r\n\t\t\t\tClass<IKomorebiPlugin> pluginClass = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\tClass<?> cl = classLoader.loadClass(className);\r\n\t\t\t\t\tif(!IKomorebiPlugin.class.isAssignableFrom(cl)){\r\n\t\t\t\t\t\tcontinue; // only care about PlugIn classes\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tpluginClass = (Class<IKomorebiPlugin>) cl;\r\n\t\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Error while registering PlugIns of '\"+jarname+\"': \"+\r\n\t\t\t\t className+\" could not be loaded\");\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\ttryRegisterPlugin(jarname, pluginClass);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tjfile.close();\r\n\t\t}catch(IOException e){\r\n\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Plugin '\"+jarname+\"' could not be loaded (does not exist)\");\r\n\t\t}finally{\r\n\t\t\tif(classLoader != null){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tclassLoader.close();\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\tLogger.getLogger(LOGGER_NAME).warning(\"Potential resource leak: class loader could not be closed (reason: \"+e.getMessage()+\")\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void load(File source);", "public void loadPlugins() {\n\n ServiceLoader<Pump> serviceLoader = ServiceLoader.load(Pump.class);\n for (Pump pump : serviceLoader) {\n availablePumps.put(pump.getPumpName(), pump);\n }\n\n Pump dummy = new DummyControl();\n availablePumps.put(dummy.getName(), dummy);\n\n Pump lego = new LegoControl();\n availablePumps.put(lego.getName(), lego);\n }", "public final KaranteeniPlugin getPluginInstance(String string) {\r\n\t\treturn (KaranteeniPlugin) kPluginInstances.get(string);\r\n\t}", "public interface Plugin\n{\n\tpublic String getPluginName();\n}", "@Override\r\n public Component load( int nId, Plugin plugin )\r\n {\r\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT, plugin );\r\n daoUtil.setInt( 1, nId );\r\n daoUtil.executeQuery( );\r\n\r\n Component component = null;\r\n\r\n if ( daoUtil.next( ) )\r\n {\r\n component = new Component( );\r\n\r\n component.setId( daoUtil.getInt( 1 ) );\r\n component.setGroupId( daoUtil.getString( 2 ) );\r\n component.setTitle( daoUtil.getString( 3 ) );\r\n component.setDescription( daoUtil.getString( 4 ) );\r\n component.setArtifactId( daoUtil.getString( 5 ) );\r\n component.setVersion( daoUtil.getString( 6 ) );\r\n component.setComponentType( daoUtil.getString( 7 ) );\r\n }\r\n\r\n daoUtil.free( );\r\n\r\n return component;\r\n }", "public abstract Source load(ModuleName name);", "public MeaFlarf(JavaPlugin plugin){\n\t\tthis.plugin = plugin;\n\t}", "public abstract void load();", "public void reloadMsPlugins(String path);", "public static Object createBeanshellPlugin(String srcContent, String pluginName) throws Exception\n {\n Class coreClass;\n Interpreter i;\n \n i = new Interpreter();\n \n try\n {\n System.out.println(i.eval(srcContent));\n \n String classname = pluginName;\n \n Class newPlugin = i.getNameSpace().getClass(classname);\n \n if( newPlugin != null )\n {\n Object newPluginObject = newPlugin.newInstance();\n \n return newPluginObject;\n }\n else\n {\n throw new Exception(\"Could not load new plugin.\");\n }\n }\n catch( bsh.EvalError e )\n {\n throw new Exception(\"Could not compile plugin \" + e.getMessage(), e);\n }\n catch( Exception e )\n {\n throw new Exception(\"Could not compile plugin \" + e.getMessage(), e);\n }\n }", "public interface BundleLoader {\n /**\n * Returns the bundle referred to by the given path, for the given locale, or null if the\n * bundle could not be loaded.\n */\n ResourceBundle loadBundle (String path, Locale locale);\n }", "private static void load(){\n }", "public interface Plugin {\n /**\n * What is the name of this plugin?\n *\n * The framework will use this name when storing the versions\n * (code version and schema version) in the database, and, if\n * this is the Application Plugin, in the help menu, main frame\n * title bar, and other displays wherever the application name\n * is shown.\n *\n * The column used to store this in the database is 40\n * characters wide.\n *\n * @return the name of this plugin\n */\n String getName();\n\n /**\n * What is the version number of this plugin's code?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the code version of this plugin\n */\n String getVersion();\n\n /**\n * Allow a plugin to provide any plugin-specific application\n * context files.\n *\n * Can return null or an empty list if there are none.\n * The elements of the list are paths to resources inside the\n * plugin's jar, e.g. org/devzendo/myapp/app.xml\n *\n * @return a list of any application contexts that the plugin\n * needs to add to the SpringLoader, or null, or empty list.\n */\n List<String> getApplicationContextResourcePaths();\n\n /**\n * Give the SpringLoader to the plugin, after the\n * application contexts for all plugins have been loaded\n * @param springLoader the SpringLoader\n */\n void setSpringLoader(final SpringLoader springLoader);\n\n /**\n * Obtain the SpringLoader for plugin use\n * @return the SpringLoader\n */\n SpringLoader getSpringLoader();\n\n /**\n * What is the database schema version of this plugin?\n *\n * The framework will use this name when storing the versions\n * in the database.\n *\n * @return the database schema version of this plugin\n */\n String getSchemaVersion();\n\n /**\n * Shut down the plugin, freeing any resources. Called by the\n * framework upon system shutdown.\n */\n void shutdown();\n}", "public\n PluginClassLoader\n (\n TreeMap<String,byte[]> contents, \n TreeMap<String,Long> resources, \n PluginID pid, \n PluginType ptype, \n ClassLoader parentLoader\n )\n {\n super(parentLoader == null ? getSystemClassLoader() : parentLoader);\n\n if(contents == null)\n throw new IllegalArgumentException\n\t(\"The class bytes table cannot be (null)!\");\n\n if(resources == null)\n throw new IllegalArgumentException\n\t(\"The resources table cannot be (null)!\");\n \n if(pid == null)\n throw new IllegalArgumentException\n\t(\"The PluginType cannot be (null)!\");\n\n if(ptype == null)\n throw new IllegalArgumentException\n\t(\"The PluginID cannt be (null)!\");\n\n pContents = new TreeMap<String,byte[]>(contents);\n pResources = new TreeMap<String,Long>(resources);\n\n String vendor = pid.getVendor();\n String name = pid.getName();\n VersionID vid = pid.getVersionID();\n\n Path rootPluginPath = new Path(PackageInfo.sInstPath, \"plugins\");\n\n Path pluginPath = \n new Path(rootPluginPath, vendor + \"/\" + ptype + \"/\" + name + \"/\" + vid);\n\n pResourceRootPath = new Path(pluginPath, \".resources\");\n\n LogMgr.getInstance().log\n (LogMgr.Kind.Plg, LogMgr.Level.Finest, \n \"Resource path (\" + pResourceRootPath + \") \" + \n \"for Plugin (\" + vendor + \"/\" + ptype + \"/\" + name + \"/\" + vid + \")\");\n }", "public interface IPluginManager {\n\tpublic BasePluginPackage initPlugin(String pluginPath);\n\n\tpublic BasePluginPackage getPluginPackage(String packageName);\n\n\tpublic Class loadPluginClass(BasePluginPackage basePluginPackage, String className);\n}", "@Override\n\tpublic void addPlugin(ComponentPlugin plugin) throws Exception {\n\n\t}", "void load();", "void load();", "public void loadPluginFileBean(){\n\t\tthis.broadcastManager.registerBroadcastReceiver(new String[]{ACTION_PLUGIN_FILE_FINISHED}, this);\n\t\tfor(PluginFileBean pluginFileBean:this.pluginFileBeanList){\n\t\t\tif(pluginFileBean!=null){\n\t\t\t\tpluginFileBean.setBroadcastManager(this.broadcastManager);\n\t\t\t\tpluginFileBean.setJarClassLoader(this.jarClassLoader);\n\t\t\t\tif(pluginFileBean.getPluginDownloader()==null){\n\t\t\t\t\tpluginFileBean.setPluginDownloader(defaultPluginDownloader);\n\t\t\t\t}\n\t\t\t\tpluginFileBean.loadPluginBean();\n\t\t\t}\n\t\t}\n\t}", "private static URL findPluginBaseWithoutLoadingPlugin(Plugin plugin) {\r\n \ttry {\r\n \t\tURL url = plugin.getClass().getResource(\".\");\r\n \t\ttry {\r\n \t\t\t// Plugin test with OSGi plugin need to resolve bundle resource\r\n\t\t\t\turl = FileLocator.resolve(url);\r\n\t\t\t} catch (NullPointerException e) {\r\n\t\t\t\t// junit non plugin test, OSGi plugin is not loaded\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// junit non plugin test\r\n\t\t\t}\r\n\t\t\tjava.io.File currentFile = new java.io.File(url.toURI());\t//$NON-NLS-1$\r\n\t\t\tdo {\r\n\t\t\t\tcurrentFile = currentFile.getParentFile();\r\n\t\t\t\tif (currentFile.getName().equals(\"bin\") || currentFile.getName().equals(\"src\")) {\t//$NON-NLS-1$ //$NON-NLS-2$\r\n\t\t\t\t\tif (new File(currentFile.getParentFile(), \"plugin.xml\").exists()) {\t\t//$NON-NLS-1$\r\n\t\t\t\t\t\t// Eclipse project should have plugin.xml at root\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\treturn currentFile.getParentFile().toURI().toURL();\r\n\t\t\t\t\t\t} catch (MalformedURLException e) {\r\n\t\t\t\t\t\t\t// give up and just bail out to null like before\r\n\t\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} while (currentFile.getParentFile() != null);\r\n\t\t} catch (URISyntaxException e) {\r\n\t\t\t// give up and just bail out to null like before\r\n\t\t\treturn null;\r\n\t\t}\r\n \treturn null;\r\n }", "public interface IPluginLibrary {\n \n /*\n * Initializes the library\n */\n public void initialize(DefaultPluginsCollector collector);\n \n /*\n * Start the module and initialize components\n */\n public void startLibrary();\n \n /*\n * Fetches all extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return The gathered plugins in a LinkedList\n */\n public void loadAllPlugins(final String extPointId);\n \n /*\n * Fetches new extensions for the given extension point qualifiers.\n * \n * @param extPointId The extension point id to gather plugins for\n * \n * @return A human readable string\n */\n public String loadNewPlugin(final String extPointId); \n \n /**\n * Checks a plugin for validity.\n * \n * @param plugin The plugin to check\n * @param The level to test against, this method will return true if the result is greater or\n * equal than the testLevel\n * @return true or false\n */\n public boolean isValidPlugin(MartinPlugin plugin, MartinAPITestResult testLevel);\n\n /**\n * Answer a request by searching plugin-library for function and executing\n * them.\n * \n * @param req The {@link ExtendedQequest} to answer.\n * \n * @return The generated {@link MResponse}.\n */\n public MResponse executeRequest(ExtendedRequest req);\n\n \n public List<PluginInformation> getPluginInformation();\n \n /**\n * Returns a list of example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of example calls\n */\n public List<MExampleCall> getExampleCalls();\n \n /**\n * Returns a list of 5 randomly choosen example calls read from the plugin database. Is usually\n * only called from the AI controller when the user first loads the MArtIn\n * frontend.\n * \n * @return a list of 5 randomly choosen example calls\n */\n public List<MExampleCall> getRandomExampleCalls();\n \n public Map<String, Pair<Boolean, MartinPlugin> > getPluginExtentions();\n}", "public APlugin getPlugin() {\n return plugin;\n }", "public abstract void init(ResourceLoader loader);", "QuestionPlugin getQuestionPlugin(String type);", "public void load() ;", "public void load() {\n }", "public static void load() {\n tag = getPlugin().getConfig().getString(\"Tag\");\n hologram_prefix = getPlugin().getConfig().getString(\"Prefix\");\n hologram_time_fixed = getPlugin().getConfig().getBoolean(\"Hologram_time_fixed\");\n hologram_time = getPlugin().getConfig().getInt(\"Hologram_time\");\n hologram_height = getPlugin().getConfig().getInt(\"Hologram_height\");\n help_message = getPlugin().getConfig().getStringList(\"Help_message\");\n hologram_text_lines = getPlugin().getConfig().getInt(\"Max_lines\");\n special_chat = getPlugin().getConfig().getBoolean(\"Special_chat\");\n radius = getPlugin().getConfig().getBoolean(\"Radius\");\n radius_distance = getPlugin().getConfig().getInt(\"Radius_distance\");\n chat_type = getPlugin().getConfig().getInt(\"Chat-type\");\n spectator_enabled = getPlugin().getConfig().getBoolean(\"Spectator-enabled\");\n dataType = getPlugin().getConfig().getInt(\"Data\");\n mySQLip = getPlugin().getConfig().getString(\"Server\");\n mySQLDatabase = getPlugin().getConfig().getString(\"Database\");\n mySQLUsername = getPlugin().getConfig().getString(\"Username\");\n mySQLPassword = getPlugin().getConfig().getString(\"Password\");\n\n }", "public final <C extends IOpipePluginExecution> C plugin(Class<C> __cl)\n\t\tthrows ClassCastException, NoSuchPluginException, NullPointerException\n\t{\n\t\tC rv = this.optionalPlugin(__cl);\n\t\tif (rv == null)\n\t\t\tthrow new NoSuchPluginException(\"No plugin exists, it is disabled, \" +\n\t\t\t\t\"or it failed to initialize for execution class \" + __cl);\n\t\treturn rv;\n\t}", "public interface PluginBase {\n void init();\n void run();\n}", "public PhrescoPlugin getPlugin(Dependency dependency) throws PhrescoException {\n \t\treturn constructClass(dependency);\n \t}", "public static Object getPluginInstance(String interfaceType, String name) \n throws Exception {\n if (PLUGINS.get(interfaceType) == null ||\n PLUGINS.get(interfaceType).size() == 0) {\n throw new Exception(\"No plugins of interface type: \" + interfaceType \n + \" available!!\");\n }\n \n Map<String, String> pluginsOfInterfaceType = \n PLUGINS.get(interfaceType);\n if (pluginsOfInterfaceType.get(name) == null) {\n throw new Exception(\"Can't find named plugin '\" + name + \"' of type '\" +\n \t\tinterfaceType + \"'!\");\n }\n \n String concreteImpl = pluginsOfInterfaceType.get(name);\n Object plugin = Class.forName(concreteImpl).newInstance();\n \n return plugin;\n }", "@SuppressWarnings(\"ResultOfMethodCallIgnored\")\n @Override\n public LuaValue call(LuaValue arg) {\n String path = arg.checkjstring();\n\n // It's fine to append your path with .lua as it follows Lua standards.\n if (path.startsWith(\"/\")) path.replaceFirst(\"/\", \"\");\n if (!path.endsWith(\".lua\")) path = path + \".lua\";\n\n // Load the script if it's already in memory for this plugin.\n LuaValue possiblyLoadedScript = g.get(\"__lukkitpackages__\").checktable().get(path);\n if (possiblyLoadedScript != null) return possiblyLoadedScript;\n\n // Get the resource as an InputStream from the plugin's resource getter\n InputStream is = plugin.getResource(path);\n if (is != null) {\n try {\n LuaValue calledScript = g.load(new InputStreamReader(is, \"UTF-8\"), path.replace(\"/\", \".\")).call();\n g.get(\"__lukkitpackages__\").checktable().set(path, calledScript);\n return calledScript;\n } catch (LukkitPluginException e) {\n e.printStackTrace();\n addError(e);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }\n\n throw new LukkitPluginException(\"Requested Lua file at \" + path + \" but it does not exist.\");\n }", "@Override\n public void load() throws IOException, ClassNotFoundException {\n \n }", "private interface LoadStrategy {\n /**\n * Perform loading on the specified module.\n * \n * @param logger logs the process\n * @param moduleName the name of the process\n * @param moduleDef a module\n * @throws UnableToCompleteException\n */\n void load(TreeLogger logger, String moduleName, ModuleDef moduleDef)\n throws UnableToCompleteException;\n }", "protected static void register(Plugin plugin) {\n\t\tPlatform platform = PLATFORMS.get(plugin);\n\t\tif (platform != null)\n\t\t\treturn;\n\n\t\tplatform = new Platform(plugin);\n\t\tPLATFORMS.put(plugin, platform);\n\t}", "public Plugin getPlugin()\r\n\t{\r\n\t\treturn plugin;\r\n\t}", "protected void pluginInitialize() {}", "public void registerPlugin(final DajlabExtension plugin) {\r\n\r\n\t\tif (plugin != null) {\r\n\t\t\tif (plugin instanceof DajlabControllerExtensionInterface) {\r\n\t\t\t\tcontrollers.add((DajlabControllerExtensionInterface<DajlabModelInterface>) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof TabExtensionInterface) {\r\n\t\t\t\ttabPlugins.add((TabExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t\tif (plugin instanceof MenuExtensionInterface) {\r\n\t\t\t\tmenuPlugins.add((MenuExtensionInterface) plugin);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected abstract void onPluginEnable();", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n mPluginMgr = PluginManager.getInstance(this);\n mPluginMgr.setLoaderListener(getPluginPackageName(), this);\n super.onCreate(savedInstanceState);\n mSavedInstanceState = savedInstanceState;\n load();\n\n }", "public void libraryLoaded();", "public GuiListener(@NotNull Plugin plugin) {\n this.plugin = plugin;\n }", "private Plugin getPlugin(String pluginName) {\r\n PluginManager pluginManager = Bukkit.getServer().getPluginManager();\r\n for (Plugin plugin : pluginManager.getPlugins()) {\r\n if (plugin.getName().toLowerCase().equals(pluginName.toLowerCase())) {\r\n return plugin;\r\n }\r\n }\r\n return null;\r\n }", "public void setPluginName(String pluginName);", "static Plugin newInstance(String simpleClassName) throws Exception {\n final String className = Plugin.class.getPackageName() + \".\" + simpleClassName;\n return (Plugin) Class.forName(className).getDeclaredConstructor().newInstance();\n }", "public void addExtensionPoint(IPlugin extensionPointPlugin) {\n lock.writeLock().lock();\n try {\n for (String id : extensionPointPlugin.getIds()) {\n extensionPointPluginMap.put(\n extensionPointPlugin.getName(), id, createLazyLoader(extensionPointPlugin));\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "public interface Plugin {\n\n\t/**\n\t * Returns a description of the plugin, to be shown as a tooltip and/or in the\n\t * help menu.\n\t * \n\t * @return\n\t */\n\tString getDescription();\n\n\t/**\n\t * A label for buttons and menu entries\n\t * \n\t * @return\n\t */\n\tString getName();\n\n\tIkon getIkon();\n\n}", "public abstract T loadResource(AssetManager assetManager, String str);", "public \n PluginClassLoader\n (\n PluginClassLoader childLoader, \n ClassLoader parentLoader\n ) \n {\n this(new TreeMap<String, byte[]>(childLoader.pContents), parentLoader);\n }", "public interface Plugin {\n\n /**************************************************************************\n * Method: starting\n * <p>\n * Starting a plugin requires this method.\n **************************************************************************/\n public void starting();\n\n /**************************************************************************\n * Method: stopping\n * <p>\n * Stopping a plugin will happen with this method. Be it an 'emergency-stopping'\n * or you just want to turn it off.\n **************************************************************************/\n public void stopping();\n\n /**************************************************************************\n * Method: setPluginManager\n * <p>\n * To let the Plugin interact with the program we need to give something\n * with what it can work. The PluginManager is the best 'something' because\n * it knows what kind of information the Plugins are allowed to get. And\n * with the plugin manager We have specified what information the plugins\n * are allowed to use.\n **************************************************************************/\n public void setPluginManager(PluginManager pluginManager);\n}", "ITaskFactory<?> load(String classname);", "public MediaHandler load( int nId, Plugin plugin )\n {\n DAOUtil daoUtil = new DAOUtil( SQL_QUERY_SELECT, plugin );\n daoUtil.setInt( 1, nId );\n daoUtil.executeQuery( );\n\n MediaHandler mediaHandler = null;\n\n if ( daoUtil.next( ) )\n {\n mediaHandler = new MediaHandler( );\n\n mediaHandler.setId( daoUtil.getInt( 1 ) );\n mediaHandler.setIdAccount( daoUtil.getInt( 2 ) );\n mediaHandler.setName( daoUtil.getString( 3 ) );\n mediaHandler.setDescription( daoUtil.getString( 4 ) );\n mediaHandler.setIconUrl( daoUtil.getString( 5 ) );\n mediaHandler.setInsertTemplate( daoUtil.getString( 6 ) );\n mediaHandler.setMediaType( daoUtil.getString( 7 ) );\n }\n\n daoUtil.free( );\n\n return mediaHandler;\n }", "public CommandFramework(Plugin plugin) {\n this.plugin = plugin;\n\n if (plugin.getServer().getPluginManager() instanceof SimplePluginManager) {\n SimplePluginManager manager = (SimplePluginManager) plugin.getServer().getPluginManager();\n\n try {\n Field field = SimplePluginManager.class.getDeclaredField(\"commandMap\");\n field.setAccessible(true);\n map = (CommandMap) field.get(manager);\n } catch (IllegalArgumentException | NoSuchFieldException | IllegalAccessException | SecurityException e) {\n e.printStackTrace();\n }\n }\n }", "static public void callPluginCreate(Object plugin)\n {\n callSpecialFunc(plugin, \"create\");\n }", "public static void init(UtilsUsingPlugin utilsUsingPlugin) {\n\t\tif(code == null) initCode();\n\t\t\n\t\t//notify if we have Unknown Version!\n\t\tif(code.getVersion() == MCVersion.unknown) {\n\t\t\tutilsUsingPlugin.log(\n\t\t\t\t\t\"Could not load Vollotile Code for: \" \n\t\t\t\t\t+ utilsUsingPlugin.getName()\n\t\t\t\t);\n\t\t}\n\t}" ]
[ "0.79213285", "0.7760726", "0.7033304", "0.68054205", "0.6641445", "0.65690976", "0.6405237", "0.6285126", "0.6267032", "0.61331034", "0.6108905", "0.57744056", "0.5771724", "0.55686706", "0.5567184", "0.5531969", "0.5515229", "0.55148596", "0.55045635", "0.5476908", "0.5452302", "0.5425592", "0.54165065", "0.53980017", "0.53904116", "0.5369601", "0.5264134", "0.5261033", "0.52534443", "0.52501035", "0.5232115", "0.52258414", "0.5215705", "0.5204983", "0.5191513", "0.5181234", "0.5180182", "0.5180081", "0.5168002", "0.5168002", "0.51678246", "0.51234645", "0.50993943", "0.5097044", "0.50844955", "0.50793326", "0.5058283", "0.5058197", "0.50524545", "0.50474644", "0.50321907", "0.5032143", "0.5025824", "0.5012967", "0.50021255", "0.4998281", "0.49849775", "0.4983466", "0.4978703", "0.49749136", "0.49677366", "0.49669182", "0.49669182", "0.49531713", "0.49483994", "0.4945562", "0.49112839", "0.49097273", "0.4900593", "0.48938116", "0.4878405", "0.4869277", "0.48504812", "0.48481283", "0.48469645", "0.4846838", "0.48403886", "0.48280665", "0.48272434", "0.48235136", "0.4822984", "0.48123613", "0.47900277", "0.47867107", "0.47833425", "0.47813842", "0.47740784", "0.476476", "0.47592646", "0.47566846", "0.47542906", "0.47492102", "0.4714716", "0.47052968", "0.470375", "0.47032836", "0.4700997", "0.4694266", "0.4693268", "0.46871302" ]
0.5663297
13
/ renamed from: a
public void mo11548a(C4977q qVar, boolean z) { qVar.mo11623a(z, 49, this.f11878e); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface C4521a {\n /* renamed from: a */\n void mo12348a();\n }", "public interface C1423a {\n /* renamed from: a */\n void mo6888a(int i);\n }", "interface bxc {\n /* renamed from: a */\n void mo2508a(bxb bxb);\n}", "interface C33292a {\n /* renamed from: a */\n void mo85415a(String str);\n }", "interface C10331b {\n /* renamed from: a */\n void mo26876a(int i);\n }", "public interface C0779a {\n /* renamed from: a */\n void mo2311a();\n}", "public interface C6788a {\n /* renamed from: a */\n void mo20141a();\n }", "public interface C0237a {\n /* renamed from: a */\n void mo1791a(String str);\n }", "public interface C35013b {\n /* renamed from: a */\n void mo88773a(int i);\n}", "public interface C11112n {\n /* renamed from: a */\n void mo38026a();\n }", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public interface C23407b {\n /* renamed from: a */\n void mo60892a();\n\n /* renamed from: b */\n void mo60893b();\n }", "interface C0312e {\n /* renamed from: a */\n void mo4671a(View view, int i, int i2, int i3, int i4);\n }", "public interface C34379a {\n /* renamed from: a */\n void mo46242a(bmc bmc);\n }", "public interface C32456b<T> {\n /* renamed from: a */\n void mo83696a(T t);\n }", "private String convertir(String a) {\n StringBuilder atributo = new StringBuilder(a);\n atributo.insert(0, Character.toUpperCase(atributo.charAt(0)));\n return atributo.deleteCharAt(1).toString();\n }", "protected m a(String name) {\n/* 42 */ return this.a.get(name);\n/* */ }", "public interface AbstractC23925a {\n /* renamed from: a */\n void mo105476a();\n }", "private interface C0257a {\n /* renamed from: a */\n float mo196a(ViewGroup viewGroup, View view);\n\n /* renamed from: b */\n float mo195b(ViewGroup viewGroup, View view);\n }", "public interface C3598a {\n /* renamed from: a */\n void mo11024a(int i, int i2, String str);\n }", "public interface C2459d {\n /* renamed from: a */\n C2451d mo3408a(C2457e c2457e);\n}", "public interface am extends ak {\r\n /* renamed from: a */\r\n void mo194a(int i) throws RemoteException;\r\n\r\n /* renamed from: a */\r\n void mo195a(List<LatLng> list) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo196b(float f) throws RemoteException;\r\n\r\n /* renamed from: b */\r\n void mo197b(boolean z);\r\n\r\n /* renamed from: c */\r\n void mo198c(boolean z) throws RemoteException;\r\n\r\n /* renamed from: g */\r\n float mo199g() throws RemoteException;\r\n\r\n /* renamed from: h */\r\n int mo200h() throws RemoteException;\r\n\r\n /* renamed from: i */\r\n List<LatLng> mo201i() throws RemoteException;\r\n\r\n /* renamed from: j */\r\n boolean mo202j();\r\n\r\n /* renamed from: k */\r\n boolean mo203k();\r\n}", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public interface C32458d<T> {\n /* renamed from: a */\n void mo83695a(T t);\n }", "public interface C5482b {\n /* renamed from: a */\n void mo27575a();\n\n /* renamed from: a */\n void mo27576a(int i);\n }", "public interface C27084a {\n /* renamed from: a */\n void mo69874a();\n\n /* renamed from: a */\n void mo69875a(List<Aweme> list, boolean z);\n }", "public void a() {\n ((a) this.a).a();\n }", "public interface C1153a {\n /* renamed from: a */\n void mo4520a(byte[] bArr);\n }", "public interface C13373b {\n /* renamed from: a */\n void mo32681a(String str, int i, boolean z);\n}", "public interface C40453c {\n /* renamed from: a */\n void mo100442a(C40429b bVar);\n\n /* renamed from: a */\n void mo100443a(List<String> list);\n\n /* renamed from: b */\n void mo100444b(List<C40429b> list);\n}", "public interface AbstractC17367b {\n /* renamed from: a */\n void mo84655a();\n }", "@Override\r\n\tpublic void a() {\n\t\t\r\n\t}", "public interface C43270a {\n /* renamed from: a */\n void mo64942a(String str, long j, long j2);\n}", "public interface C18928d {\n /* renamed from: a */\n void mo50320a(C18924b bVar);\n\n /* renamed from: b */\n void mo50321b(C18924b bVar);\n}", "public interface C0087c {\n /* renamed from: a */\n String mo150a(String str);\n}", "public interface C1529m {\n /* renamed from: a */\n void mo3767a(int i);\n\n /* renamed from: a */\n void mo3768a(String str);\n}", "interface C4483e {\n /* renamed from: a */\n boolean mo34114a();\n}", "public interface C1234b {\r\n /* renamed from: a */\r\n void m8367a();\r\n\r\n /* renamed from: b */\r\n void m8368b();\r\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public interface C28772a {\n /* renamed from: a */\n View mo73990a(View view);\n }", "@Override\n\tpublic void a() {\n\t\t\n\t}", "public interface C8326b {\n /* renamed from: a */\n C8325a mo21498a(String str);\n\n /* renamed from: a */\n void mo21499a(C8325a aVar);\n}", "void metodo1(int a, int[] b) {\r\n\t\ta += 5;//Par\\u00e1metro con el mismo nombre que el campo de la clase.\r\n\t\tb[0] += 7;//se produce un env\\u00edo por referencia, apunta a una copia de un objeto, que se asigna aqu\\u00ed.\r\n\t}", "public interface C2367a {\n /* renamed from: a */\n C2368d mo1698a();\n }", "interface C30585a {\n /* renamed from: b */\n void mo27952b(C5379a c5379a, int i, C46650a c46650a, C7620bi c7620bi);\n }", "public interface C4211a {\n\n /* renamed from: com.iab.omid.library.oguryco.c.a$a */\n public interface C4212a {\n /* renamed from: a */\n void mo28760a(View view, C4211a aVar, JSONObject jSONObject);\n }\n\n /* renamed from: a */\n JSONObject mo28758a(View view);\n\n /* renamed from: a */\n void mo28759a(View view, JSONObject jSONObject, C4212a aVar, boolean z);\n}", "public interface C4697a extends C5595at {\n /* renamed from: a */\n void mo12634a();\n\n /* renamed from: a */\n void mo12635a(String str);\n\n /* renamed from: a */\n void mo12636a(boolean z);\n\n /* renamed from: b */\n void mo12637b();\n\n /* renamed from: c */\n void mo12638c();\n }", "public interface C4773c {\n /* renamed from: a */\n void m15858a(int i);\n\n /* renamed from: a */\n void m15859a(int i, int i2);\n\n /* renamed from: a */\n void m15860a(int i, int i2, int i3);\n\n /* renamed from: b */\n void m15861b(int i, int i2);\n}", "public interface C4869f {\n /* renamed from: a */\n C4865b mo6249a();\n}", "public interface C1799a {\n /* renamed from: b */\n void mo3314b(String str);\n }", "public interface C43499b {\n /* renamed from: a */\n void mo8445a(int i, String str, int i2, byte[] bArr);\n}", "public interface C0601aq {\n /* renamed from: a */\n void mo9148a(int i, ArrayList<C0889x> arrayList);\n}", "public interface C45101e {\n /* renamed from: b */\n void mo3796b(int i);\n}", "public interface AbstractC6461g {\n /* renamed from: a */\n String mo42332a();\n}", "public interface AbstractC1645a {\n /* renamed from: a */\n String mo17375a();\n }", "public interface C6178c {\n /* renamed from: a */\n Map<String, String> mo14888a();\n}", "public interface C5101b {\n /* renamed from: a */\n void mo5289a(C5102c c5102c);\n\n /* renamed from: b */\n void mo5290b(C5102c c5102c);\n}", "public interface C19045k {\n /* renamed from: a */\n void mo50368a(int i, Object obj);\n\n /* renamed from: b */\n void mo50369b(int i, Object obj);\n}", "public b a()\r\n/* 12: */ {\r\n/* 13:13 */ return this.a;\r\n/* 14: */ }", "public interface C7720a {\n /* renamed from: a */\n long mo20406a();\n}", "public String a()\r\n/* 25: */ {\r\n/* 26:171 */ return \"dig.\" + this.a;\r\n/* 27: */ }", "public interface ayt {\n /* renamed from: a */\n int mo1635a(long j, List list);\n\n /* renamed from: a */\n long mo1636a(long j, alb alb);\n\n /* renamed from: a */\n void mo1637a();\n\n /* renamed from: a */\n void mo1638a(long j, long j2, List list, ayp ayp);\n\n /* renamed from: a */\n void mo1639a(ayl ayl);\n\n /* renamed from: a */\n boolean mo1640a(ayl ayl, boolean z, Exception exc, long j);\n}", "public interface C24221b extends C28343z<C28318an> {\n /* renamed from: a */\n void mo62991a(int i);\n\n String aw_();\n\n /* renamed from: e */\n Aweme mo62993e();\n}", "public interface C4051c {\n /* renamed from: a */\n boolean mo23707a();\n}", "public interface C45112b {\n /* renamed from: a */\n List<C45111a> mo107674a(Integer num);\n\n /* renamed from: a */\n List<C45111a> mo107675a(Integer num, Integer num2);\n\n /* renamed from: a */\n void mo107676a(C45111a aVar);\n\n /* renamed from: b */\n void mo107677b(Integer num);\n\n /* renamed from: c */\n long mo107678c(Integer num);\n}", "public interface C44963i {\n /* renamed from: a */\n void mo63037a(int i, int i2);\n\n void aA_();\n\n /* renamed from: b */\n void mo63039b(int i, int i2);\n}", "public void acionou(int a){\n\t\t\tb=a;\n\t\t}", "public interface C32457c<T> {\n /* renamed from: a */\n void mo83699a(T t, int i, int i2, String str);\n }", "public interface C5861g {\n /* renamed from: a */\n void mo18320a(C7251a aVar);\n\n @Deprecated\n /* renamed from: a */\n void mo18321a(C7251a aVar, String str);\n\n /* renamed from: a */\n void mo18322a(C7252b bVar);\n\n /* renamed from: a */\n void mo18323a(C7253c cVar);\n\n /* renamed from: a */\n void mo18324a(C7260j jVar);\n}", "public interface C0937a {\n /* renamed from: a */\n void mo3807a(C0985po[] poVarArr);\n }", "public interface C8466a {\n /* renamed from: a */\n void mo25956a(int i);\n\n /* renamed from: a */\n void mo25957a(long j, long j2);\n }", "public interface C39684b {\n /* renamed from: a */\n void mo98969a();\n\n /* renamed from: a */\n void mo98970a(C29296g gVar);\n\n /* renamed from: a */\n void mo98971a(C29296g gVar, int i);\n }", "public interface C43470b {\n /* renamed from: a */\n void mo61496a(C43469a aVar, C43471c cVar);\n }", "public interface AbstractC18255a {\n /* renamed from: a */\n void mo88521a();\n\n /* renamed from: a */\n void mo88522a(String str);\n\n /* renamed from: b */\n void mo88523b();\n\n /* renamed from: c */\n void mo88524c();\n }", "public interface C1436d {\n /* renamed from: a */\n C1435c mo1754a(C1433a c1433a, C1434b c1434b);\n}", "public interface C4150sl {\n /* renamed from: a */\n void mo15005a(C4143se seVar);\n}", "public void a(nm paramnm)\r\n/* 28: */ {\r\n/* 29:45 */ paramnm.a(this);\r\n/* 30: */ }", "public interface C19351a {\n /* renamed from: b */\n void mo30633b(int i, String str, byte[] bArr);\n }", "public interface C11113o {\n /* renamed from: a */\n void mo37759a(String str);\n }", "public interface C39504az {\n /* renamed from: a */\n int mo98207a();\n\n /* renamed from: a */\n void mo98208a(boolean z);\n\n /* renamed from: b */\n int mo98209b();\n\n /* renamed from: c */\n int mo98355c();\n\n /* renamed from: d */\n int mo98356d();\n\n /* renamed from: e */\n int mo98357e();\n\n /* renamed from: f */\n int mo98358f();\n}", "protected a<T> a(Tag.e<T> var0) {\n/* 80 */ Tag.a var1 = b(var0);\n/* 81 */ return new a<>(var1, this.c, \"vanilla\");\n/* */ }", "public interface C35565a {\n /* renamed from: a */\n C45321i mo90380a();\n }", "public interface C21298a {\n /* renamed from: a */\n void mo57275a();\n\n /* renamed from: a */\n void mo57276a(Exception exc);\n\n /* renamed from: b */\n void mo57277b();\n\n /* renamed from: c */\n void mo57278c();\n }", "public interface C40108b {\n /* renamed from: a */\n void mo99838a(boolean z);\n }", "public interface C0456a {\n /* renamed from: a */\n void mo2090a(C0455b bVar);\n\n /* renamed from: a */\n boolean mo2091a(C0455b bVar, Menu menu);\n\n /* renamed from: a */\n boolean mo2092a(C0455b bVar, MenuItem menuItem);\n\n /* renamed from: b */\n boolean mo2093b(C0455b bVar, Menu menu);\n }", "public interface C4724o {\n /* renamed from: a */\n void mo4872a(int i, String str);\n\n /* renamed from: a */\n void mo4873a(C4718l c4718l);\n\n /* renamed from: b */\n void mo4874b(C4718l c4718l);\n}", "public interface C7654b {\n /* renamed from: a */\n C7904c mo24084a();\n\n /* renamed from: b */\n C7716a mo24085b();\n }", "public interface C2603a {\n /* renamed from: a */\n String mo1889a(String str, String str2, String str3, String str4);\n }", "public interface afp {\n /* renamed from: a */\n C0512sx mo169a(C0497si siVar, afj afj, afr afr, Context context);\n}", "public interface C0615ja extends b<HomeFragment> {\n\n /* renamed from: c.c.a.h.b.ja$a */\n /* compiled from: FragmentModule_HomeFragment$app_bazaarRelease */\n public static abstract class a extends b.a<HomeFragment> {\n }\n}", "public interface a {\n\n /* renamed from: c.b.a.c.b.b.a$a reason: collision with other inner class name */\n /* compiled from: DiskCache */\n public interface C0054a {\n a build();\n }\n\n /* compiled from: DiskCache */\n public interface b {\n boolean a(File file);\n }\n\n File a(c cVar);\n\n void a(c cVar, b bVar);\n}", "public interface C0940d {\n /* renamed from: a */\n void mo3305a(boolean z);\n }", "public interface AbstractC17368c {\n /* renamed from: a */\n void mo84656a(float f);\n }", "interface C0932a {\n /* renamed from: a */\n void mo7438a(int i, int i2);\n\n /* renamed from: b */\n void mo7439b(C0933b bVar);\n\n /* renamed from: c */\n void mo7440c(int i, int i2, Object obj);\n\n /* renamed from: d */\n void mo7441d(C0933b bVar);\n\n /* renamed from: e */\n RecyclerView.ViewHolder mo7442e(int i);\n\n /* renamed from: f */\n void mo7443f(int i, int i2);\n\n /* renamed from: g */\n void mo7444g(int i, int i2);\n\n /* renamed from: h */\n void mo7445h(int i, int i2);\n }", "public interface C10330c {\n /* renamed from: a */\n C7562b<C10403b, C10328a> mo25041a();\n}", "public interface C3819a {\n /* renamed from: a */\n void mo23214a(Message message);\n }", "private Proof atoAImpl(Expression a) {\n Proof where = axm2(a, arrow(a, a), a); //a->(a->a) -> (a->(a->a)->a) -> (a -> a)\n Proof one = axm1(a, a); //a->a->a\n Proof two = axm1(a, arrow(a, a)); //a->(a->a)->A\n return mpTwice(where, one, two);\n }", "interface C1939a {\n /* renamed from: a */\n Bitmap mo1406a(Bitmap bitmap, float f);\n}", "public interface a extends com.bankeen.d.b.b.a {\n void a();\n\n void b();\n }", "public b[] a() {\n/* 95 */ return this.a;\n/* */ }", "interface C8361a {\n /* renamed from: b */\n float mo18284b(ViewGroup viewGroup, View view);\n\n /* renamed from: c */\n float mo18281c(ViewGroup viewGroup, View view);\n }" ]
[ "0.6249595", "0.6242955", "0.61393225", "0.6117684", "0.61140615", "0.60893875", "0.6046927", "0.60248226", "0.60201806", "0.59753186", "0.5947817", "0.5912414", "0.5883872", "0.5878469", "0.587005", "0.58678955", "0.58651674", "0.5857262", "0.58311176", "0.58279663", "0.58274275", "0.5794977", "0.57889086", "0.57837564", "0.5775938", "0.57696944", "0.57688814", "0.5752557", "0.5690739", "0.5678386", "0.567034", "0.56661606", "0.56595623", "0.56588095", "0.56576085", "0.5654566", "0.56445956", "0.56401736", "0.5638699", "0.56305", "0.56179273", "0.56157446", "0.5607045", "0.5605239", "0.5600648", "0.5595156", "0.55912733", "0.5590759", "0.5573802", "0.5556659", "0.55545336", "0.5550466", "0.5549409", "0.5544484", "0.55377364", "0.55291194", "0.55285007", "0.55267704", "0.5525843", "0.5522067", "0.5520236", "0.55098593", "0.5507351", "0.5488173", "0.54860324", "0.54823226", "0.5481975", "0.5481588", "0.5480086", "0.5478032", "0.54676044", "0.5463578", "0.54506475", "0.54438734", "0.5440832", "0.5440053", "0.5432095", "0.5422814", "0.5421934", "0.54180306", "0.5403851", "0.5400144", "0.5400042", "0.5394655", "0.53891194", "0.5388751", "0.53749055", "0.53691155", "0.53590924", "0.5356525", "0.5355397", "0.535498", "0.5354871", "0.535003", "0.5341249", "0.5326222", "0.53232485", "0.53197914", "0.5316941", "0.5311645", "0.5298656" ]
0.0
-1
/ renamed from: h
public int mo11550h() { int i = 0; for (C4929d f : this.f11878e) { i += f.mo11569f().mo11550h(); } return i + 2 + 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void h() {}", "public void h() {\n }", "public abstract long h();", "float getH() {\n return _h;\n }", "H1 createH1();", "@Override\n public String toString() {\n return \"H\";\n }", "public void add2Hash( Hashtable h, String source ) {\n \n AstCursor c = new AstCursor();\n \n for ( c.FirstElement( this ); c.MoreElement(); c.NextElement() ) {\n Es es = ( Es ) c.node;\n es.add2Hash( h, source );\n }\n }", "public Husdjurshotell(){}", "public abstract int mo123249h();", "public int getH() {\n\t\treturn h;\n\t}", "public ho e_()\r\n/* 455: */ {\r\n/* 456:469 */ if (k_()) {\r\n/* 457:470 */ return new hy(d_());\r\n/* 458: */ }\r\n/* 459:472 */ return new hz(d_(), new Object[0]);\r\n/* 460: */ }", "public H(String a, String b, String c, String d, String e, String f, String g, String h, X x) {\n super(a, b, c, d, e, f, g, x);\n this.h = h;\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic int getH() {\n\t\treturn 100;\n\t}", "public double getH();", "static int hash(int h) {\n\t\t // This function ensures that hashCodes that differ only by constant \n\t\t // multiples at each bit position have a bounded number of collisions \n\t\t // (approximately 8 at default load factor).\n\t\th ^= (h >>> 20) ^ (h >>> 12);\n\t\treturn h ^ (h >>> 7) ^ (h >>> 4);\n\t}", "public boolean h()\r\n/* 189: */ {\r\n/* 190:187 */ return this.g;\r\n/* 191: */ }", "public void setH(int h) {\n\t\tthis.H = h;\n\t}", "private int hash(String str, int h){\n int v=0;\n\n /* FILL IN HERE */\n v = Math.floorMod(MurmurHash.hash32(str, seeds[h]) >>> h, 1 << logNbOfBuckets);\n\n return v;\n }", "public double utilisation(int h)\n {\n \tDouble result;\n \tDouble n1=(Math.pow(2,h))-1;\n \tresult=size()/n1;\n \treturn result;\n \t \t\n }", "public void setH(int h) {\n this.H = h;\n\n }", "public void setH(double h) {\n this.h = h;\n }", "public void mo21783H() {\n }", "public int hash2(int h, int m) {\r\n//\t\tint m = this.capability>>1 + 1;\r\n\t\treturn 1+(h%(m-1));\r\n\t}", "public double getH_() {\n\t\treturn h_;\n\t}", "H4 createH4();", "public abstract long mo9743h();", "private int h1(int p){\n\t\t return p % table.length;\n\t}", "public void applyHorn() {\n\t\t\r\n\t}", "public double getH() {\n return h;\n }", "public double getH() {\n return h;\n }", "public amj h()\r\n/* 17: */ {\r\n/* 18: 41 */ if ((this.c < 9) && (this.c >= 0)) {\r\n/* 19: 42 */ return this.a[this.c];\r\n/* 20: */ }\r\n/* 21: 44 */ return null;\r\n/* 22: */ }", "public int indexFor(int h) {\n\t\treturn (int) (h & (allLength - 1));\n\t}", "@Override\n\tpublic void visit(Have h) {\n\t\t// Reception de l'entier indiquant\n\t\t// l'index de la piŹce possédée par\n\t\t// le pair.\n\t\tSystem.out.println(\"visit have\");\n\t\tif (pieces == null) {\n\t\t\tpieces = new ArrayList<Integer>();\n\t\t}\n\t\tpieces.add(byteArrayToInt(h.getIndex()));\n\t}", "public abstract C17954dh<E> mo45842a();", "void mo1501h();", "static int indexFor(int h, int length) {\n return h & (length-1);\r\n }", "public int getH() {\n\t\treturn this.H;\n\t}", "public void setH_(double h_) {\n\t\tthis.h_ = h_;\n\t}", "public void setH(boolean h) {\n\tthis.h = h;\n }", "protected abstract void calculateH(Node node);", "private void attachHeader(SIPHeader h) {\n if (h == null) throw new IllegalArgumentException(\"null header!\");\n try {\n if (h instanceof SIPHeaderList) {\n SIPHeaderList hl = (SIPHeaderList) h;\n if (hl.isEmpty()) {\n return;\n }\n }\n attachHeader(h,false,false);\n } catch ( SIPDuplicateHeaderException ex) {\n // InternalErrorHandler.handleException(ex);\n }\n }", "void mo304a(C0366h c0366h);", "static int indexFor(int h, int length) {\n return h & (length - 1);\n }", "public final j h() {\n return new d(this);\n }", "C32446a mo21077h() throws Exception;", "private HSBC() {\n\t\t\n\t\t\n\t}", "@Hide\n private final zzs zzahx() {\n }", "public void mo9233aH() {\n }", "public abstract String header();", "abstract public void header();", "public static void hehe(){\n \n }", "H3 createH3();", "public void setH(Double h);", "private HeaderUtil() {}", "public void visit(Have h);", "private stendhal() {\n\t}", "private void add0(int h, int i, final String name, final String value) {\n HeaderEntry e = entries[i];\n HeaderEntry newEntry;\n entries[i] = newEntry = new HeaderEntry(h, name, value);\n newEntry.next = e;\n\n // Update the linked list.\n newEntry.addBefore(head);\n }", "int numberofhc()\n{\n\treturn hc.size();}", "static void dad_with_hl_internal(int h,int l){\n\t\tl+=hexa_to_deci(registers.get('L'));\n\t\tint carry = l>255?1:0;\n\t\tregisters.put('L',decimel_to_hexa_8bit(l));\n\t\th+=hexa_to_deci(registers.get('H'));\n\t\th+=carry;\n\t\tCS = h>255?true:false;\n\t\tregisters.put('H',decimel_to_hexa_8bit(h));\n\t}", "public Void mo7069h() {\n return null;\n }", "public Lechuga(Hamburguesa h){\n this.hamburguesa = h;\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 }", "@java.lang.Override\n public java.lang.String getH() {\n java.lang.Object ref = h_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n h_ = s;\n return s;\n }\n }", "private static String printH(Tuple[] h){\n\t\tString answer = \"ISOMORPHISM:\\t{\";\n\t\tfor(int i = 0; i < h.length; i++){\n\t\t\tanswer = answer + h[i] + (i < h.length-1? \",\": \"\");\n\t\t}\n\t\t\n\t\tanswer = answer + \"}\";\n\t\treturn answer;\n\t}", "double getStartH();", "private void rehash()\n {\n int hTmp = 37;\n\n if ( isHR != null )\n {\n hTmp = hTmp * 17 + isHR.hashCode();\n }\n\n if ( id != null )\n {\n hTmp = hTmp * 17 + id.hashCode();\n }\n\n if ( attributeType != null )\n {\n hTmp = hTmp * 17 + attributeType.hashCode();\n }\n \n h = hTmp;\n }", "public String createH() {\n\t\t// Create H per the algorithm\n\t\t// Create vertices of X --- The number of vertices in X is taken from the paper\n\t\t// k = (2 + epsilon)log n\n\t\tthis.createXVertices();\n\t\t// Create edges within X (both successive and random)\n\t\tthis.createXEdges();\n\n\t\treturn \"H Created (X Vertices)\";\n\n\t}", "public ahb(ahd paramahd)\r\n/* 12: */ {\r\n/* 13: 36 */ this.d = paramahd;\r\n/* 14: */ }", "protected void b(dh paramdh) {}", "public interface HTableWrapper {\n\n /**\n * To get the table name.\n * \n * @return\n */\n public byte[] getName();\n\n /**\n * To get a row.\n * \n * @param get\n * @return\n * @throws IOException\n */\n public Result get(Get get) throws IOException;\n\n /**\n * To get a row using lockId.\n * \n * @param get\n * @param lockId\n * @return\n * @throws IOException\n */\n public Result get(Get get, Integer lockId) throws IOException;\n\n /**\n * To rollback a row.\n * \n * @param row\n * @param startId\n * @param lockId\n * @throws IOException\n */\n public void rollbackRow(byte[] row, long startId, Integer lockId)\n throws IOException;\n\n /**\n * To commit a row.\n * \n * @param row\n * @param startId\n * @param commitId\n * @param isDelete\n * @param lockId\n * @throws IOException\n */\n public void commitRow(byte[] row, long startId, long commitId,\n boolean isDelete, Integer lockId) throws IOException;\n\n}", "@java.lang.Override\n public com.google.protobuf.ByteString\n getHBytes() {\n java.lang.Object ref = h_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n h_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "HEAD createHEAD();", "private void insertItem(Hashtable<String, List<Integer>> h, Element e) {\n\t\tString key = e.attribute(\"sourcefilepath\").getValue().replace('/', '\\\\') + e.attribute(\"sourcefile\").getValue();\r\n\t\tint line = Integer.parseInt(e.attribute(\"line\").getValue().trim());\r\n\t\tList<Integer> l = h.get(key);\r\n\t\tif(l==null){\r\n\t\t\tl = new ArrayList<Integer>();\r\n\t\t\th.put(key, l);\r\n\t\t}\r\n\t\tl.add(line);\r\n\t}", "private Parser(FScript h,HashMap l,HashMap g, HashMap f) {\n vars=l;\n gVars=g;\n funcs=f;\n host=h;\n }", "String getHashControl();", "public static void printHHSV(FqImage imh){\n\t\tint\ti,j;\r\n\t\tfor( i = 0 ; i < imh.width ; i++ ){\r\n\t\t\tfor( j = 0 ; j < imh.height ; j++ ){\r\n\t\t\t\tSystem.out.print(\"h\"+imh.points[i][j].getHHSV() );\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t}", "String mo7388hl() throws RemoteException;", "static String d(NetLoginHandler var0)\n {\n return var0.h;\n }", "private static char toHexDigit(int h) {\n char out;\n if (h <= 9) out = (char) (h + 0x30);\n else out = (char) (h + 0x37);\n //System.err.println(h + \": \" + out);\n return out;\n }", "void mo7372a(C0802fh fhVar) throws RemoteException;", "double getEndH();", "public String getParameterFromH();", "public interface C22383h {\n}", "public void setH(double value) {\n this.h = value;\n }", "public void b(ahd paramahd) {}", "void mo35722a(C14235h hVar);", "public abstract void mo102585a(VH vh, int i);", "SmilHead getHead();", "@Override\n public void computeHash(Hasher hasher) {\n }", "HSet entrySet();", "public HELPFit getHF(){\n return HF;\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "void reconstruct(HashMap<Integer, Vertex> h, Vertex next) {\n while (h.containsKey(next.toIdentifier())) {\n next.path = true;\n next = h.get(next.toIdentifier());\n }\n }", "H getProfile();", "@Override\n\tpublic String getHead(Handler h) {\n\t\tStringBuffer buf = new StringBuffer(10000);\n\t\tbuf.append(\"<!DOCTYPE html>\\n\");\n\t\t\n\t\tbuf.append(\"\\t<head>\\n\");\n\t\tbuf.append(\"\\t\\t<style>\\n\");\n\t\tbuf.append(\"\\t\\ttable { width: 100% }\\n\");\n\t\tbuf.append(\"\\t\\tth { font: bold 10pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\ttd { font: normal 10pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\th1 { font: normal 11pt Tahoma; }\\n\");\n\t\tbuf.append(\"\\t\\t</style>\\n\");\n\t\tbuf.append(\"\\t</head>\\n\");\n\t\t\n\t\tbuf.append(\"\\t<body>\\n\");\n\t\tbuf.append(\"\\t\\t<h1>\" + (new Date()) + \"\\n\");\n\t\tbuf.append(\"\\t\\t<table border=\\\"0\\\" cellpadding=\\\"5\\\" cellspacing=\\\"3\\\">\\n\");\n\t\tbuf.append(\"\\t\\t\\t<tr align=\\\"left\\\">\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:10%\\\">LogLevel</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:15%\\\">Time</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t\\t<th style=\\\"width:75%\\\">LogMessage</th>\\n\");\n\t\tbuf.append(\"\\t\\t\\t</tr>\\n\");\n\t\t\n\t\treturn buf.toString();\n\t}", "protected void a(dh paramdh) {}", "public com.google.protobuf.ByteString\n getHBytes() {\n java.lang.Object ref = h_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n h_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n\tprotected void interr() {\n\t}", "public int func_176881_a() {\n/* */ return this.field_176893_h;\n/* */ }" ]
[ "0.7006457", "0.6376803", "0.6152193", "0.6099337", "0.599903", "0.5976422", "0.5881053", "0.5878019", "0.5851139", "0.5840173", "0.58104765", "0.57935345", "0.5784397", "0.577195", "0.5760394", "0.5758641", "0.57195157", "0.5717094", "0.5712681", "0.57083744", "0.5691357", "0.5675319", "0.5654622", "0.5647394", "0.5633566", "0.5630044", "0.5611922", "0.5607437", "0.55959165", "0.55954385", "0.55954385", "0.5585786", "0.55847657", "0.5573256", "0.5557641", "0.55522007", "0.55487716", "0.55462223", "0.55379975", "0.55343676", "0.55202854", "0.55091685", "0.5500832", "0.54957825", "0.5495365", "0.548653", "0.5483489", "0.54801226", "0.5476092", "0.54691756", "0.5457996", "0.5454038", "0.54173815", "0.54168785", "0.5415112", "0.54006886", "0.53944254", "0.53781533", "0.5358132", "0.5352097", "0.5350295", "0.53456247", "0.53152686", "0.5314088", "0.5306762", "0.53060544", "0.5305655", "0.5299146", "0.52944684", "0.52934664", "0.5282273", "0.52762216", "0.52678543", "0.52643436", "0.5263177", "0.52619565", "0.52585053", "0.5258431", "0.5251732", "0.5248985", "0.524418", "0.52275395", "0.5224416", "0.5206976", "0.5205791", "0.5202667", "0.5201214", "0.5192617", "0.5188043", "0.5187125", "0.51868486", "0.5182988", "0.51596665", "0.5158084", "0.5158084", "0.51560694", "0.5155596", "0.51440835", "0.5138143", "0.51342785", "0.51331306" ]
0.0
-1
final File file = new File(getItem(position));
@Override public View getView(int position, View convertView, ViewGroup parent){ FileStructure fileStructure1 = null; for(FileStructure file : fileStructure.getFiles()) { if(file.getName() == getItem(position)) { fileStructure1 = file; } } if(convertView == null){ convertView = LayoutInflater.from(getContext()).inflate(R.layout.activity_custom_file_listview, parent, false); } TextView projectName = (TextView) convertView.findViewById(R.id.fileNameTextView); TextView fileSize = (TextView) convertView.findViewById(R.id.fileSizeTextView); ImageView imageView = (ImageView) convertView.findViewById(R.id.fileTypeImageView); if(fileStructure1.isFile()) { imageView.setImageResource(R.drawable.ic_description); } else { imageView.setImageResource(R.drawable.ic_action_folder_closed); fileSize.setText(""); } projectName.setText(fileStructure1.getName()); return convertView; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic Object getItem(int position) {\n\t\treturn files.get(position);\r\n\t}", "@Override\n\tpublic FileItem getItem(int position) {\n\t\treturn lists.get(position);\n\t}", "public File getFile()\n {\n return file;\n }", "@Override\n public int getFile() {\n return file;\n }", "public String getFile() {\n \n // return it\n return theFile;\n }", "public File getFile();", "public File getFile();", "File getFile();", "File getFile();", "public File getFile ();", "FileObject getFile();", "FileObject getFile();", "private static Item item(String fileName) {\n Item item = new Item();\n item.setTitle(fileName);\n item.setLink(\"/files/\" + fileName);\n return item;\n }", "double getFile(int index);", "public File getFileValue();", "public File getFile() { return file; }", "public File getFile() {\n return file;\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if ((requestCode == request_code) && (resultCode == RESULT_OK)){\n Toast.makeText(getApplicationContext(),data.getDataString(),Toast.LENGTH_LONG).show();\n elemento = new File(data.getDataString());\n }\n }", "String getFile();", "String getFile();", "String getFile();", "@Override\n\tpublic File getFile() {\n\t\treturn file;\n\t}", "private void onFileClick(Item o)\n {\n \tIntent intent = new Intent();\n intent.putExtra(\"GetPath\",currentDir.toString());\n intent.putExtra(\"GetFileName\",o.getName());\n setResult(RESULT_OK, intent);\n finish();\n }", "File getFile() { return user_file; }", "public RandomAccessFile getFile()\n {\n \treturn f;\n }", "File openFile();", "@Override\n public Item getItem(String groupId, String itemId) {\n Item item = new Item(groupId, itemId);\n return item.getFile().exists() ? item : null;\n }", "@Override\n public Fragment getItem(int position) {\n switch(position){\n case 0:\n return Filenames.newInstance(mUser, mPass, 0);\n case 1:\n return Filenames.newInstance(mUser, mPass, 1);\n case 2:\n return Filenames.newInstance(mUser, mPass, 2);\n }\n return null;\n\n }", "@Override \n protected void onListItemClick(ListView l, View v, int position, long id) {\n mPath = filePaths.get(position);\n }", "String getFile() {\n\t\treturn file;\n\t}", "public File getFile() {\n // some code goes here\n return f;\n }", "public File getFile() {\r\n \t\treturn file;\r\n \t}", "public File getFile() {\n // some code goes here\n return m_f;\n }", "@SuppressLint(\"ViewHolder\")\n @Override\n public View getView(int i, View view, ViewGroup viewGroup) {\n view = getLayoutInflater().inflate(R.layout.custom_items_list, null);\n\n File downloadFile = downloads[i];\n\n downloadFileName = view.findViewById(R.id.nameInList);\n downloadFileDet = view.findViewById(R.id.detInList);\n\n //Set the icon and app name\n downloadFileName.setText(downloadFile.getName());\n\n double fileSize = Double.parseDouble(String.valueOf(downloadFile.length()/(1024*1024)));\n downloadFileDet.setText(fileSize + \" MB\");\n\n\n return view;\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic static Item loadItem(String filename)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tObjectInputStream ois = new ObjectInputStream(new FileInputStream(new File(filename)));\r\n\t\t\tItem item = (Item)ois.readObject();\r\n\t\t\tois.close();\r\n\t\t\tSystem.out.println(\"Loaded item from disk: \" + item);\r\n\t\t\treturn item;\r\n\t\t} \r\n\t\tcatch (FileNotFoundException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"No locally saved \" + filename + \" - creating a new one: \" + e2.getMessage());\r\n\t\t}\r\n\t\tcatch (IOException e2) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"IO Error: \" + e2.getMessage());\r\n\t\t} \r\n\t\tcatch (ClassNotFoundException e1) \r\n\t\t{\r\n\t\t\tSystem.err.println(\"This copy of the program is missing some files: \" + e1.getMessage());\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public void getitem(Writer bwout, File item) throws Exception {\n \tFileAuthInfo i = (FileAuthInfo) item.getAuthInfo();\n HttpResponse response = client.get(new URI(config.itemurl()+\"/\"+i.itemID+\"/\"+i.fileName+\"?token=\"+i.authToken));\n this.read_http_entity(response.getEntity(), bwout);\n }", "public void crearPrimerFichero(){\n File f=new File(getApplicationContext().getFilesDir(),\"datos.json\");\n // si no existe lo creo\n if(!f.exists()) {\n String filename = \"datos.json\";\n String fileContents = \"[]\";\n FileOutputStream outputStream;\n\n try {\n outputStream = openFileOutput(filename, Context.MODE_PRIVATE);\n outputStream.write(fileContents.getBytes());\n outputStream.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n }", "public void onItemClick(AdapterView<?> parent, View view,\n \t\t\t int position, long id) {\n \t\t\t \t String text = (String) fileNames.get(position);\n \t\t\t\t\t Intent intent = new Intent(); \n \t\t\t\t\t intent.setAction(android.content.Intent.ACTION_VIEW); \n \t\t\t\t\t File file = new File(getExternalFilesDir(null) + \"/\" + codeLearnLessons.getItemAtPosition(position).toString()); \n \t\t\t\t\t intent.setDataAndType(Uri.fromFile(file), \"image/*\"); \n \t\t\t\t\t startActivity(intent); \n \t\t\t }", "public File getFile() {\n return file;\n }", "entities.Torrent.FileInfo getFileInfo(int index);", "public FileUploaderItem getFileUploaderItem(int index) {\n return (FileUploaderItem)m_items.getChildAt(index);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String fileURI = values.get(position); // currently just name of the file.extension\n if (this.path.get(this.path.size() - 1).endsWith(File.separator)) {\n fileURI = this.path.get(this.path.size() - 1) + fileURI;\n } else {\n fileURI = this.path.get(this.path.size() - 1) + File.separator + fileURI;\n }\n if (new File(fileURI).isDirectory()) {\n// Toast.makeText(this, fileURI + \" is a directory\", Toast.LENGTH_LONG).show();\n this.path.add(fileURI);\n refreshList();\n // notify the list to be regenerated\n ((ArrayAdapter) parent.getAdapter()).notifyDataSetChanged();\n } else {\n// Toast.makeText(this, fileURI + \" is not a directory\", Toast.LENGTH_LONG).show();\n Intent returnIntent = new Intent();\n returnIntent.putExtra(\"result\", new String[]{values.get(position), fileURI});\n setResult(RESULT_OK, returnIntent);\n finish();\n }\n }", "public File getFile() {\n return _file;\n }", "public File getDataFile();", "stockFilePT102.StockFileDocument.StockFile getStockFile();", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public String getFile()\n\t{\n\t\treturn file;\n\t}", "public void onItemClick(AdapterView<?> parent, View view,\n \t\t\t\t int position, long id) {\n \t\t\t\t\t String text = (String) fileNames.get(position);\n \t\t\t\t\t Intent intent = new Intent(); \n \t\t\t\t\t intent.setAction(android.content.Intent.ACTION_VIEW); \n \t\t\t\t\t File file = new File(getExternalFilesDir(null) + \"/\" + codeLearnLessons.getItemAtPosition(position).toString()); \n \t\t\t\t\t intent.setDataAndType(Uri.fromFile(file), \"audio/*\"); \n \t\t\t\t\t startActivity(intent); \n \t\t\t\t }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n return file;\n }", "public File getFile() {\n // some code goes here\n return this.f;\n }", "private Stream<File> getFileStreamFromView() {\n // Copy the values out of the UI and into a temp list, so that the UI\n // can be updated without stomping on the grabbed values.\n final List<DirectoryListItem> items = new ArrayList<>(gridView.getItems());\n\n return items.stream().map(DirectoryListItem::getFile);\n }", "private static File getAssetInfoFile(Asset asset) {\n \t\treturn getAssetInfoFile(asset.getId());\n \t}", "File getSaveFile();", "@Generated(hash = 1451855236)\n public FileItemInfo getFileItemInfo() {\n long __key = this.fileId;\n if (fileItemInfo__resolvedKey == null || !fileItemInfo__resolvedKey.equals(__key)) {\n final DaoSession daoSession = this.daoSession;\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n FileItemInfoDao targetDao = daoSession.getFileItemInfoDao();\n FileItemInfo fileItemInfoNew = targetDao.load(__key);\n synchronized (this) {\n fileItemInfo = fileItemInfoNew;\n fileItemInfo__resolvedKey = __key;\n }\n }\n return fileItemInfo;\n }", "@Override\n public StorageInputStream open(File file) throws FileNotFoundException {\n\treturn null;\n }", "protected static File m5334a(Context context) {\n return new File(Environment.getExternalStorageDirectory().getPath() + (\"/Android/data/\" + context.getPackageName() + \"/files/\"));\n }", "FileReference getFile(String fileName);", "public File getFile() {\n\t\treturn new File(filepath);\n\t}", "private void update(int position) {\n File f = list_items[position];\n list_items = f.listFiles();\n notifyDataSetChanged();\n }", "private void saveItems() {\n PrintWriter writer = null;\n try {\n FileOutputStream fos = openFileOutput(FILE_NAME, MODE_PRIVATE);\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(\n fos)));\n\n for (int idx = 0; idx < mAdapter.getItemCount(); idx++) {\n\n writer.println(mAdapter.getItem(idx));\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (null != writer) {\n writer.close();\n }\n }\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void onClickListener(File file, int position) {\n fileToPlay = file;\n if(isPlaying){\n stopAudio();\n playAudio(fileToPlay);\n }else{\n playAudio(fileToPlay);\n\n }\n }", "public void save(Item file) {\n\t\tthis.getItemdao().save(file);\r\n\t}", "@Override\n\tpublic View getView(int position, View v, ViewGroup parent) {\n\t\tViewHolder holder;\n\t\tFileItem item = getItem(position);\n\t\tif (v == null) {\n\t\t\tholder = new ViewHolder();\n\t\t\tv = inflater.inflate(R.layout.filelist_item, null);\n\t\t\tholder.img = (ImageView) v.findViewById(R.id.file_img);\n\t\t\tholder.sel = (ImageView) v.findViewById(R.id.file_select);\n\t\t\tholder.tv = (TextView) v.findViewById(R.id.tv_file_name);\n\t\t\tv.setTag(holder);\n\t\t} else {\n\t\t\tholder = (ViewHolder) v.getTag();\n\t\t}\n\t\tString s = item.getFile().getPath();\n\t\tFile f = new File(s);// 获得文件对象\n\t\tchar c[] = s.toCharArray();\n\t\tint i = s.length();\n\t\tif (item.getFile().isDirectory())// 存在分支\n\t\t{\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.file));// 设置图片\n\t\t\tholder.sel.setVisibility(View.GONE);\n\t\t} else if (c[i - 1] == 't' && c[i - 2] == 'x' && c[i - 3] == 't') {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.sl_txt));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\n\t\t} else if (c[i - 1] == 'k' && c[i - 2] == 'p' && c[i - 3] == 'a') {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.apk));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\n\t\t} else if ((c[i - 1] == 'g' && c[i - 2] == 'n' && c[i - 3] == 'p')\n\t\t\t\t|| (c[i - 1] == 'g' && c[i - 2] == 'p' && c[i - 3] == 'j')) {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.picture));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\n\t\t} else if (c[i - 1] == '3' && c[i - 2] == 'p' && c[i - 3] == 'm') {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.music));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\n\t\t} else if (c[i - 1] == 'b' && c[i - 2] == 'd') {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.database_icon));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\n\t\t} else if ((c[i - 1] == 'p' && c[i - 2] == 'i' && c[i - 3] == 'z')\n\t\t\t\t|| (c[i - 1] == 'r' && c[i - 2] == 'a' && c[i - 3] == 'r')) {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.yasuo));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\n\t\t} else {\n\t\t\tholder.img.setImageDrawable(context.getResources().getDrawable(\n\t\t\t\t\tR.drawable.sl_else));\n\t\t\tholder.sel.setVisibility(View.VISIBLE);\n\t\t}\n\t\tif (item.isSelect()) {\n\t\t\tholder.sel.setImageResource(R.drawable.file_selected);\n\t\t} else {\n\t\t\tholder.sel.setImageResource(R.drawable.file_un_select);\n\t\t}\n\t\tholder.tv.setText(item.getFile().getName());\n\t\treturn v;\n\t}", "public static String getFilePath(int index) {\n Logger.d(TAG, \"getFilePath() entry\");\n Cursor cursor = null;\n String filePath = null;\n try {\n cursor =\n mContext.getContentResolver().query(\n MediaStore.Images.Media.EXTERNAL_CONTENT_URI, null, null, null, null);\n cursor.moveToFirst();\n for (int i = 0 ; i < index ; i++) {\n cursor.moveToNext();\n }\n filePath = cursor.getString(cursor.getColumnIndex(MediaStore.Images.ImageColumns.DATA));\n } finally {\n if (cursor != null) {\n cursor.close();\n cursor = null;\n }\n }\n Logger.d(TAG, \"getFilePath() exit with the file path \" + filePath);\n return filePath;\n }", "public abstract String getFileLocation();", "public File getFile() {\n return new File(this.filePath);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n File imgFile = new File(adapter.getItem(position).get(\"image\").toString());\n\n if (imgFile.exists()) {\n //Create a bitmap so the ImageView can load it\n String myBitmap = imgFile.getAbsolutePath();\n\n Intent myIntent = new Intent(MainActivity.this, ImageActivity.class);\n myIntent.putExtra(\"imagePath\", myBitmap);\n startActivity(myIntent);\n }\n }", "public FileObject getFile() {\n return file;\n }", "public FileObject getFile() {\n return file;\n }", "public File getFile() {\n return this.path != null ? this.path.toFile() : null;\n }", "public File getFile( Project project )\n {\n // If we've implemented FileIndex correctly, the the\n // project root + full path is all we should need.\n // File will do the rest\n return( new File( project.getProjectFile().getParentFile(), fullPath ) );\n }", "public File toFile() throws WoodException\n {\n if(!exists()) {\n throw new WoodException(\"Attempt to use not existing file path |%s|.\", value);\n }\n return file;\n }", "void setFile(String i) {\n file = i;\n }", "private File getFile() {\n\t\t// retornamos el fichero a enviar\n\t\treturn this.file;\n\t}", "public File getFile() {\n\t\treturn file;\n\t}", "Path getModBookFilePath();", "public IFile getIFile ();", "public Long getInfile_()\n{\nreturn getInputDataItemId(\"infile_\");\n}", "public void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t int position, long id) {\n\t\t\t\t\t String text = (String) fileNames.get(position);\n\t\t\t\t\t Intent intent = new Intent(); \n\t\t\t\t\t intent.setAction(android.content.Intent.ACTION_VIEW); \n\t\t\t\t\t File file = new File(getExternalFilesDir(null) + \"/\" + codeLearnLessons.getItemAtPosition(position).toString()); \n\t\t\t\t\t intent.setDataAndType(Uri.fromFile(file), \"video/*\"); \n\t\t\t\t\t startActivity(intent); \n\t\t\t\t }", "public void onListItemClick(ListView l, View v, int position, long id)\r\n {\r\n Cursor cursor = (Cursor) l.getItemAtPosition(position);\r\n File selectedFile = new File(cursor.getString(cursor.getColumnIndex(MediaStore.Files.FileColumns.DATA)));\r\n\r\n if (getMode() == MODE_PICK)\r\n {\r\n if (nActions != null)\r\n {\r\n nActions.selectFile(selectedFile);\r\n adapter.notifyDataSetChanged();\r\n }\r\n else\r\n {\r\n Intent pickResult = new Intent();\r\n pickResult.setData(Uri.fromFile(selectedFile));\r\n getActivity().setResult(Activity.RESULT_OK, pickResult);\r\n getActivity().finish();\r\n }\r\n return;\r\n }\r\n\r\n Boolean hideDetails = false;\r\n if (!selectedItems.isEmpty())\r\n {\r\n hideDetails = selectedItems.get(0).getPath().equals(selectedFile.getPath());\r\n }\r\n l.setItemChecked(position, true);\r\n\r\n if (nActions != null)\r\n {\r\n nActions.selectFile(selectedFile);\r\n if (selectedItems.size() == 0)\r\n {\r\n hideDetails = true;\r\n }\r\n }\r\n else\r\n {\r\n selectedItems.clear();\r\n if (!hideDetails && DisplayUtils.hasCentralPane(getActivity()))\r\n {\r\n selectedItems.add(selectedFile);\r\n }\r\n }\r\n\r\n if (hideDetails)\r\n {\r\n selectedItems.clear();\r\n }\r\n else if (nActions == null)\r\n {\r\n // Show properties\r\n ActionManager.actionView(this, selectedFile, new ActionManagerListener()\r\n {\r\n @Override\r\n public void onActivityNotFoundException(ActivityNotFoundException e)\r\n {\r\n Bundle b = new Bundle();\r\n b.putInt(SimpleAlertDialogFragment.PARAM_TITLE, R.string.error_unable_open_file_title);\r\n b.putInt(SimpleAlertDialogFragment.PARAM_MESSAGE, R.string.error_unable_open_file);\r\n b.putInt(SimpleAlertDialogFragment.PARAM_POSITIVE_BUTTON, android.R.string.ok);\r\n ActionManager.actionDisplayDialog(getActivity(), b);\r\n }\r\n });\r\n selectedItems.clear();\r\n }\r\n adapter.notifyDataSetChanged();\r\n\r\n }", "public FileInfo getFileInfo() {\n return fileInfo;\n }", "@Override\n\tpublic Fragment getItem(int position) {\n\t\treturn ContentFragment.newInstance(contents.getChapterFile(position));\n\t}", "@Override\n public void itemClicked(String text) {\n Intent paintScreen = new Intent(this, PaintActivity.class);\n String fullPath = this.getFilesDir().toString();\n fullPath += \"/\" + text;\n paintScreen.putExtra(\"loadedFile\", fullPath);\n paintScreen.putExtra(\"fileName\", text);\n this.startActivity(paintScreen);\n finish();\n }", "@java.lang.Deprecated com.google.apps.drive.activity.v2.DriveItem.File getFile();", "@Override\n public void setFile(File f) {\n \n }", "public File getAttributeFile();", "File getFilePath()\r\n\t{\r\n\t\treturn fFilePath;\r\n\t}", "public File accessFile(String fileName) {\n File file = new File(this.getExternalFilesDir(null), fileName);\n // If there is no file, it creates one\n if (!file.exists()) {\n try {\n file.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n tv1.append(\"creation of file failed\\n\");\n }\n }\n return file;\n }", "public static ScheduleItem readFromFile(RandomAccessFile fio, long pos){\n try {\n fio.seek(pos);\n int number = fio.readInt();\n String name = fio.readUTF();\n return new ScheduleItem(name, number);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "public final File getFile() {\n return file;\n }", "private File getFile() {\n Date date = new Date();\n File file = new File(\"D://meteopost//\" + date + \".txt\");\n if (file.exists()) {\n file.delete();\n }\n return file;\n }", "@Override\n public Item getItem(int position) {\n return data.get(position);\n }", "File retrieveFile(String absolutePath);", "public String file() {\n return this.file;\n }", "public File getTemplateFile();", "public FileInfo(File file) {\n this.file = file;\n }", "FileStore getFile(String fileRefId);" ]
[ "0.7003914", "0.6515883", "0.6444311", "0.6414791", "0.63956755", "0.6379153", "0.6379153", "0.6337853", "0.6337853", "0.63275623", "0.6265685", "0.6265685", "0.6219709", "0.6201977", "0.6185726", "0.616327", "0.6158411", "0.60881996", "0.60825264", "0.60825264", "0.60825264", "0.60598797", "0.6035482", "0.60320306", "0.6023358", "0.60137564", "0.5999964", "0.5993503", "0.5987841", "0.59347963", "0.593419", "0.59163636", "0.58995444", "0.589725", "0.58911824", "0.58657235", "0.5861457", "0.58398956", "0.5829105", "0.5817575", "0.580645", "0.58052814", "0.58013743", "0.58013654", "0.5758048", "0.57480645", "0.57480645", "0.57181656", "0.5715716", "0.5715716", "0.5715716", "0.5715716", "0.57014614", "0.56938505", "0.56931525", "0.5678226", "0.56764627", "0.5659106", "0.56361747", "0.5628809", "0.56165695", "0.5614774", "0.5612563", "0.55647385", "0.55611104", "0.5557692", "0.5556758", "0.55554837", "0.55523205", "0.55469126", "0.5528845", "0.5528845", "0.5524718", "0.5523786", "0.55231476", "0.5521539", "0.551681", "0.55154943", "0.55101156", "0.5506815", "0.55019957", "0.5496472", "0.5492712", "0.549203", "0.54886514", "0.5488101", "0.5485379", "0.548227", "0.54793566", "0.5479216", "0.54783356", "0.54767734", "0.5473718", "0.54698133", "0.5462907", "0.54562986", "0.54525757", "0.5443789", "0.5437876", "0.5436743" ]
0.5692487
55
Use SuiteResults.newBuilder() to construct.
private SuiteResults(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) { super(builder); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RunResult(\n Status status,\n ImmutableList<TestResult> testResults,\n ImmutableMap<String, byte[]> logs) {\n Preconditions.checkNotNull(status);\n Preconditions.checkNotNull(testResults);\n Preconditions.checkNotNull(logs);\n this.status = status;\n this.testResults = testResults;\n this.logs = logs;\n }", "public Results() {\n\t\t\t// TODO Auto-generated constructor stub\n\t\t}", "private SCTeamPrepareResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "private SyncResultsResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public DefaultResults() {\n this.results = new ArrayList<R>();\n this.totalCc = new ArrayList<Long>();\n this.maximalCc = new ArrayList<Long>();\n this.totalBytes = new ArrayList<Long>();\n this.maximalBytes = new ArrayList<Long>();\n this.maximalMemory = new ArrayList<Long>();\n }", "public void setResults(List<BenchmarkResultSet> results) {\n this.results = results;\n }", "protected TestResult createResult() {\n return new TestResult();\n }", "public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder() {\n return getResultsFieldBuilder()\n .addBuilder(com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());\n }", "public AbstractElement(final Result result) {\n results = singleton(result, Result.class);\n }", "public ValidationResult(Result overallResult,\n\t\t\tHashMap<Object, Result> results) {\n\t\tthis.overallResult = overallResult;\n\t\tthis.results = results != null ? results\n\t\t\t\t: new HashMap<Object, Result>();\n\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateUnitResult() {\n }", "public TestResult(TestResult other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n this.failure = other.failure;\n if (other.isSetResults()) {\n Map<String,List<Double>> __this__results = new HashMap<String,List<Double>>(other.results.size());\n for (Map.Entry<String, List<Double>> other_element : other.results.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Double> other_element_value = other_element.getValue();\n\n String __this__results_copy_key = other_element_key;\n\n List<Double> __this__results_copy_value = new ArrayList<Double>(other_element_value);\n\n __this__results.put(__this__results_copy_key, __this__results_copy_value);\n }\n this.results = __this__results;\n }\n if (other.isSetRequests()) {\n List<String> __this__requests = new ArrayList<String>(other.requests);\n this.requests = __this__requests;\n }\n }", "private SCTeamCreateResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public abstract Intent constructResults();", "public Result() {\n getLatenciesSuccess = new ArrayList<Long>();\n getLatenciesFail = new ArrayList<Long>();\n postLatenciesSuccess = new ArrayList<Long>();\n postLatenciesFail = new ArrayList<Long>();\n getRequestFailNum = 0;\n postRequestFailNum = 0;\n getRequestSuccessNum = 0;\n postRequestSuccessNum = 0;\n// getTimestamps = new ArrayList<Long>();\n// postTimestamps = new ArrayList<Long>();\n }", "private LesenRPCResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public entities.Torrent.NodeSearchResult.Builder addResultsBuilder() {\n return getResultsFieldBuilder().addBuilder(\n entities.Torrent.NodeSearchResult.getDefaultInstance());\n }", "TestResult(String name) {\r\n this.name = name;\r\n checkResults = new ArrayList();\r\n }", "public Builder clearResults() {\n if (resultsBuilder_ == null) {\n results_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n resultsBuilder_.clear();\n }\n return this;\n }", "public Builder clearResults() {\n if (resultsBuilder_ == null) {\n results_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n resultsBuilder_.clear();\n }\n return this;\n }", "private SCTeamInviteResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Builder clearResults() {\n if (resultsBuilder_ == null) {\n results_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n resultsBuilder_.clear();\n }\n return this;\n }", "public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder getResultsBuilder(\n int index) {\n return getResultsFieldBuilder().getBuilder(index);\n }", "public ReportRunner() \n\t{\n\t\treports = new HashMap<String, Report>();\n\t\tresults =Collections.synchronizedMap(new HashMap<String, ArrayList<String[]>>());\n\t}", "public Builder resultsTtl(Integer resultsTtl) {\n this.resultsTtl = resultsTtl;\n return this;\n }", "public Results(UtilityConstants utilityConstants) {\n this.utilityConstants = utilityConstants;\n }", "public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder addResultsBuilder() {\n return getResultsFieldBuilder().addBuilder(\n org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance());\n }", "public ExportResults()\n\t{\n\t\tthis.evalNaiveBayesList = new ArrayList<Evaluation>();\n\t\tthis.evalSMOList = new ArrayList<Evaluation>();\n\t}", "public void setResults(ArrayList results) {\n this.results = results;\n }", "public Builder addResults(entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }", "public Result() {\r\n super();\r\n System.out.println(\"Result:Constructor\");\r\n }", "public entities.Torrent.NodeSearchResult.Builder getResultsBuilder(\n int index) {\n return getResultsFieldBuilder().getBuilder(index);\n }", "public ResultFactoryImpl() {\n\t\tsuper();\n\t}", "private BenchmarkResponse(com.google.protobuf.GeneratedMessage.Builder builder) {\n super(builder);\n }", "public Builder setResults(\n int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.set(index, value);\n onChanged();\n } else {\n resultsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public TestResult(TestDescription td, Status s) {\n desc = td;\n testURL = desc.getRootRelativeURL();\n resultsFile = null;\n execStatus = s;\n props = emptyStringArray;\n }", "public ExperimentStartOperationResultInner() {\n }", "TaskResult() {\n super();\n this.results = new LinkedHashMap<>();\n this.taskDetails = new HashMap<>();\n }", "public Result(){\n\t}", "public Builder addResults(org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }", "public Results(ArrayList<String> nameList) {\r\n //Create an empty tree\r\n this.resultsTree = new TreeSet<>(lexicalSortByTeamName);\r\n \r\n //Create an arraylist containing the teams\r\n ArrayList<Team> teamList = new ArrayList<>();\r\n Iterator<String> itr = nameList.iterator();\r\n while (itr.hasNext()) {\r\n teamList.add(new Team(itr.next()));\r\n }\r\n \r\n //Create an arraylist containing all the possible matches\r\n //Then add it to the tree\r\n for (int i = 0; i < teamList.size(); i++) {\r\n for ( int j = i + 1; j < teamList.size(); j++) {\r\n this.resultsTree.add(new Match(teamList.get(i), teamList.get(j)));\r\n }\r\n }\r\n }", "private Result_(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Builder addResults(\n int index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }", "private TestsResultQueueEntry() {\n\t\t}", "public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder getResultsBuilder(\n int index) {\n return getResultsFieldBuilder().getBuilder(index);\n }", "private static void parseSuite(TestReport report, Element testSuiteEl, String packageName, String className)\n\t{\t\t\n\t\tTestPackage tp = report.getTestPackageByName(packageName);\n\t\tif (tp == null)\n\t\t{\n\t\t\ttp = new TestPackage(packageName);\n\t\t\treport.addTestPackage(tp);\n\t\t}\n\t\tTestClass testClass = tp.getTestClassByName(className);\n\t\tif(testClass == null)\n\t\t{\n\t\t\ttestClass = new TestClass(className);\n\t\t\ttp.addClass(testClass);\n\t\t}\n\t\t\n\t\ttestClass.setHostName(testSuiteEl.getAttribute(\"hostname\"));\n\t\ttestClass.setTests(Long.valueOf(testSuiteEl.getAttribute(\"tests\")));\n\t\ttestClass.setErrors(Long.valueOf(testSuiteEl.getAttribute(\"errors\")));\n\t\ttestClass.setFailures(Long.valueOf(testSuiteEl.getAttribute(\"failures\")));\n\t\ttestClass.setTimeTaken(testSuiteEl.getAttribute(\"time\"));\n\t\ttestClass.setTimestamp(testSuiteEl.getAttribute(\"timestamp\"));\n\t\t\n\t\tNodeList cases = testSuiteEl.getElementsByTagName(\"testcase\");\n int noOfCases = cases.getLength();\n for(int caseNo=0;caseNo<noOfCases;caseNo++)\n {\n \t\n \tElement testCaseEl = (Element) cases.item(caseNo);\n \tString caseName = testCaseEl.getAttribute(\"name\");\n \tTestCase testCase = testClass.getTestCaseByName(caseName);\n \tif(testCase == null)\n \t{\n \t\ttestCase = new TestCase(caseName);\n \t\ttestClass.addCase(testCase);\n \t}\n \t\n \ttestCase.setFullClassName(testCaseEl.getAttribute(\"classname\"));\n \ttestCase.setTimeTaken(testCaseEl.getAttribute(\"time\"));\n \t\n \tNodeList failures = testCaseEl.getElementsByTagName(\"failure\");\n int noOfFailures = failures.getLength();\n for(int failureNo=0;failureNo<noOfFailures;failureNo++)\n {\n \tNode failureNode = failures.item(failureNo);\n \tElement failureEl = (Element) failureNode;\n \ttestCase.setResult(TestCase.Result.FAIL); \t\n \ttestCase.setErrorMsg(failureEl.getAttribute(\"message\"));\n \ttestCase.setErrorType(failureEl.getAttribute(\"type\"));\n \ttestCase.setErrorTrace(failureEl.getTextContent());\n }\n \n \tNodeList errors = testCaseEl.getElementsByTagName(\"error\");\n int noOfErrors = errors.getLength();\n for(int errorNo=0;errorNo<noOfErrors;errorNo++)\n {\n \tNode errorNode = errors.item(errorNo);\n \tElement errorEl = (Element) errorNode;\n \ttestCase.setResult(TestCase.Result.ERROR);\n \ttestCase.setErrorMsg(errorEl.getAttribute(\"message\"));\n \ttestCase.setErrorType(errorEl.getAttribute(\"type\"));\n \ttestCase.setErrorTrace(errorEl.getTextContent());\n }\n }\n\t}", "public static IScriptResult createResult(SceResultsType srt) {\r\n \treturn new Result(srt);\r\n }", "public Builder addResults(com.google.cloud.speech.v2.StreamingRecognitionResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(value);\n }\n return this;\n }", "public static Test suite() {\n \n TestSuite suite = new TestSuite(\"ImplementationSuite\");\n suite.addTest(org.mmbase.storage.search.implementation.BasicAggregatedFieldTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicCompareFieldsConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicCompositeConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldCompareConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldNullConstraintTest.suite());\n// yet to be implemented:\n// suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueBetweenConstraintTest.suite()); \n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicFieldValueInConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicLegacyConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicRelationStepTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicSearchQueryTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicSortOrderTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStepTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStepFieldTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.BasicStringSearchConstraintTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.database.DatabaseSuite.suite());\n suite.addTest(org.mmbase.storage.search.implementation.ModifiableQueryTest.suite());\n suite.addTest(org.mmbase.storage.search.implementation.NodeSearchQueryTest.suite());\n //:JUNIT--\n //This value MUST ALWAYS be returned from this function.\n return suite;\n }", "public Result() {\n success = false;\n messages = new ArrayList<>();\n errMessages = new ArrayList<>();\n }", "public Result() {\n }", "public Result() {\n }", "public static Test suite()\n {\n TestSuite ts = new TestSuite(\"TestAPI\") ;\n\t\t\t\n // This test should run first, in order to enable the optimizer for subsequent tests\n\t\tts.addTest(new TestAPI(\"testOptimizerDisable\")) ;\n\t\tts.addTest(new TestAPI(\"testOptimizerEnable\")) ;\n\t\tts.addTest(new TestAPI(\"testExplain\")) ;\n\t\tts.addTest(new TestAPI(\"testIndex\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability1\")) ;\n\t\tts.addTest(new TestAPI(\"testProbability2\")) ;\n\t\t\n // Wrapper for the test suite including the test cases which executes the setup only once\n\t\tTestSetup wrapper = new TestSetup(ts) \n\t\t{\n\t\t\tprotected void setUp() \n\t\t\t{\n\t\t\t\toneTimeSetUp();\n\t\t\t}\n\n\t\t\tprotected void tearDown() \n\t\t\t{\n\t\t\t\toneTimeTearDown();\n\t\t\t}\n\t\t};\n\t\t\n\t\treturn wrapper ;\n }", "public com.google.cloud.speech.v2.StreamingRecognitionResult.Builder addResultsBuilder(\n int index) {\n return getResultsFieldBuilder()\n .addBuilder(\n index, com.google.cloud.speech.v2.StreamingRecognitionResult.getDefaultInstance());\n }", "private SCTeamJoinResult(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateGroupResult() {\n }", "public Builder setResults(\n int index, com.google.cloud.speech.v2.StreamingRecognitionResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.set(index, value);\n onChanged();\n } else {\n resultsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public Builder addAllResults(\n java.lang.Iterable<? extends entities.Torrent.NodeSearchResult> values) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, results_);\n onChanged();\n } else {\n resultsBuilder_.addAllMessages(values);\n }\n return this;\n }", "@SuppressWarnings(\"unused\")\n private RunUnitTestsResponse() {\n this((TestResultInfo) null, -1, -1);\n }", "public Builder addResults(\n int index, com.google.cloud.speech.v2.StreamingRecognitionResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder setResults(\n int index, entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.set(index, value);\n onChanged();\n } else {\n resultsBuilder_.setMessage(index, value);\n }\n return this;\n }", "public org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder addResultsBuilder(\n int index) {\n return getResultsFieldBuilder().addBuilder(\n index, org.apache.calcite.avatica.proto.Responses.ResultSetResponse.getDefaultInstance());\n }", "public interface Results {\n\n\tboolean resultsOk();\n\n\tResultsPanel getResultPanel();\n\n\tString getAnalysisName();\n}", "public Builder addResults(\n int index, entities.Torrent.NodeSearchResult value) {\n if (resultsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureResultsIsMutable();\n results_.add(index, value);\n onChanged();\n } else {\n resultsBuilder_.addMessage(index, value);\n }\n return this;\n }", "public Builder addAllResults(\n java.lang.Iterable<? extends org.apache.calcite.avatica.proto.Responses.ResultSetResponse> values) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, results_);\n onChanged();\n } else {\n resultsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public fill_results_result(fill_results_result other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n }", "public entities.Torrent.NodeSearchResult.Builder addResultsBuilder(\n int index) {\n return getResultsFieldBuilder().addBuilder(\n index, entities.Torrent.NodeSearchResult.getDefaultInstance());\n }", "public SimilarResultList(int maxSize, SimilarResult... results) {\n this(maxSize, 0, results);\n }", "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "public void setResults(ArrayList<Integer> results){\n this.results = results;\n }", "public LoanCalculatorTest(LoanPayoutSummary results, LoanPayoutSummary expectedResults) {\n this.results = results;\n this.expectedResults = expectedResults;\n }", "public static QueryResult build() {\n return new QueryResult(ImmutableList.of());\n }", "public ExcelResultBuilder() {\n }", "Bundle generate(Map<String, TestResult> rawResults);", "public Builder addResults(\n entities.Torrent.NodeSearchResult.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public Builder addAllResults(\n java.lang.Iterable<? extends com.google.cloud.speech.v2.StreamingRecognitionResult>\n values) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(values, results_);\n onChanged();\n } else {\n resultsBuilder_.addAllMessages(values);\n }\n return this;\n }", "public static Test suite() {\n\n TestSuite suite = new TestSuite(BuildStatusTest.class);\n return suite;\n }", "private ResultSetResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public Builder setResultBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n result_ = value;\n onChanged();\n return this;\n }", "public SearchResults() {\n\t\tPageFactory.initElements(driver, this);\n\t}", "public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}", "public void setResults(WsGroupSaveResult[] results1) {\n this.results = results1;\n }", "public <ResultType> MonitoringResponseBuilder(StatusType status, ResultType result) {\n PrismaResponseWrapper<?> prismaResponseWrapper =\n PrismaResponseWrapper.status(status, result).build();\n responseBuilder = Response.status(status).entity(prismaResponseWrapper);\n }", "private LookupResult(Builder builder) {\n super(builder);\n }", "public Builder addResults(\n org.apache.calcite.avatica.proto.Responses.ResultSetResponse.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public TestSuiteRun(String name, String company, String project, String domain,\n List<TestRun> testRunList) {\n this.name = name;\n this.company = company;\n this.project = project;\n this.domain = domain;\n this.correlationId = CorrelationIdGenerator.generateCorrelationId(company, project, name);\n this.testRunMap = getMap(testRunList);\n }", "public void generateReport(List<XmlSuite> xmlSuites, List<ISuite>suites, \r\n\t\tString outputDirectory){//creating a method that takes three arguments,\r\n\t//to generate a report, arguments list requirements, \r\n\t//using a mechanism called List, which gets the array input\r\n\t//script will go back to xml suites, and look for \"suites\" which are the classes we created\r\n\t//we will create an xml file to contain all the classes within our test cases\r\n\t//PASS, FAIL, or SKIP will be string outputs; String outputDirectory\r\n\t//XML Suite: big time testing based on testing type\r\n\t//ISuite: pages we are working on; classes created to perform action; under test folder\r\n\t\r\n\textent = new ExtentReports(outputDirectory + File.separator\r\n\t\t\t+ \"Extent.html\", true);\r\n\t//creating an object for extent report, creating a virtual object to save all output to save all results\r\n\t//as a string, file seperator is not needed, it doesn't matter how u received the result\r\n\t//seperate them and consolidate the results\r\n\t//telling you how to save the file name, html is easy to open on any device and lightweight\r\n\t//outputDirectory: SKIP, PASS, FAIL\r\n\t//the reason for boolean option: if yu receive results, generate report//if yu dont then dont generate\r\n\tfor(ISuite suite : suites){//for loop is created\r\n\t\t//map obtains a key value, not duplicate, and then maps it to one location, which is the\r\n\t\t//extent report\r\n\t\t//an interface in java, between key value and location (between status and extent report)\r\n\t\t//will make sure how to map and seperate results under each class\r\n\t\tMap<String, ISuiteResult>result = suite.getResults();\r\n\t\r\n\tfor(ISuiteResult r : result.values()){\r\n\t\tITestContext context =r.getTestContext();//for each of the classes, create log status\r\n\t\t//test context: script that we are running, results from it\r\n\t\t//: is a conditional operator, which lists the conditions, which lists out the conditions\r\n\t\t//script should be able to run \r\n\t\t//one suite, or multiple suites in one shot\r\n\t\t//making context\r\n\t\t\r\n\t\t\r\n\t\tbuildTestNo(context.getPassedTests(), LogStatus.PASS);\r\n\t\tbuildTestNo(context.getFailedTests(), LogStatus.FAIL);\r\n\t\t//retrieving status using results/context\r\n\t\tbuildTestNo(context.getSkippedTests(), LogStatus.SKIP);\r\n\t\t\t\r\n\t}\r\n}\r\nextent.flush();//take results and place on html file\r\nextent.close();\r\n\r\n}", "@Override\n public boolean perform(final AbstractBuild<?, ?> build, final Launcher launcher,\n final BuildListener listener) {\n\n boolean result = false;\n if (Result.SUCCESS.equals(build.getResult()) || Result.UNSTABLE.equals(build.getResult())) {\n\n FilePath ws = build.getWorkspace();\n if (ws == null) {\n listener.error(\"No workspace defined!\");\n build.setResult(Result.FAILURE);\n result = false;\n } else {\n for (ResultSet resultSet : getResultSets()) {\n if (StringUtils.isEmpty(resultSet.getSpec())) {\n listener.getLogger().println(\"Empty result spec implementation detected\");\n } else {\n listener.getLogger().println(\n \"The test result(s) contained in target \" + resultSet.getSpec()\n + \" will be exported to the \" + \"Klaros-Testmanagement Server at \"\n + getUrl(url) + \" using the \" + resultSet.getFormat() + \" format.\");\n listener.getLogger().print(\"With parameters Project[\" + config + \"]\");\n if (StringUtils.isNotBlank(iteration)) {\n listener.getLogger().print(\" Iteration[\" + iteration + \"]\");\n }\n listener.getLogger().println(\n \" Environment[\" + env + \"] and SUT[\" + sut + \"].\");\n\n try {\n FileCallableImplementation exporter =\n new FileCallableImplementation(getJenkinsInstance().getRootUrl(), build\n .getProject().getName(), build.getNumber(), build\n .getEnvironment(listener), build.getBuildVariables(), listener);\n exporter.setKlarosUrl(getKlarosUrl(url));\n exporter.setResultSet(resultSet);\n exporter.setConfig(config);\n exporter.setIteration(iteration);\n exporter.setSut(sut);\n exporter.setEnv(env);\n exporter.setUsername(username);\n exporter.setPassword(password.getPlainText());\n exporter.setCreateTestSuite(createTestSuite);\n ws.act(exporter);\n\n listener.getLogger().println(\"Test result(s) successfully exported.\");\n\n } catch (IOException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n } catch (InterruptedException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n } catch (RuntimeException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n }\n\n result = true;\n }\n }\n }\n } else {\n listener.getLogger().println(\n \"Skipping export of test results to Klaros-Testmangement due to build status\");\n result = true;\n }\n return result;\n }", "private LocalSearchResponse(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public OperationStatusResultInner() {\n }", "public void setResults(Map<String, StepResult> newResults)\n {\n results = newResults;\n }", "public static SearchResults createSearchResults(ClientResults apiResults) {\n List<SearchResult> resultList = new ArrayList<>();\n if (apiResults == null) return null;\n List<Item> topList = apiResults.getItems()\n .subList(0, (apiResults.getItems().size() >= MAX_DISPLAY_COUNT) ? MAX_DISPLAY_COUNT : apiResults.getItems().size());\n for (Item apiResult : topList) {\n\n if (apiResult.getOwner() == null ||\n apiResult.getDescription().isEmpty() ||\n StringUtil.isEmpty(apiResult.getName()) ||\n StringUtil.isEmpty(apiResult.getUrl()) ||\n StringUtil.isEmpty(apiResult.getDescription()) ||\n StringUtil.isEmpty(apiResult.getStargazersCount())) continue;\n\n Owner owner = apiResult.getOwner();\n if (StringUtil.isEmpty(owner.getAvatarUrl()) ||\n StringUtil.isEmpty(owner.getOrgName())) continue;\n\n SearchResult result = new SearchResult();\n result.setRepositoryName(apiResult.getName());\n result.setOrgName(owner.getOrgName());\n result.setWebUrl(apiResult.getUrl());\n result.setAvatarUrl(apiResult.getOwner().getAvatarUrl());\n result.setDescription(apiResult.getDescription());\n try {\n result.setStarCount(Integer.parseInt(apiResult.getStargazersCount()));\n } catch (NullPointerException exception) {\n continue;\n }\n resultList.add(result);\n\n }\n SearchResults searchResults = new SearchResults();\n searchResults.setSearchResults(resultList);\n return searchResults;\n }", "@DataBoundConstructor\n public KlarosTestResultPublisher(final String config, final String iteration, final String env,\n final String sut, final boolean createTestSuite, final String type, final String pathTestResults,\n final ResultSet[] resultSets, final String url, final String username, final String password) {\n\n this.config = config;\n this.iteration = iteration;\n this.env = env;\n this.sut = sut;\n this.createTestSuite = createTestSuite;\n this.resultSets = resultSets != null ? resultSets.clone() : null;\n migratePathTestResults();\n this.url = url;\n this.username = username;\n this.password = Secret.fromString(password);\n this.types = null;\n }", "@Override\n @XmlElement(name = \"result\", required = true)\n public Collection<Result> getResults() {\n return results = nonNullCollection(results, Result.class);\n }", "public Builder addResults(\n com.google.cloud.speech.v2.StreamingRecognitionResult.Builder builderForValue) {\n if (resultsBuilder_ == null) {\n ensureResultsIsMutable();\n results_.add(builderForValue.build());\n onChanged();\n } else {\n resultsBuilder_.addMessage(builderForValue.build());\n }\n return this;\n }", "public Result getResults()\r\n {\r\n return result;\r\n }", "private void initDefaultResultCollector() {\n Summariser summer=null;\n String summariserName = JMeterUtils.getPropDefault(\"summariser.name\", \"summary\");\n if (summariserName.length() > 0) {\n summer = new Summariser(summariserName);\n }\n // Store execution results into a .jtl file\n //String logFile = \"example.jtl\";\n resultCollector = new AutoMeterResultCollector(summer);\n resultCollector.setName(DEFAULT_RESULT_COLLECTOR_NAME);\n resultCollector.setProperty(TestElement.TEST_CLASS, AutoMeterResultCollector.class.getName());\n resultCollector.setProperty(TestElement.GUI_CLASS, SummaryReport.class.getName());\n resultCollector.setCalculator(calculator);\n calculator.setResultViewer(resultViewer);\n //resultCollector.setFilename(logFile);\n }", "private PBZJHGameResult(Builder builder) {\n super(builder);\n }", "void buildDataTable(SearchResults<ManageUsersSearchModel.Result> results);" ]
[ "0.60864955", "0.6060339", "0.56705266", "0.5617831", "0.55889255", "0.5580106", "0.55755574", "0.55633986", "0.556151", "0.55579114", "0.5537606", "0.5534698", "0.5508416", "0.54850894", "0.54652506", "0.54649407", "0.54447025", "0.5434803", "0.5398201", "0.5391878", "0.53880036", "0.53842473", "0.5366753", "0.5365002", "0.53526753", "0.53513527", "0.5347325", "0.53195447", "0.5288704", "0.52871364", "0.5274399", "0.5262363", "0.52619874", "0.52358395", "0.52302885", "0.52238244", "0.5221207", "0.52037734", "0.5201942", "0.5200965", "0.5199071", "0.51950765", "0.51946026", "0.5180018", "0.51767725", "0.5173518", "0.5172542", "0.5166789", "0.5166083", "0.51637155", "0.51578826", "0.51578826", "0.51570773", "0.5154318", "0.5142977", "0.5139739", "0.51308817", "0.5128963", "0.512278", "0.5115796", "0.51101685", "0.50995904", "0.50878304", "0.5073866", "0.50489", "0.5038755", "0.503629", "0.5022199", "0.50214314", "0.501566", "0.5001431", "0.49945644", "0.49924275", "0.498912", "0.49881", "0.49828786", "0.49815628", "0.4975268", "0.4973909", "0.49672532", "0.4957405", "0.4956199", "0.49477494", "0.49405923", "0.49367425", "0.4928093", "0.49230435", "0.49216616", "0.49154416", "0.49073374", "0.49043033", "0.49004278", "0.48880476", "0.48859248", "0.4885708", "0.4879307", "0.48753992", "0.4869934", "0.4868402", "0.48632208" ]
0.8253605
0
The suite name. string name = 1 [json_name = "name"];
@java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "public String name() { return name; }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6642929", "0.6079845", "0.60374844", "0.59383863", "0.5903584", "0.5883576", "0.5829735", "0.5824306", "0.58054423", "0.57412934", "0.5733049", "0.5713644", "0.5697946", "0.5636528", "0.56209356", "0.56196374", "0.55528975", "0.5550572", "0.5512472", "0.55000186", "0.54897475", "0.54872435", "0.5480189", "0.54745895", "0.54655343", "0.54594904", "0.5457283", "0.5457193", "0.5450622", "0.5434666", "0.5431959", "0.5403839", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.5393556", "0.5392972", "0.53907007", "0.5385736", "0.53843087", "0.53837824", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538" ]
0.0
-1
The suite name. string name = 1 [json_name = "name"];
@java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public String name() { return name; }", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6642981", "0.6079557", "0.6036509", "0.59381187", "0.59025806", "0.58852077", "0.5829086", "0.5825125", "0.5805266", "0.5742211", "0.57337993", "0.57142186", "0.5700014", "0.5636773", "0.56217206", "0.5620745", "0.5554129", "0.5550312", "0.5511781", "0.5499037", "0.54893035", "0.54870003", "0.54817593", "0.54746413", "0.5466498", "0.54597926", "0.5459783", "0.54594165", "0.5451568", "0.5434807", "0.54327285", "0.54046077", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53957164", "0.5394049", "0.5390746", "0.5387362", "0.53872174", "0.53864914", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186" ]
0.0
-1
Count of successes. int32 successes = 2 [json_name = "successes"];
@java.lang.Override public int getSuccesses() { return successes_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "public int getSuccesses() {\n return successes.get();\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getStatusCount();", "String getLoginapisuccessfulhitcount();", "int getResponseCount();", "int getStudentResponseCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Builder setSuccesses(int value) {\n\n successes_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public int getNumRespAtracc();", "public int getSuccess() {\n return success;\n }", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "public Integer countRecordReturns();", "public int getStatusCount() {\n return status_.size();\n }", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "private void executeCountQuery(JsonObject json, HttpServerResponse response) {\n database.countQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Count Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Count Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected int countOfStatus(final Player player, final String status) {\r\n int hits = 0;\r\n String playerGFString = player.getGamefield();\r\n GameField playerGF = JsonConverter.convertStringToGamefield(playerGFString);\r\n for (Box box : playerGF.getGameField()) {\r\n if(box.getStatus().equals(status)){\r\n hits++;\r\n }\r\n } \r\n return hits;\r\n }", "public int numberOfResult() throws Exception;", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public int getStatusCount() {\n return status_.size();\n }", "public static int count() {\n\treturn errorCount;\n }", "@Override\n public abstract long getResponseCount();", "long getTotalAcceptCount();", "long count() throws Exception;", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int succeeded() {\n return this.succeeded;\n }", "public int getTotalReturnCount(){\n return totalReturnCount;\n }", "public int countByStatus(int status);", "int getResultsCount();", "int getResultsCount();", "long countByExample(StatusRepliesExample example);", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "boolean hasLoginapisuccessfulhitcount();", "Integer count();", "Integer count();", "public Integer getIfsuccess() {\n return ifsuccess;\n }", "int getTotalCount();", "public Integer getIsSuccess() {\n return isSuccess;\n }", "int getConditionalResponsesCount();", "long getInnerStatusCode();", "private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }", "long getRequestsCount();", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "int getStatMetadataCount();", "public int get_count();", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "public void incrementSuccessfulTrades() {\n successfulTrades++;\n }", "int getUserCount();", "int getUserCount();", "int getRequestsCount();", "int getRequestsCount();", "public int getTotalResponse() {\n return totalResponse;\n }", "public int getSuccessfulTradesCount() {\n int successfulTradesCount = 0;\n\n\n Iterator entries = tradesList.entrySet().iterator();\n while (entries.hasNext()) {\n Entry thisEntry = (Entry) entries.next();\n Trade tradeObj = (Trade) thisEntry.getValue();\n if (!(tradeObj.getStatus().equals(\"DECLINED\"))){\n successfulTradesCount++;\n }\n }\n return successfulTradesCount;\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int countByExample(UploadStateRegDTOExample example);", "int getNodeStatusListCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getErrorCount();", "Integer totalRetryAttempts();", "private int getPositiveCount(){\n return m_PositiveCount;\n }", "public long count() ;", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int countResults() \n {\n return itsResults_size;\n }", "String getLoginapihitcount();", "@Override\r\n\tpublic int count(Integer bno) {\n\t\treturn replyMapper.count(bno); \r\n\t}", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "int getStatusCode( );", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public boolean hasLoginapisuccessfulhitcount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n public void testInvokeCountValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n long result = CSJmxStats.invokeCountValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public static int getStatusCode() {\r\n\r\n\r\n\r\n\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\r\n\r\n\t\tint statuseCode=response.getStatusLine().getStatusCode();\r\n\r\n\t\tSystem.out.println(\"statuseCode= \"+statuseCode);\r\n\r\n\t\t//Assert.assertEquals(200,statuseCode);\r\n\r\n\t\treturn statuseCode;\r\n\r\n\t}", "Long count();", "Long count();" ]
[ "0.74099725", "0.72760844", "0.6929937", "0.6885632", "0.68235767", "0.68143314", "0.65206915", "0.65203357", "0.64987755", "0.644796", "0.6411383", "0.63794607", "0.6356029", "0.63070804", "0.6268397", "0.61547595", "0.61394924", "0.61332285", "0.61065745", "0.6090148", "0.6070754", "0.60441536", "0.60435396", "0.60435396", "0.60435396", "0.6032473", "0.6019359", "0.6018391", "0.60099864", "0.6009474", "0.6009096", "0.60055846", "0.6004122", "0.60032344", "0.599732", "0.5996844", "0.5996844", "0.59861165", "0.597225", "0.5972163", "0.59712183", "0.59712183", "0.5963531", "0.5957693", "0.5951999", "0.5950474", "0.59435874", "0.5941234", "0.5936628", "0.59355474", "0.59215", "0.5895763", "0.58925545", "0.58747864", "0.58605736", "0.585907", "0.58543855", "0.58541316", "0.58538586", "0.58538586", "0.5849617", "0.5849617", "0.5849168", "0.58488", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.583793", "0.583138", "0.5827254", "0.5822751", "0.5822751", "0.5822751", "0.5822751", "0.5822751", "0.581061", "0.5808484", "0.5807539", "0.58013064", "0.5798216", "0.5790601", "0.5790601", "0.5790601", "0.5790601", "0.5790601", "0.57815135", "0.57814264", "0.576891", "0.5766339", "0.57606757", "0.57597244", "0.5757869", "0.5756062", "0.5753445", "0.574967", "0.574967" ]
0.75031555
0
Count of failures. int32 failures = 3 [json_name = "failures"];
@java.lang.Override public int getFailures() { return failures_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int failed() {\n return this.failed;\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "int getErrorCount();", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "String getLoginapisuccessfulhitcount();", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "int getResponseCount();", "UnsignedInteger getDeliveryFailures();", "public int numberOfResult() throws Exception;", "public int getProblemCount();", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getStatusCount();", "public static int count() {\n\treturn errorCount;\n }", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int getSuccesses() {\n return successes.get();\n }", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "public String dlMaxFailures();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "Integer totalRetryAttempts();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "public int getMissedCallsCount();", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public int getNumberOfErrors() {\n return errors;\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getInvalidLoginCount();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "int getFieldViolationsCount();", "public int countTestCases() {\n return 1;\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "public int getErrorCountByRepeat() {\n\t\t\n\t\tif (!hasERR) {\n\t\t\treturn -1;\n\t\t}\n\t\ttry {\n\t\t\treturn getSegments().getByCodeAndIndex(ERR, 1).getFields().item(0).getNonEmptyCount();\n\t\t} catch (HL7V2Exception e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public Long getErr_count() {\n return err_count;\n }", "public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }", "long getMisses();", "public Builder setFailures(int value) {\n\n failures_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "long count() throws Exception;", "public final void setfailure_count(com.mendix.systemwideinterfaces.core.IContext context, Integer failure_count)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.failure_count.toString(), failure_count);\n\t}", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public int getErrorcount() {\n return errorcount;\n }", "public void setErrorcount(int value) {\n this.errorcount = value;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public Integer countRecordReturns();", "int getRetries();", "int getExceptionsCount();", "public int getMissCountNotFound() {\n return missCountNotFound;\n }", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "long getNumberOfComparisons();", "public int getErrorCount() {\n return this._errorCount;\n }", "public long getExceptionCount();", "public final void setfailure_count(Integer failure_count)\n\t{\n\t\tsetfailure_count(getContext(), failure_count);\n\t}", "public int getBadCount() {\n return badCount;\n }", "Set<Integer> getExpectedStatusCodes();", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "long getInnerStatusCode();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getStudentResponseCount();", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "public static void addFailCount(int count)\r\n\t{\r\n\t\tsynchronized(keywords)\r\n\t\t{\r\n\t\t\tfailCount += count;\r\n\t\t}//sync\r\n\t}", "public int getErrors() {\n return errors;\n }", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "public void setErrorCnt(Integer errorCnt) {\r\n this.errorCnt = errorCnt;\r\n }", "public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }", "int getNumberOfSpecifiedExceptions();", "private int getDataLength(String urlString, String name)\n throws RedmineException\n {\n final int[] result = new int[1];\n\n getData(urlString,name,0,1,new ParseElementHandler()\n {\n public void root(Element element)\n {\n result[0] = getIntAttribute(element,\"total_count\");\n }\n public void data(Element element)\n {\n }\n });\n if (Settings.debugFlag)\n {\n System.err.println(\"DEBUG: Get length '\"+urlString+\"': \"+result[0]);\n }\n\n return result[0];\n }", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "public int getErrors() {\n return errors;\n }", "private boolean hasFailures(Map item){\n if(item.containsKey(\"code\") && item.get(\"code\").equals(\"ACCEPTED\"))\n return false;\n return ((Integer)item.get(\"failuresCount\")) > 0;\n }", "public int runCount() {\n return testCount;\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "int getResultsCount();", "int getResultsCount();", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "int getDataCount();", "int getDataCount();" ]
[ "0.71257466", "0.70223546", "0.6900032", "0.6675016", "0.6659162", "0.6493751", "0.6474225", "0.64017606", "0.6368983", "0.6349418", "0.63140684", "0.6294408", "0.6293111", "0.6260251", "0.6191106", "0.6172947", "0.6155622", "0.611356", "0.61077017", "0.6106658", "0.60950434", "0.6080751", "0.6058938", "0.605833", "0.6057873", "0.6039431", "0.60366774", "0.6035097", "0.6011036", "0.59830815", "0.5982852", "0.5976193", "0.596449", "0.59589416", "0.591743", "0.5905409", "0.58948404", "0.5864539", "0.5850874", "0.58403784", "0.58324623", "0.58255833", "0.58248085", "0.58165", "0.5813063", "0.5807625", "0.58018106", "0.5793209", "0.57801914", "0.5774287", "0.57661474", "0.576405", "0.57591873", "0.5748052", "0.5739589", "0.5732705", "0.5727804", "0.5697873", "0.56887954", "0.56887954", "0.56887954", "0.56887954", "0.56887954", "0.56883335", "0.5683526", "0.56653947", "0.56469333", "0.5636813", "0.5634718", "0.56331986", "0.56277156", "0.5624335", "0.5623739", "0.56223136", "0.5613471", "0.5598985", "0.55981946", "0.5585723", "0.55822045", "0.5569576", "0.5569554", "0.55689865", "0.5567687", "0.5559895", "0.5547727", "0.55450284", "0.5543324", "0.5539313", "0.55294305", "0.55292946", "0.5518685", "0.55148447", "0.55088896", "0.5504168", "0.55037683", "0.549712", "0.549712", "0.54955", "0.5487514", "0.5487514" ]
0.70065063
2
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
@java.lang.Override public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() { return cases_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.6808429", "0.6736616", "0.6730065", "0.6591564", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.56234634", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5165718", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.71455115
0
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
@java.lang.Override public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> getCasesOrBuilderList() { return cases_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71442044", "0.67358345", "0.672894", "0.6590673", "0.65620327", "0.6487075", "0.6209915", "0.61823225", "0.5887776", "0.5786958", "0.5712062", "0.5623565", "0.56160635", "0.54786825", "0.5441033", "0.5405756", "0.5371656", "0.5229851", "0.51963955", "0.51653665", "0.5111451", "0.50893235", "0.50842875", "0.5065232", "0.5032767", "0.5019024", "0.49913406", "0.49828738", "0.4975382", "0.48987767", "0.48958236", "0.48834154", "0.4868133", "0.483942", "0.4827103", "0.482453", "0.48099095", "0.48025194", "0.4801244", "0.47915676", "0.47895947", "0.47418156", "0.47341", "0.4733351", "0.4725671", "0.47194734", "0.4712385", "0.4706358", "0.4703889", "0.4687662", "0.4680694", "0.46755874", "0.46675146", "0.46554348", "0.46471062", "0.4644674", "0.4643027", "0.4643027", "0.4640602", "0.4631152", "0.46236932", "0.46133175", "0.46111155", "0.46094188", "0.4606109", "0.4597787", "0.45902187", "0.45883262", "0.4587658", "0.4584751", "0.45666346", "0.45646346", "0.45643878", "0.4560822", "0.45575967", "0.45525423", "0.45471627", "0.45433155", "0.4535759", "0.45309907", "0.45303106", "0.45258147", "0.4517884", "0.45003718", "0.44983044", "0.44981885", "0.44951782", "0.4492438", "0.4484002", "0.44756925", "0.4474406", "0.4474406", "0.4473362", "0.44671988", "0.44654557", "0.44595176", "0.44569376", "0.445558", "0.44491112", "0.44478744" ]
0.68070793
1
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
@java.lang.Override public int getCasesCount() { return cases_.size(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71462464", "0.6808686", "0.6737788", "0.6731028", "0.65924656", "0.6563864", "0.6488953", "0.6210884", "0.6183896", "0.5885691", "0.57888055", "0.57139254", "0.5625376", "0.547988", "0.5442544", "0.54085755", "0.5372606", "0.5230635", "0.5197081", "0.51671946", "0.510978", "0.5089823", "0.5084244", "0.50679594", "0.50312924", "0.5021675", "0.49941212", "0.49847883", "0.49750975", "0.48978004", "0.48976552", "0.48862216", "0.48693472", "0.48416686", "0.48273635", "0.48255777", "0.48109972", "0.4803495", "0.4802028", "0.479082", "0.47890702", "0.474296", "0.47358513", "0.47317556", "0.47273868", "0.47172725", "0.47135413", "0.47060937", "0.47046244", "0.4688307", "0.46815988", "0.46731803", "0.46695727", "0.465344", "0.46494582", "0.46430746", "0.46422338", "0.46414542", "0.46414542", "0.462982", "0.46225554", "0.4613793", "0.46129748", "0.46088645", "0.46078232", "0.46000215", "0.4591678", "0.45898926", "0.4589475", "0.4586726", "0.45652896", "0.45647433", "0.45643845", "0.45585123", "0.45557302", "0.45527154", "0.45478633", "0.4539832", "0.4536519", "0.45339143", "0.45311883", "0.45223463", "0.451768", "0.45018563", "0.44982037", "0.44965097", "0.44964686", "0.44939965", "0.44864413", "0.44761768", "0.44743112", "0.4472725", "0.4472725", "0.44668123", "0.44643334", "0.44595462", "0.44580552", "0.44565102", "0.44501254", "0.44493365" ]
0.5618079
13
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
@java.lang.Override public build.buf.validate.conformance.harness.CaseResult getCases(int index) { return cases_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.7145195", "0.6807969", "0.6729669", "0.659123", "0.65623987", "0.64879346", "0.62100697", "0.6182761", "0.58872026", "0.5787895", "0.5713147", "0.5624194", "0.56165606", "0.54786986", "0.544181", "0.54080623", "0.53733116", "0.522919", "0.519705", "0.51660496", "0.5109959", "0.50900465", "0.50836885", "0.50670314", "0.503123", "0.5020655", "0.49927187", "0.49844474", "0.49738237", "0.4898274", "0.48971173", "0.48856637", "0.48682007", "0.48406413", "0.4826887", "0.48236978", "0.48103645", "0.48018175", "0.48016593", "0.47906768", "0.47886786", "0.4741624", "0.473414", "0.47335377", "0.47254053", "0.47176266", "0.47123063", "0.47049585", "0.47048345", "0.46869838", "0.4682914", "0.4673728", "0.46678227", "0.46548915", "0.46484363", "0.46440837", "0.46420175", "0.463995", "0.463995", "0.4631516", "0.46230292", "0.4612258", "0.46116593", "0.46082005", "0.4607586", "0.4599776", "0.45917913", "0.45888838", "0.4588493", "0.4587905", "0.4565536", "0.45649248", "0.45646334", "0.45598462", "0.4556236", "0.4551218", "0.4546381", "0.45405143", "0.45345244", "0.453399", "0.45317796", "0.4522661", "0.45166948", "0.45012861", "0.44979477", "0.44967186", "0.44963348", "0.44932276", "0.44861498", "0.44765398", "0.4472868", "0.4471444", "0.4471444", "0.4467171", "0.44646746", "0.4458223", "0.44572398", "0.4454425", "0.44483557", "0.444798" ]
0.6736193
2
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
@java.lang.Override public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder( int index) { return cases_.get(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71455115", "0.6808429", "0.6736616", "0.6730065", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.56234634", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5165718", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.6591564
4
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
@java.lang.Override public boolean hasFdset() { return fdset_ != null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "Map<String, OperationalSets> getSets();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "abstract Pipe.Schema<T> getPipeSchema();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.80707455", "0.79577595", "0.78611547", "0.77561176", "0.7373783", "0.69352245", "0.6738555", "0.6268911", "0.5991008", "0.5628408", "0.56079745", "0.5560486", "0.54970115", "0.54539925", "0.54385185", "0.5410454", "0.5250651", "0.5210665", "0.51606655", "0.5158801", "0.51321113", "0.51282257", "0.5113645", "0.5112927", "0.51019865", "0.5069878", "0.50661993", "0.50659645", "0.50659645", "0.50659317", "0.5061519", "0.5061519", "0.5054854", "0.5027902", "0.5011767", "0.5004254", "0.5002991", "0.4948302", "0.48890418", "0.48849976", "0.48682123", "0.47943133", "0.4793422", "0.47931904", "0.47866738", "0.47708526", "0.47687563", "0.476822", "0.47510597", "0.47277758", "0.46909755", "0.46904287", "0.4671745", "0.46717396", "0.467141", "0.46663254", "0.46494335", "0.46393463", "0.46384773", "0.4632811", "0.46108302", "0.45950884", "0.459346", "0.45926824", "0.45616406", "0.45564124", "0.45231935", "0.44954875", "0.44913086", "0.4490344", "0.44866595", "0.44806767", "0.44676363", "0.44402957", "0.44088325", "0.44053796", "0.44037172", "0.43903622", "0.43742225", "0.437209", "0.43605044", "0.43393925", "0.43376967", "0.4325704", "0.43225527", "0.43217337", "0.4319095", "0.43186983", "0.42949885", "0.42895985", "0.42765123", "0.4272721", "0.4271622", "0.42677373", "0.4263442", "0.42630273", "0.42625588", "0.42623234", "0.4261664", "0.4252138" ]
0.5777984
9
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
@java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() { return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "Map<String, OperationalSets> getSets();", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.8071193", "0.79580766", "0.77563316", "0.73736894", "0.69360244", "0.6738891", "0.62697285", "0.5991378", "0.5778549", "0.56277156", "0.5607594", "0.5560978", "0.5496489", "0.5453253", "0.5439221", "0.54111457", "0.52514094", "0.5212641", "0.51620764", "0.515931", "0.51327056", "0.5127426", "0.5114935", "0.5113807", "0.5101869", "0.5071185", "0.5067392", "0.50668526", "0.50668526", "0.5066564", "0.5062384", "0.5062384", "0.5054213", "0.5027269", "0.5013294", "0.50050426", "0.5001929", "0.4947908", "0.48897702", "0.48857152", "0.48675016", "0.479414", "0.47937828", "0.47915944", "0.47873417", "0.4771328", "0.47702506", "0.47696844", "0.47511792", "0.47288823", "0.46915594", "0.4691277", "0.4673272", "0.4672873", "0.46696144", "0.4667317", "0.46490514", "0.4640743", "0.46375164", "0.4632177", "0.46109104", "0.45953023", "0.45935345", "0.45911747", "0.45610613", "0.4555427", "0.45218223", "0.4497476", "0.44905213", "0.44896", "0.44878596", "0.448185", "0.44685113", "0.44413158", "0.4407974", "0.4407149", "0.44045892", "0.43900967", "0.4373054", "0.4370864", "0.43593043", "0.43384567", "0.4337928", "0.43259943", "0.43217838", "0.43204883", "0.4318559", "0.43182522", "0.42935386", "0.4290219", "0.427626", "0.42724216", "0.42704153", "0.42700985", "0.4263448", "0.42628276", "0.4262458", "0.42621827", "0.42620882", "0.42529997" ]
0.7861543
2
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
@java.lang.Override public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() { return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "public abstract IParser[] getParserOptionSet();", "String getRemoteSchema();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "Map<String, OperationalSets> getSets();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.8070944", "0.79583246", "0.78616315", "0.737467", "0.69361615", "0.6739388", "0.62701666", "0.5991875", "0.5778756", "0.56286025", "0.5609472", "0.55615175", "0.54971427", "0.5453658", "0.5438429", "0.54106045", "0.52515143", "0.5211936", "0.51610804", "0.5158578", "0.51326764", "0.51275975", "0.51141065", "0.5113021", "0.5100765", "0.5070557", "0.50672406", "0.5065987", "0.5065987", "0.5065491", "0.50615656", "0.50615656", "0.50555104", "0.5028617", "0.5013027", "0.5004343", "0.5001643", "0.4946622", "0.48889336", "0.48865002", "0.48662326", "0.47944856", "0.47933298", "0.47914326", "0.4785819", "0.47701037", "0.47694847", "0.4767694", "0.47510657", "0.47279346", "0.4690647", "0.46901944", "0.46731207", "0.4672428", "0.4669876", "0.46665046", "0.46491536", "0.46397105", "0.46383533", "0.4631566", "0.46110207", "0.45945945", "0.4591913", "0.4591768", "0.45611534", "0.45542592", "0.45239076", "0.4496131", "0.44912124", "0.44902602", "0.44871095", "0.44798326", "0.44666913", "0.44409868", "0.4408776", "0.44067", "0.4404835", "0.4389557", "0.4374553", "0.4370668", "0.4358992", "0.43376857", "0.43370053", "0.4325938", "0.4321773", "0.43211094", "0.43176678", "0.43169004", "0.42937595", "0.42893028", "0.42757374", "0.42719543", "0.4271879", "0.4269373", "0.42636484", "0.42620564", "0.42614594", "0.4261105", "0.42606774", "0.42515013" ]
0.7756512
3
Count of expected failures. int32 expected_failures = 6 [json_name = "expectedFailures"];
@java.lang.Override public int getExpectedFailures() { return expectedFailures_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "Set<Integer> getExpectedStatusCodes();", "public int expectedEntries() {\n\t\treturn message.getTotalExpectedEntries();\n\t}", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "public int countTestCases() {\n return 1;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "int getErrorCount();", "public int getHttpFailures() {\n return httpFailures.get();\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Schema(required = true, description = \"Expected number of proxies\")\n public Integer getExpectedProxiesCount() {\n return expectedProxiesCount;\n }", "long getNumberOfComparisons();", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "public int numberOfResult() throws Exception;", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public int failed() {\n return this.failed;\n }", "void assertTotalCntEquals(T key, int expected);", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "int getResponseCount();", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int numOfExpectedElements() {\n return config().getN();\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "private String getInvalidCountReport(Node node, int expectedCount)\n\t{\n\t\tint argLength = node.jjtGetNumChildren();\n\t\tNode[] args = new Node[argLength];\n\t\tfor (int i = 0; i < argLength; i++)\n\t\t{\n\t\t\targs[i] = node.jjtGetChild(i);\n\t\t}\n\t\treturn \"Parse Error: Item of type \" + node.getClass().getName()\n\t\t\t+ \" had incorrect children from parse. Expected \" + expectedCount\n\t\t\t+ \" got \" + args.length + \" \" + Arrays.asList(args);\n\t}", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "UnsignedInteger getDeliveryFailures();", "@Test\n public void getNumberOfHoursTest() {\n int expected = 152;\n\n assertEquals(\"The expected value of hours worked does not match the actual: \"\n , expected, e1.getNumberOfHours());\n\n }", "public int countTestList(TestParam param) throws Exception {\r\n return this.testMapper.countByExample(param);\r\n }", "public int getProblemCount();", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "public int getIndexExpected() {\n return indexExpected;\n }", "public int runCount() {\n return testCount;\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "@Override\n public int getTestCaseTotal() {\n return parameters.length;\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getResponsesCount();", "@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "@Test\n void verifyMetrics() throws IOException, InterruptedException {\n HttpRequest req = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(\"https://5f6trv8063.execute-api.us-east-1.amazonaws.com/default/VespaDocSearchLambda/?jsoncallback=?&query=ranking&ranking=documentation&locale=en-US&hits=1\"))\n .build();\n HttpResponse<String> res = httpClient.send(req, HttpResponse.BodyHandlers.ofString());\n\n assertEquals(200, res.statusCode());\n\n String body = res.body();\n long hitCount = new ObjectMapper().readTree(body.substring(2, body.length()-2)) // Strip ?( ); from JSON-P response\n .get(\"root\").get(\"fields\").get(\"totalCount\").asLong();\n assert(hitCount > 50);\n }", "@Test\n public void countTest() {\n // TODO: test count\n }", "int getFieldViolationsCount();", "Integer totalRetryAttempts();", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "int getStatusCount();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "@Test(groups = \"wso2.das4esb.stats\", description = \"Test total faults count in per-second table\")\n public void testSecondTableTotalErrorCount() throws Exception {\n int count = getCounts(TestConstants.ESB_STAT_PER_SECOND_ALL_TABLE, TestConstants.FAULT_COUNT, \"ALL\");\n Assert.assertEquals(count, NUMBER_OF_FAULTS*NUMBER_OF_PROXIES, \"Total faults count is incorrect\" +\n \" in per-second table.\");\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "public String dlMaxFailures();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "@Test\r\n\tpublic void testGetNumGoalsForDivisionError() {\r\n\t\tint numGoalsDivError = -1;\r\n\t\tassertEquals(numGoalsDivError, stats.getNumGoalsForDivision(\"By Zero Division\"));\r\n\t}", "public String getSuspectedCount() {\n return suspectedCount;\n }", "String getLoginapisuccessfulhitcount();", "public static int count() {\n\treturn errorCount;\n }", "public int getMissedCallsCount();", "public int getSuccesses() {\n return successes.get();\n }", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int getMockUpdatesCount();", "public int getNumberOfErrors() {\n return errors;\n }", "int getStudentResponseCount();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "public static long getTestCount() {\n return mTestCount;\n }", "@DisplayName(\"Get the number of edges that contains the graph and test if it is correct\")\n @Test\n public void testGetNumEdges() {\n Assertions.assertEquals(8, graph.getNumberEdges());\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "@Test\r\n public void testTotalNumberOfQuestion() {\r\n Application.loadQuestions();\r\n assertEquals(Application.allQuestions.size(), 2126);\r\n }", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "int getConditionalResponsesCount();", "int countByExample(UploadStateRegDTOExample example);", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }", "long getMisses();", "int getNumberOfSpecifiedExceptions();", "int getInvalidLoginCount();", "@Override\npublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\n}", "@ApiModelProperty(value = \"Count of skipped emails\")\r\n public Integer getSkippedCount() {\r\n return skippedCount;\r\n }", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }", "public Long getErr_count() {\n return err_count;\n }", "@Test\n public void testCount() throws Exception {\n System.out.println(\"count\");\n PrioridadRest instance = mokPrioridadRest;\n int expResult = 1;\n int result = instance.count();\n assertEquals(expResult, result);\n }", "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }" ]
[ "0.7323438", "0.7018506", "0.69022304", "0.68595016", "0.68132", "0.6711853", "0.6697956", "0.66506416", "0.6543173", "0.65298575", "0.6511837", "0.6409904", "0.6390555", "0.63503045", "0.6286573", "0.6198226", "0.6113843", "0.6057322", "0.6055753", "0.604966", "0.60485446", "0.6034703", "0.60002476", "0.5997624", "0.5941829", "0.5928302", "0.5914365", "0.5902717", "0.5900024", "0.58947605", "0.58930385", "0.5877018", "0.5871033", "0.58684295", "0.5852744", "0.5848277", "0.58443093", "0.58388644", "0.5837117", "0.58261144", "0.5823368", "0.5819973", "0.5811109", "0.580587", "0.57902044", "0.57873756", "0.5784004", "0.57790583", "0.57764906", "0.5774423", "0.57726437", "0.5766128", "0.57656336", "0.5760665", "0.5760091", "0.57491857", "0.5748693", "0.57484657", "0.5737796", "0.5737679", "0.572778", "0.5727735", "0.5689283", "0.5687202", "0.5685446", "0.5685095", "0.5683173", "0.5676762", "0.5670003", "0.5668064", "0.5649528", "0.56386834", "0.56261605", "0.56258106", "0.5617353", "0.5608642", "0.5605151", "0.55941564", "0.5593013", "0.5592275", "0.5579302", "0.5574457", "0.55743647", "0.55743647", "0.5570517", "0.5563453", "0.55587375", "0.5555943", "0.555507", "0.55533004", "0.5544783", "0.5541991", "0.5541821", "0.55365676", "0.55325174", "0.55324954", "0.5529798", "0.55278254", "0.5527383", "0.55224633" ]
0.741016
0
The suite name. string name = 1 [json_name = "name"];
public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } else { return (java.lang.String) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public String name() { return name; }", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6642981", "0.6079557", "0.6036509", "0.59381187", "0.59025806", "0.58852077", "0.5829086", "0.5825125", "0.5805266", "0.5742211", "0.57337993", "0.57142186", "0.5700014", "0.5636773", "0.56217206", "0.5620745", "0.5554129", "0.5550312", "0.5511781", "0.5499037", "0.54893035", "0.54870003", "0.54817593", "0.54746413", "0.5466498", "0.54597926", "0.5459783", "0.54594165", "0.5451568", "0.5434807", "0.54327285", "0.54046077", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53957164", "0.5394049", "0.5390746", "0.5387362", "0.53872174", "0.53864914", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186" ]
0.0
-1
The suite name. string name = 1 [json_name = "name"];
public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public String name() { return name; }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6642033", "0.60795814", "0.6035739", "0.59380233", "0.5901673", "0.5885311", "0.58281636", "0.5825144", "0.580573", "0.5742621", "0.5733609", "0.5714338", "0.5699769", "0.56370246", "0.56213087", "0.562106", "0.5554539", "0.55507565", "0.5511519", "0.54985774", "0.5489365", "0.5487217", "0.5482214", "0.54741377", "0.5467846", "0.5460127", "0.5459834", "0.54593205", "0.5451525", "0.5434396", "0.54328185", "0.5404646", "0.53996515", "0.53996515", "0.53996515", "0.53996515", "0.53996515", "0.53996515", "0.53996515", "0.53996515", "0.53996515", "0.539587", "0.53942335", "0.53920823", "0.5387357", "0.5387067", "0.5386635", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204", "0.53828204" ]
0.0
-1
The suite name. string name = 1 [json_name = "name"];
public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public String name() { return name; }", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6644063", "0.60784054", "0.6038053", "0.59384155", "0.5903947", "0.58833206", "0.5832073", "0.58248216", "0.58059764", "0.57405245", "0.5731937", "0.57139933", "0.5698947", "0.56355137", "0.5621289", "0.561882", "0.555239", "0.55508775", "0.55107623", "0.54997575", "0.54889053", "0.54870605", "0.5479626", "0.5474657", "0.5462658", "0.54622614", "0.54559726", "0.5455649", "0.5451154", "0.5434904", "0.54320407", "0.5404305", "0.5395436", "0.5395436", "0.5395436", "0.5395436", "0.5395436", "0.5395436", "0.5395436", "0.5395436", "0.5395436", "0.5393937", "0.53917205", "0.53907204", "0.5384308", "0.5383895", "0.53824615", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894", "0.53788894" ]
0.0
-1
The suite name. string name = 1 [json_name = "name"];
public Builder clearName() { name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "public String name() { return name; }", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6642929", "0.6079845", "0.60374844", "0.59383863", "0.5903584", "0.5883576", "0.5829735", "0.5824306", "0.58054423", "0.57412934", "0.5733049", "0.5713644", "0.5697946", "0.5636528", "0.56209356", "0.56196374", "0.55528975", "0.5550572", "0.5512472", "0.55000186", "0.54897475", "0.54872435", "0.5480189", "0.54745895", "0.54655343", "0.54594904", "0.5457283", "0.5457193", "0.5450622", "0.5434666", "0.5431959", "0.5403839", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.539711", "0.5393556", "0.5392972", "0.53907007", "0.5385736", "0.53843087", "0.53837824", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538", "0.5379538" ]
0.0
-1
The suite name. string name = 1 [json_name = "name"];
public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@VisibleForTesting\n String getSuiteName() {\n String suiteName = null;\n if (mModuleContext == null) {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n } else {\n List<String> testSuiteTags = mModuleContext.getConfigurationDescriptor().\n getSuiteTags();\n if (!testSuiteTags.isEmpty()) {\n if (testSuiteTags.size() >= 2) {\n CLog.i(\"More than 2 test-suite-tag are defined. test-suite-tag: \" +\n testSuiteTags);\n }\n suiteName = testSuiteTags.get(0).toLowerCase();\n CLog.i(\"Using %s from test suite tags to get value from dynamic config\", suiteName);\n } else {\n suiteName = TestSuiteInfo.getInstance().getName().toLowerCase();\n CLog.i(\"Using %s from TestSuiteInfo to get value from dynamic config\", suiteName);\n }\n }\n return suiteName;\n }", "public String getTestname() {\n return testname;\n }", "public void setCalSuiteName(final String val) {\n calSuiteName = val;\n }", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public String getCalSuiteName() {\n return calSuiteName;\n }", "@ApiModelProperty(required = true, value = \"The name of the test.\")\n public String getName() {\n return name;\n }", "@Override\n public Description getDescription() {\n return suiteDescription;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "@Test\n void getName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Override\n\tpublic String getToolName() {\n\t\treturn name;\n\t}", "@Test\n void setName() {\n assertEquals(\"Process\", new Process() {{\n setName(\"Process\");\n }}.getName());\n }", "public String getName() {\r\n\t\treturn \"[\" + teamNo + \"] \" + name;\r\n\t}", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestName() {\n return testURL;\n }", "public String getTestSetName() {\n return this.testSetName;\n }", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "public void setMainName (String name){\n this.name = name;\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public String getName(JSONObject json) throws JSONException {\n return json.getString(\"name\");\n }", "public String createSuite(String suiteName, List<String> tests) throws Exception{\n\t\treturn priorj.createSuite(suiteName, tests);\n\t}", "@Override\n\t\t\tpublic String getName() {\n\t\t\t\treturn name;\n\t\t\t}", "public String name() { return name; }", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "public String getName() { return name; }", "@Override\r\n\tpublic String getName() {\r\n\t\treturn name;\r\n\t}", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n\tvoid testGetAllByName() {\n\t\tList<Plant> plant = service.getAllByName(\"Tulsi\");\n\t\tString name = plant.get(0).getName();\n\t\tassertEquals(\"Tulsi\", name);\n\t}", "public String name() {\n this.use();\n\n return name;\n }", "@Override\n\tString getName() {\n\t\treturn \"Planet\"+\": \"+name;\n\t}", "@Override\r\n\tpublic String getName() {\n\t\treturn name;\r\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.6642981", "0.6079557", "0.6036509", "0.59381187", "0.59025806", "0.58852077", "0.5829086", "0.5825125", "0.5805266", "0.5742211", "0.57337993", "0.57142186", "0.5700014", "0.5636773", "0.56217206", "0.5620745", "0.5554129", "0.5550312", "0.5511781", "0.5499037", "0.54893035", "0.54870003", "0.54817593", "0.54746413", "0.5466498", "0.54597926", "0.5459783", "0.54594165", "0.5451568", "0.5434807", "0.54327285", "0.54046077", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53993213", "0.53957164", "0.5394049", "0.5390746", "0.5387362", "0.53872174", "0.53864914", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186", "0.5382186" ]
0.0
-1
Count of successes. int32 successes = 2 [json_name = "successes"];
@java.lang.Override public int getSuccesses() { return successes_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "public int getSuccesses() {\n return successes.get();\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getStatusCount();", "String getLoginapisuccessfulhitcount();", "int getResponseCount();", "int getStudentResponseCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Builder setSuccesses(int value) {\n\n successes_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public int getNumRespAtracc();", "public int getSuccess() {\n return success;\n }", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "public Integer countRecordReturns();", "public int getStatusCount() {\n return status_.size();\n }", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "private void executeCountQuery(JsonObject json, HttpServerResponse response) {\n database.countQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Count Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Count Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected int countOfStatus(final Player player, final String status) {\r\n int hits = 0;\r\n String playerGFString = player.getGamefield();\r\n GameField playerGF = JsonConverter.convertStringToGamefield(playerGFString);\r\n for (Box box : playerGF.getGameField()) {\r\n if(box.getStatus().equals(status)){\r\n hits++;\r\n }\r\n } \r\n return hits;\r\n }", "public int numberOfResult() throws Exception;", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public int getStatusCount() {\n return status_.size();\n }", "public static int count() {\n\treturn errorCount;\n }", "@Override\n public abstract long getResponseCount();", "long getTotalAcceptCount();", "long count() throws Exception;", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int succeeded() {\n return this.succeeded;\n }", "public int getTotalReturnCount(){\n return totalReturnCount;\n }", "public int countByStatus(int status);", "int getResultsCount();", "int getResultsCount();", "long countByExample(StatusRepliesExample example);", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "boolean hasLoginapisuccessfulhitcount();", "Integer count();", "Integer count();", "public Integer getIfsuccess() {\n return ifsuccess;\n }", "int getTotalCount();", "public Integer getIsSuccess() {\n return isSuccess;\n }", "int getConditionalResponsesCount();", "long getInnerStatusCode();", "private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }", "long getRequestsCount();", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "int getStatMetadataCount();", "public int get_count();", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "public void incrementSuccessfulTrades() {\n successfulTrades++;\n }", "int getUserCount();", "int getUserCount();", "int getRequestsCount();", "int getRequestsCount();", "public int getTotalResponse() {\n return totalResponse;\n }", "public int getSuccessfulTradesCount() {\n int successfulTradesCount = 0;\n\n\n Iterator entries = tradesList.entrySet().iterator();\n while (entries.hasNext()) {\n Entry thisEntry = (Entry) entries.next();\n Trade tradeObj = (Trade) thisEntry.getValue();\n if (!(tradeObj.getStatus().equals(\"DECLINED\"))){\n successfulTradesCount++;\n }\n }\n return successfulTradesCount;\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int countByExample(UploadStateRegDTOExample example);", "int getNodeStatusListCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getErrorCount();", "Integer totalRetryAttempts();", "private int getPositiveCount(){\n return m_PositiveCount;\n }", "public long count() ;", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int countResults() \n {\n return itsResults_size;\n }", "String getLoginapihitcount();", "@Override\r\n\tpublic int count(Integer bno) {\n\t\treturn replyMapper.count(bno); \r\n\t}", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "int getStatusCode( );", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public boolean hasLoginapisuccessfulhitcount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n public void testInvokeCountValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n long result = CSJmxStats.invokeCountValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public static int getStatusCode() {\r\n\r\n\r\n\r\n\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\r\n\r\n\t\tint statuseCode=response.getStatusLine().getStatusCode();\r\n\r\n\t\tSystem.out.println(\"statuseCode= \"+statuseCode);\r\n\r\n\t\t//Assert.assertEquals(200,statuseCode);\r\n\r\n\t\treturn statuseCode;\r\n\r\n\t}", "Long count();", "Long count();" ]
[ "0.75031555", "0.72760844", "0.6929937", "0.6885632", "0.68235767", "0.68143314", "0.65206915", "0.65203357", "0.64987755", "0.644796", "0.6411383", "0.63794607", "0.6356029", "0.63070804", "0.6268397", "0.61547595", "0.61394924", "0.61332285", "0.61065745", "0.6090148", "0.6070754", "0.60441536", "0.60435396", "0.60435396", "0.60435396", "0.6032473", "0.6019359", "0.6018391", "0.60099864", "0.6009474", "0.6009096", "0.60055846", "0.6004122", "0.60032344", "0.599732", "0.5996844", "0.5996844", "0.59861165", "0.597225", "0.5972163", "0.59712183", "0.59712183", "0.5963531", "0.5957693", "0.5951999", "0.5950474", "0.59435874", "0.5941234", "0.5936628", "0.59355474", "0.59215", "0.5895763", "0.58925545", "0.58747864", "0.58605736", "0.585907", "0.58543855", "0.58541316", "0.58538586", "0.58538586", "0.5849617", "0.5849617", "0.5849168", "0.58488", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.5839421", "0.583793", "0.583138", "0.5827254", "0.5822751", "0.5822751", "0.5822751", "0.5822751", "0.5822751", "0.581061", "0.5808484", "0.5807539", "0.58013064", "0.5798216", "0.5790601", "0.5790601", "0.5790601", "0.5790601", "0.5790601", "0.57815135", "0.57814264", "0.576891", "0.5766339", "0.57606757", "0.57597244", "0.5757869", "0.5756062", "0.5753445", "0.574967", "0.574967" ]
0.74099725
1
Count of successes. int32 successes = 2 [json_name = "successes"];
public Builder setSuccesses(int value) { successes_ = value; bitField0_ |= 0x00000002; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "public int getSuccesses() {\n return successes.get();\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getStatusCount();", "String getLoginapisuccessfulhitcount();", "int getResponseCount();", "int getStudentResponseCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public int getNumRespAtracc();", "public int getSuccess() {\n return success;\n }", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "public Integer countRecordReturns();", "public int getStatusCount() {\n return status_.size();\n }", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "private void executeCountQuery(JsonObject json, HttpServerResponse response) {\n database.countQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Count Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Count Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected int countOfStatus(final Player player, final String status) {\r\n int hits = 0;\r\n String playerGFString = player.getGamefield();\r\n GameField playerGF = JsonConverter.convertStringToGamefield(playerGFString);\r\n for (Box box : playerGF.getGameField()) {\r\n if(box.getStatus().equals(status)){\r\n hits++;\r\n }\r\n } \r\n return hits;\r\n }", "public int numberOfResult() throws Exception;", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public static int count() {\n\treturn errorCount;\n }", "public int getStatusCount() {\n return status_.size();\n }", "long count() throws Exception;", "long getTotalAcceptCount();", "@Override\n public abstract long getResponseCount();", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getTotalReturnCount(){\n return totalReturnCount;\n }", "public int succeeded() {\n return this.succeeded;\n }", "public int countByStatus(int status);", "int getResultsCount();", "int getResultsCount();", "long countByExample(StatusRepliesExample example);", "Integer count();", "Integer count();", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "boolean hasLoginapisuccessfulhitcount();", "public Integer getIfsuccess() {\n return ifsuccess;\n }", "int getTotalCount();", "public Integer getIsSuccess() {\n return isSuccess;\n }", "int getConditionalResponsesCount();", "long getInnerStatusCode();", "private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }", "long getRequestsCount();", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "int getStatMetadataCount();", "public int get_count();", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "public void incrementSuccessfulTrades() {\n successfulTrades++;\n }", "int getUserCount();", "int getUserCount();", "public int getSuccessfulTradesCount() {\n int successfulTradesCount = 0;\n\n\n Iterator entries = tradesList.entrySet().iterator();\n while (entries.hasNext()) {\n Entry thisEntry = (Entry) entries.next();\n Trade tradeObj = (Trade) thisEntry.getValue();\n if (!(tradeObj.getStatus().equals(\"DECLINED\"))){\n successfulTradesCount++;\n }\n }\n return successfulTradesCount;\n }", "int getRequestsCount();", "int getRequestsCount();", "public int getTotalResponse() {\n return totalResponse;\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int countByExample(UploadStateRegDTOExample example);", "int getNodeStatusListCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getErrorCount();", "Integer totalRetryAttempts();", "private int getPositiveCount(){\n return m_PositiveCount;\n }", "public long count() ;", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int countResults() \n {\n return itsResults_size;\n }", "String getLoginapihitcount();", "@Override\r\n\tpublic int count(Integer bno) {\n\t\treturn replyMapper.count(bno); \r\n\t}", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "int getStatusCode( );", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public boolean hasLoginapisuccessfulhitcount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n public void testInvokeCountValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n long result = CSJmxStats.invokeCountValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public static int getStatusCode() {\r\n\r\n\r\n\r\n\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\r\n\r\n\t\tint statuseCode=response.getStatusLine().getStatusCode();\r\n\r\n\t\tSystem.out.println(\"statuseCode= \"+statuseCode);\r\n\r\n\t\t//Assert.assertEquals(200,statuseCode);\r\n\r\n\t\treturn statuseCode;\r\n\r\n\t}", "Long count();", "Long count();" ]
[ "0.7502948", "0.74097353", "0.7275962", "0.69295526", "0.68851024", "0.6822066", "0.6813086", "0.6519998", "0.65190595", "0.64979255", "0.644664", "0.6377594", "0.63544524", "0.63061017", "0.6268754", "0.6153729", "0.6140714", "0.61334217", "0.6105057", "0.6088878", "0.60709244", "0.60452425", "0.6043917", "0.6043917", "0.6043917", "0.603185", "0.6018619", "0.6018276", "0.6011027", "0.60097665", "0.6008911", "0.60042757", "0.6003324", "0.6002994", "0.5997185", "0.5997003", "0.5997003", "0.5985586", "0.5972963", "0.5972963", "0.59726816", "0.5970885", "0.5962045", "0.59584314", "0.59506375", "0.5949729", "0.5942332", "0.5940377", "0.5935638", "0.593352", "0.5921271", "0.58957297", "0.5890899", "0.58763915", "0.5860117", "0.58577734", "0.58547103", "0.5854435", "0.5853724", "0.5853724", "0.58497673", "0.58485246", "0.58485246", "0.5847532", "0.58408284", "0.58408284", "0.58408284", "0.58408284", "0.58408284", "0.58408284", "0.58408284", "0.5838143", "0.58296514", "0.58263505", "0.58222085", "0.58222085", "0.58222085", "0.58222085", "0.58222085", "0.58101434", "0.58085847", "0.58072877", "0.5801308", "0.5798771", "0.57902664", "0.57902664", "0.57902664", "0.57902664", "0.57902664", "0.57815194", "0.5779671", "0.57681006", "0.5765803", "0.57591146", "0.5758887", "0.5756812", "0.57557535", "0.57525915", "0.57511324", "0.57511324" ]
0.6410353
11
Count of successes. int32 successes = 2 [json_name = "successes"];
public Builder clearSuccesses() { bitField0_ = (bitField0_ & ~0x00000002); successes_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "public int getSuccesses() {\n return successes.get();\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getStatusCount();", "String getLoginapisuccessfulhitcount();", "int getResponseCount();", "int getStudentResponseCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public Builder setSuccesses(int value) {\n\n successes_ = value;\n bitField0_ |= 0x00000002;\n onChanged();\n return this;\n }", "public int getNumRespAtracc();", "public int getSuccess() {\n return success;\n }", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "public Integer countRecordReturns();", "public int getStatusCount() {\n return status_.size();\n }", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "private void executeCountQuery(JsonObject json, HttpServerResponse response) {\n database.countQuery(json, handler -> {\n if (handler.succeeded()) {\n LOGGER.info(\"Success: Count Success\");\n handleSuccessResponse(response, ResponseType.Ok.getCode(),\n handler.result().toString());\n } else if (handler.failed()) {\n LOGGER.error(\"Fail: Count Fail\");\n processBackendResponse(response, handler.cause().getMessage());\n }\n });\n }", "public static Integer getStatusCode() {\n Response res = (Response) Serenity.getCurrentSession().get(\"apiResponse\");\n return res.then().extract().statusCode();\n //return SerenityRest.then().extract().statusCode();\n }", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "protected int countOfStatus(final Player player, final String status) {\r\n int hits = 0;\r\n String playerGFString = player.getGamefield();\r\n GameField playerGF = JsonConverter.convertStringToGamefield(playerGFString);\r\n for (Box box : playerGF.getGameField()) {\r\n if(box.getStatus().equals(status)){\r\n hits++;\r\n }\r\n } \r\n return hits;\r\n }", "public int numberOfResult() throws Exception;", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public static int count() {\n\treturn errorCount;\n }", "public int getStatusCount() {\n return status_.size();\n }", "long count() throws Exception;", "long getTotalAcceptCount();", "@Override\n public abstract long getResponseCount();", "public com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n loginapisuccessfulhitcount_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getTotalReturnCount(){\n return totalReturnCount;\n }", "public int succeeded() {\n return this.succeeded;\n }", "int getResultsCount();", "int getResultsCount();", "public int countByStatus(int status);", "long countByExample(StatusRepliesExample example);", "Integer count();", "Integer count();", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "boolean hasLoginapisuccessfulhitcount();", "public Integer getIfsuccess() {\n return ifsuccess;\n }", "int getTotalCount();", "public Integer getIsSuccess() {\n return isSuccess;\n }", "int getConditionalResponsesCount();", "long getInnerStatusCode();", "private void increaseReconcileCount(final boolean isSuccess) {\n final SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_AND_TIME_FORMAT);\n InstanceIdentifier<ReconcileCounter> instanceIdentifier = InstanceIdentifier\n .builder(ReconciliationCounter.class).child(ReconcileCounter.class,\n new ReconcileCounterKey(nodeId)).build();\n ReadWriteTransaction tx = broker.newReadWriteTransaction();\n Optional<ReconcileCounter> count = getReconciliationCount(tx, instanceIdentifier);\n ReconcileCounterBuilder counterBuilder = new ReconcileCounterBuilder()\n .withKey(new ReconcileCounterKey(nodeId))\n .setLastRequestTime(new DateAndTime(simpleDateFormat.format(new Date())));\n\n if (isSuccess) {\n if (count.isPresent()) {\n long successCount = count.orElseThrow().getSuccessCount().toJava();\n counterBuilder.setSuccessCount(Uint32.valueOf(++successCount));\n LOG.debug(\"Reconcile success count {} for the node: {} \", successCount, nodeId);\n } else {\n counterBuilder.setSuccessCount(Uint32.ONE);\n }\n } else if (count.isPresent()) {\n long failureCount = count.orElseThrow().getFailureCount().toJava();\n counterBuilder.setFailureCount(Uint32.valueOf(++failureCount));\n LOG.debug(\"Reconcile failure count {} for the node: {} \", failureCount, nodeId);\n } else {\n counterBuilder.setFailureCount(Uint32.ONE);\n }\n try {\n tx.mergeParentStructureMerge(LogicalDatastoreType.OPERATIONAL, instanceIdentifier,\n counterBuilder.build());\n tx.commit().get();\n } catch (InterruptedException | ExecutionException e) {\n LOG.error(\"Exception while submitting counter for {}\", nodeId, e);\n }\n }", "long getRequestsCount();", "public List<Integer> getSuccessCodes() {\n return successCodes;\n }", "int getStatMetadataCount();", "public int get_count();", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "int getUserCount();", "int getUserCount();", "public void incrementSuccessfulTrades() {\n successfulTrades++;\n }", "int getRequestsCount();", "int getRequestsCount();", "public int getSuccessfulTradesCount() {\n int successfulTradesCount = 0;\n\n\n Iterator entries = tradesList.entrySet().iterator();\n while (entries.hasNext()) {\n Entry thisEntry = (Entry) entries.next();\n Trade tradeObj = (Trade) thisEntry.getValue();\n if (!(tradeObj.getStatus().equals(\"DECLINED\"))){\n successfulTradesCount++;\n }\n }\n return successfulTradesCount;\n }", "public int getTotalResponse() {\n return totalResponse;\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int countByExample(UploadStateRegDTOExample example);", "int getNodeStatusListCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "int getDataCount();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getErrorCount();", "Integer totalRetryAttempts();", "private int getPositiveCount(){\n return m_PositiveCount;\n }", "public long count() ;", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public int countResults() \n {\n return itsResults_size;\n }", "String getLoginapihitcount();", "@Override\r\n\tpublic int count(Integer bno) {\n\t\treturn replyMapper.count(bno); \r\n\t}", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "int getStatusCode( );", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public boolean hasLoginapisuccessfulhitcount() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Test\n public void testInvokeCountValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n long result = CSJmxStats.invokeCountValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public static int getStatusCode() {\r\n\r\n\r\n\r\n\t\tCloseableHttpResponse response= postSoapRequest(\"getDealList_Request\",baseURI);\r\n\r\n\r\n\r\n\t\tint statuseCode=response.getStatusLine().getStatusCode();\r\n\r\n\t\tSystem.out.println(\"statuseCode= \"+statuseCode);\r\n\r\n\t\t//Assert.assertEquals(200,statuseCode);\r\n\r\n\t\treturn statuseCode;\r\n\r\n\t}", "Long count();", "Long count();" ]
[ "0.7502581", "0.74094296", "0.7275695", "0.6929845", "0.6885963", "0.682279", "0.6814598", "0.65210277", "0.6519387", "0.6498994", "0.6446947", "0.6409362", "0.6378911", "0.63543737", "0.6306071", "0.62692624", "0.6154646", "0.6140317", "0.61342424", "0.61055696", "0.60891163", "0.6071312", "0.604578", "0.6044883", "0.6044883", "0.6044883", "0.6032167", "0.6019667", "0.60192466", "0.6011059", "0.6010502", "0.60102797", "0.6004545", "0.6004238", "0.6002877", "0.59978586", "0.59978586", "0.59975445", "0.5985559", "0.59737194", "0.59737194", "0.59733105", "0.59710884", "0.59624064", "0.59595305", "0.59506744", "0.59504366", "0.5942517", "0.5940502", "0.59370494", "0.59335005", "0.59221214", "0.5897271", "0.5892439", "0.58765125", "0.5860738", "0.5857818", "0.5855534", "0.5854814", "0.5854814", "0.585388", "0.58500826", "0.58500826", "0.5849507", "0.5849102", "0.58412135", "0.58412135", "0.58412135", "0.58412135", "0.58412135", "0.58412135", "0.58412135", "0.5838925", "0.58312035", "0.58274716", "0.58238685", "0.58238685", "0.58238685", "0.58238685", "0.58238685", "0.58099854", "0.5809673", "0.5807355", "0.58017284", "0.5799613", "0.57908744", "0.57908744", "0.57908744", "0.57908744", "0.57908744", "0.5782331", "0.5781346", "0.5769543", "0.57672685", "0.57595724", "0.575932", "0.57569355", "0.5756349", "0.57528555", "0.5751265", "0.5751265" ]
0.0
-1
Count of failures. int32 failures = 3 [json_name = "failures"];
@java.lang.Override public int getFailures() { return failures_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int failed() {\n return this.failed;\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "int getErrorCount();", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "String getLoginapisuccessfulhitcount();", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "int getResponseCount();", "public int numberOfResult() throws Exception;", "UnsignedInteger getDeliveryFailures();", "public int getProblemCount();", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getStatusCount();", "public static int count() {\n\treturn errorCount;\n }", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int getSuccesses() {\n return successes.get();\n }", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "public String dlMaxFailures();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "Integer totalRetryAttempts();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "public int getMissedCallsCount();", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public int getNumberOfErrors() {\n return errors;\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getInvalidLoginCount();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "int getFieldViolationsCount();", "public int countTestCases() {\n return 1;\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "public int getErrorCountByRepeat() {\n\t\t\n\t\tif (!hasERR) {\n\t\t\treturn -1;\n\t\t}\n\t\ttry {\n\t\t\treturn getSegments().getByCodeAndIndex(ERR, 1).getFields().item(0).getNonEmptyCount();\n\t\t} catch (HL7V2Exception e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public Long getErr_count() {\n return err_count;\n }", "public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }", "long getMisses();", "public Builder setFailures(int value) {\n\n failures_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "long count() throws Exception;", "public final void setfailure_count(com.mendix.systemwideinterfaces.core.IContext context, Integer failure_count)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.failure_count.toString(), failure_count);\n\t}", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public int getErrorcount() {\n return errorcount;\n }", "public void setErrorcount(int value) {\n this.errorcount = value;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public Integer countRecordReturns();", "int getRetries();", "int getExceptionsCount();", "public int getMissCountNotFound() {\n return missCountNotFound;\n }", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "long getNumberOfComparisons();", "public int getErrorCount() {\n return this._errorCount;\n }", "public long getExceptionCount();", "public int getBadCount() {\n return badCount;\n }", "public final void setfailure_count(Integer failure_count)\n\t{\n\t\tsetfailure_count(getContext(), failure_count);\n\t}", "Set<Integer> getExpectedStatusCodes();", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "long getInnerStatusCode();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getStudentResponseCount();", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "public int getErrors() {\n return errors;\n }", "public static void addFailCount(int count)\r\n\t{\r\n\t\tsynchronized(keywords)\r\n\t\t{\r\n\t\t\tfailCount += count;\r\n\t\t}//sync\r\n\t}", "public void setErrorCnt(Integer errorCnt) {\r\n this.errorCnt = errorCnt;\r\n }", "public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }", "int getNumberOfSpecifiedExceptions();", "private int getDataLength(String urlString, String name)\n throws RedmineException\n {\n final int[] result = new int[1];\n\n getData(urlString,name,0,1,new ParseElementHandler()\n {\n public void root(Element element)\n {\n result[0] = getIntAttribute(element,\"total_count\");\n }\n public void data(Element element)\n {\n }\n });\n if (Settings.debugFlag)\n {\n System.err.println(\"DEBUG: Get length '\"+urlString+\"': \"+result[0]);\n }\n\n return result[0];\n }", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "public int getErrors() {\n return errors;\n }", "private boolean hasFailures(Map item){\n if(item.containsKey(\"code\") && item.get(\"code\").equals(\"ACCEPTED\"))\n return false;\n return ((Integer)item.get(\"failuresCount\")) > 0;\n }", "public int runCount() {\n return testCount;\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "int getResultsCount();", "int getResultsCount();", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "int getDataCount();", "int getDataCount();" ]
[ "0.7124639", "0.7022484", "0.70050955", "0.66736305", "0.66573864", "0.64940614", "0.6473349", "0.6402504", "0.6367592", "0.6348643", "0.63133264", "0.62948346", "0.6292244", "0.62597424", "0.61918014", "0.617448", "0.6155697", "0.6116449", "0.61083776", "0.6105844", "0.60950977", "0.60815114", "0.60613924", "0.6059198", "0.60572", "0.6040354", "0.60375994", "0.6034286", "0.60101926", "0.59845555", "0.5982381", "0.5977724", "0.5964016", "0.5958983", "0.59184766", "0.59052813", "0.5895592", "0.5867301", "0.5853018", "0.5840832", "0.58311945", "0.58263314", "0.5826025", "0.5816504", "0.58143777", "0.5806902", "0.5801617", "0.57922894", "0.5780005", "0.57730246", "0.57661647", "0.57608193", "0.57591635", "0.5749538", "0.57371026", "0.5732631", "0.57276857", "0.5696555", "0.5690227", "0.5690227", "0.5690227", "0.5690227", "0.5690227", "0.56898475", "0.56834525", "0.56658053", "0.5646102", "0.5638243", "0.5637433", "0.563261", "0.5627963", "0.5623079", "0.5622341", "0.5622005", "0.5613866", "0.5599636", "0.5599381", "0.55885804", "0.5583745", "0.5570737", "0.556842", "0.5567581", "0.5565777", "0.5558429", "0.55477834", "0.55467975", "0.5545379", "0.5536628", "0.5530017", "0.55292445", "0.5519597", "0.5513765", "0.55072623", "0.55061245", "0.55038154", "0.54994226", "0.54994226", "0.54959786", "0.54900885", "0.54900885" ]
0.68986917
3
Count of failures. int32 failures = 3 [json_name = "failures"];
public Builder setFailures(int value) { failures_ = value; bitField0_ |= 0x00000004; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int failed() {\n return this.failed;\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "int getErrorCount();", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "String getLoginapisuccessfulhitcount();", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "int getResponseCount();", "public int numberOfResult() throws Exception;", "UnsignedInteger getDeliveryFailures();", "public int getProblemCount();", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getStatusCount();", "public static int count() {\n\treturn errorCount;\n }", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int getSuccesses() {\n return successes.get();\n }", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "public String dlMaxFailures();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "Integer totalRetryAttempts();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "public int getMissedCallsCount();", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public int getNumberOfErrors() {\n return errors;\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getInvalidLoginCount();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "int getFieldViolationsCount();", "public int countTestCases() {\n return 1;\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "public int getErrorCountByRepeat() {\n\t\t\n\t\tif (!hasERR) {\n\t\t\treturn -1;\n\t\t}\n\t\ttry {\n\t\t\treturn getSegments().getByCodeAndIndex(ERR, 1).getFields().item(0).getNonEmptyCount();\n\t\t} catch (HL7V2Exception e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public Long getErr_count() {\n return err_count;\n }", "public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }", "long getMisses();", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "long count() throws Exception;", "public final void setfailure_count(com.mendix.systemwideinterfaces.core.IContext context, Integer failure_count)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.failure_count.toString(), failure_count);\n\t}", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public int getErrorcount() {\n return errorcount;\n }", "public void setErrorcount(int value) {\n this.errorcount = value;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public Integer countRecordReturns();", "int getRetries();", "int getExceptionsCount();", "public int getMissCountNotFound() {\n return missCountNotFound;\n }", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "long getNumberOfComparisons();", "public int getErrorCount() {\n return this._errorCount;\n }", "public long getExceptionCount();", "public int getBadCount() {\n return badCount;\n }", "public final void setfailure_count(Integer failure_count)\n\t{\n\t\tsetfailure_count(getContext(), failure_count);\n\t}", "Set<Integer> getExpectedStatusCodes();", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "long getInnerStatusCode();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getStudentResponseCount();", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "public int getErrors() {\n return errors;\n }", "public static void addFailCount(int count)\r\n\t{\r\n\t\tsynchronized(keywords)\r\n\t\t{\r\n\t\t\tfailCount += count;\r\n\t\t}//sync\r\n\t}", "public void setErrorCnt(Integer errorCnt) {\r\n this.errorCnt = errorCnt;\r\n }", "public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }", "int getNumberOfSpecifiedExceptions();", "private int getDataLength(String urlString, String name)\n throws RedmineException\n {\n final int[] result = new int[1];\n\n getData(urlString,name,0,1,new ParseElementHandler()\n {\n public void root(Element element)\n {\n result[0] = getIntAttribute(element,\"total_count\");\n }\n public void data(Element element)\n {\n }\n });\n if (Settings.debugFlag)\n {\n System.err.println(\"DEBUG: Get length '\"+urlString+\"': \"+result[0]);\n }\n\n return result[0];\n }", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "public int getErrors() {\n return errors;\n }", "private boolean hasFailures(Map item){\n if(item.containsKey(\"code\") && item.get(\"code\").equals(\"ACCEPTED\"))\n return false;\n return ((Integer)item.get(\"failuresCount\")) > 0;\n }", "public int runCount() {\n return testCount;\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "int getResultsCount();", "int getResultsCount();", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "int getDataCount();", "int getDataCount();" ]
[ "0.71246654", "0.7021973", "0.70048434", "0.6898371", "0.6673774", "0.66578156", "0.6493991", "0.64729905", "0.64027184", "0.6367589", "0.6348236", "0.6313212", "0.62950224", "0.62926704", "0.6259711", "0.6191527", "0.6174339", "0.6155553", "0.6115782", "0.61080325", "0.610613", "0.609512", "0.6081173", "0.6060654", "0.6059789", "0.6057296", "0.6040075", "0.6037031", "0.60345376", "0.60102135", "0.59843427", "0.59831655", "0.597774", "0.5963997", "0.5958726", "0.59179676", "0.5905663", "0.5895357", "0.5866532", "0.5852359", "0.58406967", "0.5831498", "0.5826077", "0.5825826", "0.5816207", "0.5813937", "0.58069897", "0.5802336", "0.57936156", "0.5780645", "0.5773336", "0.5765539", "0.57597876", "0.57495624", "0.57380277", "0.57329726", "0.5728427", "0.56976235", "0.5690146", "0.5690146", "0.5690146", "0.5690146", "0.5690146", "0.5689338", "0.5683359", "0.5665662", "0.5646612", "0.5637757", "0.5636286", "0.5633454", "0.5628241", "0.56232935", "0.56228006", "0.56212646", "0.5614259", "0.55996674", "0.55994344", "0.5588078", "0.5583812", "0.5571287", "0.5569068", "0.5568908", "0.55675066", "0.55589366", "0.5547928", "0.5546717", "0.55452096", "0.55367404", "0.5529558", "0.55283105", "0.551953", "0.5514369", "0.5506989", "0.55058014", "0.55028474", "0.549926", "0.549926", "0.5496095", "0.5489718", "0.5489718" ]
0.57608134
52
Count of failures. int32 failures = 3 [json_name = "failures"];
public Builder clearFailures() { bitField0_ = (bitField0_ & ~0x00000004); failures_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int failed() {\n return this.failed;\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "int getErrorCount();", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "String getLoginapisuccessfulhitcount();", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "int getResponseCount();", "UnsignedInteger getDeliveryFailures();", "public int numberOfResult() throws Exception;", "public int getProblemCount();", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getStatusCount();", "public static int count() {\n\treturn errorCount;\n }", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int getSuccesses() {\n return successes.get();\n }", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "public String dlMaxFailures();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "Integer totalRetryAttempts();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "public int getMissedCallsCount();", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "public int getNumberOfErrors() {\n return errors;\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n loginapisuccessfulhitcount_ = s;\n }\n return s;\n }\n }", "int getResponsesCount();", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "int getInvalidLoginCount();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "public String getLoginapisuccessfulhitcount() {\n Object ref = loginapisuccessfulhitcount_;\n if (!(ref instanceof String)) {\n String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n loginapisuccessfulhitcount_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "int getFieldViolationsCount();", "public int countTestCases() {\n return 1;\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "public int getErrorCountByRepeat() {\n\t\t\n\t\tif (!hasERR) {\n\t\t\treturn -1;\n\t\t}\n\t\ttry {\n\t\t\treturn getSegments().getByCodeAndIndex(ERR, 1).getFields().item(0).getNonEmptyCount();\n\t\t} catch (HL7V2Exception e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public Long getErr_count() {\n return err_count;\n }", "public void setNumberOfFailedFiles(int value) {\n this.numberOfFailedFiles = value;\n }", "long getMisses();", "public Builder setFailures(int value) {\n\n failures_ = value;\n bitField0_ |= 0x00000004;\n onChanged();\n return this;\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "long count() throws Exception;", "public final void setfailure_count(com.mendix.systemwideinterfaces.core.IContext context, Integer failure_count)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.failure_count.toString(), failure_count);\n\t}", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public int getErrorcount() {\n return errorcount;\n }", "public void setErrorcount(int value) {\n this.errorcount = value;\n }", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "int getMessageCount();", "public Integer countRecordReturns();", "int getRetries();", "int getExceptionsCount();", "public int getMissCountNotFound() {\n return missCountNotFound;\n }", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "long getNumberOfComparisons();", "public int getErrorCount() {\n return this._errorCount;\n }", "public long getExceptionCount();", "public final void setfailure_count(Integer failure_count)\n\t{\n\t\tsetfailure_count(getContext(), failure_count);\n\t}", "public int getBadCount() {\n return badCount;\n }", "Set<Integer> getExpectedStatusCodes();", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "long getInnerStatusCode();", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "int getStudentResponseCount();", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "public static void addFailCount(int count)\r\n\t{\r\n\t\tsynchronized(keywords)\r\n\t\t{\r\n\t\t\tfailCount += count;\r\n\t\t}//sync\r\n\t}", "public int getErrors() {\n return errors;\n }", "public void countAcc()\n {\n \tint count=0;\n response=RestAssured.get(\"http://18.222.188.206:3333/accounts\");\n ID=response.jsonPath().getList(\"id\");\n for(int i=0;i<=ID.size();i++)\n {\n count++;\n }\n System.out.println(\"The total number of accounts present in this page=\"+count);\n }", "public void setErrorCnt(Integer errorCnt) {\r\n this.errorCnt = errorCnt;\r\n }", "public int getBatchDownloadFailureCountdown()\n {\n return 0; \n }", "int getNumberOfSpecifiedExceptions();", "private int getDataLength(String urlString, String name)\n throws RedmineException\n {\n final int[] result = new int[1];\n\n getData(urlString,name,0,1,new ParseElementHandler()\n {\n public void root(Element element)\n {\n result[0] = getIntAttribute(element,\"total_count\");\n }\n public void data(Element element)\n {\n }\n });\n if (Settings.debugFlag)\n {\n System.err.println(\"DEBUG: Get length '\"+urlString+\"': \"+result[0]);\n }\n\n return result[0];\n }", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "public int getErrors() {\n return errors;\n }", "private boolean hasFailures(Map item){\n if(item.containsKey(\"code\") && item.get(\"code\").equals(\"ACCEPTED\"))\n return false;\n return ((Integer)item.get(\"failuresCount\")) > 0;\n }", "public int runCount() {\n return testCount;\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "int getResultsCount();", "int getResultsCount();", "com.google.protobuf.ByteString\n getLoginapisuccessfulhitcountBytes();", "int getDataCount();", "int getDataCount();" ]
[ "0.71257466", "0.70223546", "0.70065063", "0.6900032", "0.6675016", "0.6659162", "0.6493751", "0.6474225", "0.64017606", "0.6368983", "0.6349418", "0.63140684", "0.6294408", "0.6293111", "0.6260251", "0.6191106", "0.6172947", "0.6155622", "0.611356", "0.61077017", "0.6106658", "0.60950434", "0.6080751", "0.6058938", "0.605833", "0.6057873", "0.6039431", "0.60366774", "0.6035097", "0.6011036", "0.59830815", "0.5982852", "0.5976193", "0.596449", "0.59589416", "0.591743", "0.5905409", "0.58948404", "0.5864539", "0.5850874", "0.58403784", "0.58324623", "0.58255833", "0.58248085", "0.58165", "0.5813063", "0.5807625", "0.58018106", "0.5793209", "0.57801914", "0.5774287", "0.57661474", "0.576405", "0.57591873", "0.5748052", "0.5739589", "0.5732705", "0.5727804", "0.5697873", "0.56887954", "0.56887954", "0.56887954", "0.56887954", "0.56887954", "0.56883335", "0.5683526", "0.56653947", "0.56469333", "0.5636813", "0.5634718", "0.56331986", "0.56277156", "0.5624335", "0.5623739", "0.56223136", "0.5613471", "0.5598985", "0.55981946", "0.5585723", "0.55822045", "0.5569576", "0.5569554", "0.55689865", "0.5567687", "0.5559895", "0.5547727", "0.55450284", "0.5543324", "0.5539313", "0.55294305", "0.55292946", "0.5518685", "0.55148447", "0.55088896", "0.5504168", "0.55037683", "0.549712", "0.549712", "0.54955", "0.5487514", "0.5487514" ]
0.0
-1
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() { if (casesBuilder_ == null) { return java.util.Collections.unmodifiableList(cases_); } else { return casesBuilder_.getMessageList(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71455115", "0.6808429", "0.6736616", "0.6591564", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.56234634", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5165718", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.6730065
3
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public int getCasesCount() { if (casesBuilder_ == null) { return cases_.size(); } else { return casesBuilder_.getCount(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71442044", "0.68070793", "0.67358345", "0.672894", "0.6590673", "0.65620327", "0.6487075", "0.6209915", "0.61823225", "0.5887776", "0.5786958", "0.5712062", "0.5623565", "0.56160635", "0.54786825", "0.5441033", "0.5405756", "0.5371656", "0.5229851", "0.51963955", "0.51653665", "0.5111451", "0.50893235", "0.50842875", "0.5065232", "0.5032767", "0.5019024", "0.49913406", "0.49828738", "0.4975382", "0.48987767", "0.48958236", "0.48834154", "0.4868133", "0.483942", "0.4827103", "0.482453", "0.48099095", "0.48025194", "0.4801244", "0.47915676", "0.47895947", "0.47418156", "0.47341", "0.4725671", "0.47194734", "0.4712385", "0.4706358", "0.4703889", "0.4687662", "0.4680694", "0.46755874", "0.46675146", "0.46554348", "0.46471062", "0.4644674", "0.4643027", "0.4643027", "0.4640602", "0.4631152", "0.46236932", "0.46133175", "0.46111155", "0.46094188", "0.4606109", "0.4597787", "0.45902187", "0.45883262", "0.4587658", "0.4584751", "0.45666346", "0.45646346", "0.45643878", "0.4560822", "0.45575967", "0.45525423", "0.45471627", "0.45433155", "0.4535759", "0.45309907", "0.45303106", "0.45258147", "0.4517884", "0.45003718", "0.44983044", "0.44981885", "0.44951782", "0.4492438", "0.4484002", "0.44756925", "0.4474406", "0.4474406", "0.4473362", "0.44671988", "0.44654557", "0.44595176", "0.44569376", "0.445558", "0.44491112", "0.44478744" ]
0.4733351
44
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public build.buf.validate.conformance.harness.CaseResult getCases(int index) { if (casesBuilder_ == null) { return cases_.get(index); } else { return casesBuilder_.getMessage(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71462464", "0.6808686", "0.6737788", "0.6731028", "0.65924656", "0.6488953", "0.6210884", "0.6183896", "0.5885691", "0.57888055", "0.57139254", "0.5625376", "0.5618079", "0.547988", "0.5442544", "0.54085755", "0.5372606", "0.5230635", "0.5197081", "0.51671946", "0.510978", "0.5089823", "0.5084244", "0.50679594", "0.50312924", "0.5021675", "0.49941212", "0.49847883", "0.49750975", "0.48978004", "0.48976552", "0.48862216", "0.48693472", "0.48416686", "0.48273635", "0.48255777", "0.48109972", "0.4803495", "0.4802028", "0.479082", "0.47890702", "0.474296", "0.47358513", "0.47317556", "0.47273868", "0.47172725", "0.47135413", "0.47060937", "0.47046244", "0.4688307", "0.46815988", "0.46731803", "0.46695727", "0.465344", "0.46494582", "0.46430746", "0.46422338", "0.46414542", "0.46414542", "0.462982", "0.46225554", "0.4613793", "0.46129748", "0.46088645", "0.46078232", "0.46000215", "0.4591678", "0.45898926", "0.4589475", "0.4586726", "0.45652896", "0.45647433", "0.45643845", "0.45585123", "0.45557302", "0.45527154", "0.45478633", "0.4539832", "0.4536519", "0.45339143", "0.45311883", "0.45223463", "0.451768", "0.45018563", "0.44982037", "0.44965097", "0.44964686", "0.44939965", "0.44864413", "0.44761768", "0.44743112", "0.4472725", "0.4472725", "0.44668123", "0.44643334", "0.44595462", "0.44580552", "0.44565102", "0.44501254", "0.44493365" ]
0.6563864
5
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder setCases( int index, build.buf.validate.conformance.harness.CaseResult value) { if (casesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCasesIsMutable(); cases_.set(index, value); onChanged(); } else { casesBuilder_.setMessage(index, value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.7145195", "0.6807969", "0.6736193", "0.6729669", "0.659123", "0.65623987", "0.64879346", "0.62100697", "0.6182761", "0.58872026", "0.5787895", "0.5713147", "0.5624194", "0.56165606", "0.54786986", "0.544181", "0.54080623", "0.53733116", "0.522919", "0.519705", "0.51660496", "0.5109959", "0.50900465", "0.50836885", "0.50670314", "0.503123", "0.5020655", "0.49927187", "0.49844474", "0.49738237", "0.4898274", "0.48971173", "0.48856637", "0.48682007", "0.48406413", "0.4826887", "0.48236978", "0.48103645", "0.48018175", "0.48016593", "0.47906768", "0.47886786", "0.4741624", "0.473414", "0.47335377", "0.47254053", "0.47176266", "0.47123063", "0.47049585", "0.46869838", "0.4682914", "0.4673728", "0.46678227", "0.46548915", "0.46484363", "0.46440837", "0.46420175", "0.463995", "0.463995", "0.4631516", "0.46230292", "0.4612258", "0.46116593", "0.46082005", "0.4607586", "0.4599776", "0.45917913", "0.45888838", "0.4588493", "0.4587905", "0.4565536", "0.45649248", "0.45646334", "0.45598462", "0.4556236", "0.4551218", "0.4546381", "0.45405143", "0.45345244", "0.453399", "0.45317796", "0.4522661", "0.45166948", "0.45012861", "0.44979477", "0.44967186", "0.44963348", "0.44932276", "0.44861498", "0.44765398", "0.4472868", "0.4471444", "0.4471444", "0.4467171", "0.44646746", "0.4458223", "0.44572398", "0.4454425", "0.44483557", "0.444798" ]
0.47048345
49
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder setCases( int index, build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) { if (casesBuilder_ == null) { ensureCasesIsMutable(); cases_.set(index, builderForValue.build()); onChanged(); } else { casesBuilder_.setMessage(index, builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71455115", "0.6808429", "0.6736616", "0.6730065", "0.6591564", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.56234634", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5165718", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.0
-1
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) { if (casesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCasesIsMutable(); cases_.add(value); onChanged(); } else { casesBuilder_.addMessage(value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71442044", "0.68070793", "0.67358345", "0.672894", "0.6590673", "0.65620327", "0.6487075", "0.6209915", "0.61823225", "0.5887776", "0.5786958", "0.5712062", "0.5623565", "0.56160635", "0.54786825", "0.5441033", "0.5405756", "0.5371656", "0.5229851", "0.51963955", "0.51653665", "0.5111451", "0.50893235", "0.50842875", "0.5065232", "0.5032767", "0.49913406", "0.49828738", "0.4975382", "0.48987767", "0.48958236", "0.48834154", "0.4868133", "0.483942", "0.4827103", "0.482453", "0.48099095", "0.48025194", "0.4801244", "0.47915676", "0.47895947", "0.47418156", "0.47341", "0.4733351", "0.4725671", "0.47194734", "0.4712385", "0.4706358", "0.4703889", "0.4687662", "0.4680694", "0.46755874", "0.46675146", "0.46554348", "0.46471062", "0.4644674", "0.4643027", "0.4643027", "0.4640602", "0.4631152", "0.46236932", "0.46133175", "0.46111155", "0.46094188", "0.4606109", "0.4597787", "0.45902187", "0.45883262", "0.4587658", "0.4584751", "0.45666346", "0.45646346", "0.45643878", "0.4560822", "0.45575967", "0.45525423", "0.45471627", "0.45433155", "0.4535759", "0.45309907", "0.45303106", "0.45258147", "0.4517884", "0.45003718", "0.44983044", "0.44981885", "0.44951782", "0.4492438", "0.4484002", "0.44756925", "0.4474406", "0.4474406", "0.4473362", "0.44671988", "0.44654557", "0.44595176", "0.44569376", "0.445558", "0.44491112", "0.44478744" ]
0.5019024
26
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder addCases( int index, build.buf.validate.conformance.harness.CaseResult value) { if (casesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCasesIsMutable(); cases_.add(index, value); onChanged(); } else { casesBuilder_.addMessage(index, value); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71462464", "0.6808686", "0.6737788", "0.6731028", "0.65924656", "0.6563864", "0.6488953", "0.6210884", "0.6183896", "0.5885691", "0.57888055", "0.57139254", "0.5625376", "0.5618079", "0.547988", "0.5442544", "0.54085755", "0.5372606", "0.5230635", "0.5197081", "0.51671946", "0.510978", "0.5089823", "0.5084244", "0.50679594", "0.50312924", "0.5021675", "0.49847883", "0.49750975", "0.48978004", "0.48976552", "0.48862216", "0.48693472", "0.48416686", "0.48273635", "0.48255777", "0.48109972", "0.4803495", "0.4802028", "0.479082", "0.47890702", "0.474296", "0.47358513", "0.47317556", "0.47273868", "0.47172725", "0.47135413", "0.47060937", "0.47046244", "0.4688307", "0.46815988", "0.46731803", "0.46695727", "0.465344", "0.46494582", "0.46430746", "0.46422338", "0.46414542", "0.46414542", "0.462982", "0.46225554", "0.4613793", "0.46129748", "0.46088645", "0.46078232", "0.46000215", "0.4591678", "0.45898926", "0.4589475", "0.4586726", "0.45652896", "0.45647433", "0.45643845", "0.45585123", "0.45557302", "0.45527154", "0.45478633", "0.4539832", "0.4536519", "0.45339143", "0.45311883", "0.45223463", "0.451768", "0.45018563", "0.44982037", "0.44965097", "0.44964686", "0.44939965", "0.44864413", "0.44761768", "0.44743112", "0.4472725", "0.4472725", "0.44668123", "0.44643334", "0.44595462", "0.44580552", "0.44565102", "0.44501254", "0.44493365" ]
0.49941212
27
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder addCases( build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) { if (casesBuilder_ == null) { ensureCasesIsMutable(); cases_.add(builderForValue.build()); onChanged(); } else { casesBuilder_.addMessage(builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.7145195", "0.6807969", "0.6736193", "0.6729669", "0.659123", "0.65623987", "0.64879346", "0.62100697", "0.6182761", "0.58872026", "0.5787895", "0.5713147", "0.5624194", "0.56165606", "0.54786986", "0.544181", "0.54080623", "0.53733116", "0.522919", "0.519705", "0.51660496", "0.5109959", "0.50900465", "0.50836885", "0.50670314", "0.503123", "0.5020655", "0.49927187", "0.49844474", "0.49738237", "0.4898274", "0.48971173", "0.48856637", "0.48682007", "0.48406413", "0.4826887", "0.48236978", "0.48103645", "0.48018175", "0.48016593", "0.47906768", "0.47886786", "0.4741624", "0.473414", "0.47335377", "0.47254053", "0.47176266", "0.47123063", "0.47049585", "0.47048345", "0.46869838", "0.4682914", "0.4673728", "0.46678227", "0.46548915", "0.46484363", "0.46440837", "0.46420175", "0.463995", "0.463995", "0.4631516", "0.46230292", "0.4612258", "0.46116593", "0.46082005", "0.4607586", "0.4599776", "0.45917913", "0.45888838", "0.4588493", "0.4587905", "0.4565536", "0.45649248", "0.45646334", "0.45598462", "0.4556236", "0.4551218", "0.4546381", "0.45405143", "0.45345244", "0.453399", "0.45317796", "0.4522661", "0.45166948", "0.45012861", "0.44979477", "0.44967186", "0.44963348", "0.44932276", "0.44861498", "0.44765398", "0.4472868", "0.4471444", "0.4471444", "0.4467171", "0.44646746", "0.4458223", "0.44572398", "0.4454425", "0.44483557", "0.444798" ]
0.0
-1
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder addCases( int index, build.buf.validate.conformance.harness.CaseResult.Builder builderForValue) { if (casesBuilder_ == null) { ensureCasesIsMutable(); cases_.add(index, builderForValue.build()); onChanged(); } else { casesBuilder_.addMessage(index, builderForValue.build()); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71455115", "0.6808429", "0.6736616", "0.6730065", "0.6591564", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.56234634", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5165718", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.0
-1
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder addAllCases( java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) { if (casesBuilder_ == null) { ensureCasesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, cases_); onChanged(); } else { casesBuilder_.addAllMessages(values); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71442044", "0.68070793", "0.67358345", "0.672894", "0.6590673", "0.65620327", "0.6487075", "0.6209915", "0.61823225", "0.5887776", "0.5786958", "0.5712062", "0.5623565", "0.56160635", "0.54786825", "0.5441033", "0.5405756", "0.5371656", "0.5229851", "0.51963955", "0.51653665", "0.5111451", "0.50893235", "0.50842875", "0.5065232", "0.5032767", "0.5019024", "0.49913406", "0.49828738", "0.4975382", "0.48987767", "0.48958236", "0.48834154", "0.4868133", "0.483942", "0.4827103", "0.482453", "0.48025194", "0.4801244", "0.47915676", "0.47895947", "0.47418156", "0.47341", "0.4733351", "0.4725671", "0.47194734", "0.4712385", "0.4706358", "0.4703889", "0.4687662", "0.4680694", "0.46755874", "0.46675146", "0.46554348", "0.46471062", "0.4644674", "0.4643027", "0.4643027", "0.4640602", "0.4631152", "0.46236932", "0.46133175", "0.46111155", "0.46094188", "0.4606109", "0.4597787", "0.45902187", "0.45883262", "0.4587658", "0.4584751", "0.45666346", "0.45646346", "0.45643878", "0.4560822", "0.45575967", "0.45525423", "0.45471627", "0.45433155", "0.4535759", "0.45309907", "0.45303106", "0.45258147", "0.4517884", "0.45003718", "0.44983044", "0.44981885", "0.44951782", "0.4492438", "0.4484002", "0.44756925", "0.4474406", "0.4474406", "0.4473362", "0.44671988", "0.44654557", "0.44595176", "0.44569376", "0.445558", "0.44491112", "0.44478744" ]
0.48099095
37
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder clearCases() { if (casesBuilder_ == null) { cases_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { casesBuilder_.clear(); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71462464", "0.6808686", "0.6737788", "0.6731028", "0.65924656", "0.6563864", "0.6488953", "0.6210884", "0.6183896", "0.5885691", "0.57888055", "0.57139254", "0.5625376", "0.5618079", "0.547988", "0.5442544", "0.54085755", "0.5372606", "0.5230635", "0.5197081", "0.51671946", "0.510978", "0.5089823", "0.5084244", "0.50679594", "0.50312924", "0.5021675", "0.49941212", "0.49847883", "0.49750975", "0.48978004", "0.48976552", "0.48862216", "0.48693472", "0.48416686", "0.48273635", "0.48255777", "0.48109972", "0.4803495", "0.4802028", "0.479082", "0.47890702", "0.474296", "0.47358513", "0.47317556", "0.47273868", "0.47172725", "0.47135413", "0.47060937", "0.47046244", "0.4688307", "0.46815988", "0.46731803", "0.46695727", "0.465344", "0.46494582", "0.46430746", "0.46422338", "0.46414542", "0.46414542", "0.462982", "0.46225554", "0.4613793", "0.46129748", "0.46088645", "0.46078232", "0.46000215", "0.45898926", "0.4589475", "0.4586726", "0.45652896", "0.45647433", "0.45643845", "0.45585123", "0.45557302", "0.45527154", "0.45478633", "0.4539832", "0.4536519", "0.45339143", "0.45311883", "0.45223463", "0.451768", "0.45018563", "0.44982037", "0.44965097", "0.44964686", "0.44939965", "0.44864413", "0.44761768", "0.44743112", "0.4472725", "0.4472725", "0.44668123", "0.44643334", "0.44595462", "0.44580552", "0.44565102", "0.44501254", "0.44493365" ]
0.4591678
67
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public Builder removeCases(int index) { if (casesBuilder_ == null) { ensureCasesIsMutable(); cases_.remove(index); onChanged(); } else { casesBuilder_.remove(index); } return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.7145195", "0.6807969", "0.6736193", "0.6729669", "0.659123", "0.65623987", "0.64879346", "0.62100697", "0.6182761", "0.58872026", "0.5787895", "0.5713147", "0.5624194", "0.56165606", "0.54786986", "0.544181", "0.54080623", "0.53733116", "0.522919", "0.519705", "0.51660496", "0.5109959", "0.50900465", "0.50836885", "0.50670314", "0.503123", "0.5020655", "0.49927187", "0.49844474", "0.49738237", "0.4898274", "0.48971173", "0.48856637", "0.48682007", "0.48406413", "0.4826887", "0.48236978", "0.48103645", "0.48018175", "0.48016593", "0.47906768", "0.47886786", "0.4741624", "0.473414", "0.47335377", "0.47254053", "0.47176266", "0.47123063", "0.47049585", "0.47048345", "0.46869838", "0.4682914", "0.4673728", "0.46678227", "0.46548915", "0.46484363", "0.46440837", "0.46420175", "0.463995", "0.463995", "0.4631516", "0.46230292", "0.4612258", "0.46116593", "0.46082005", "0.4607586", "0.4599776", "0.45917913", "0.45888838", "0.4588493", "0.4587905", "0.4565536", "0.45649248", "0.45646334", "0.45598462", "0.4556236", "0.4551218", "0.4546381", "0.45405143", "0.45345244", "0.453399", "0.45317796", "0.4522661", "0.45166948", "0.45012861", "0.44979477", "0.44967186", "0.44963348", "0.44932276", "0.44861498", "0.44765398", "0.4472868", "0.4471444", "0.4471444", "0.4467171", "0.44646746", "0.4458223", "0.44572398", "0.4454425", "0.44483557", "0.444798" ]
0.0
-1
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder( int index) { return getCasesFieldBuilder().getBuilder(index); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71455115", "0.6808429", "0.6736616", "0.6730065", "0.6591564", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.56234634", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.5165718
20
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder( int index) { if (casesBuilder_ == null) { return cases_.get(index); } else { return casesBuilder_.getMessageOrBuilder(index); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71442044", "0.68070793", "0.67358345", "0.672894", "0.6590673", "0.65620327", "0.6487075", "0.6209915", "0.5887776", "0.5786958", "0.5712062", "0.5623565", "0.56160635", "0.54786825", "0.5441033", "0.5405756", "0.5371656", "0.5229851", "0.51963955", "0.51653665", "0.5111451", "0.50893235", "0.50842875", "0.5065232", "0.5032767", "0.5019024", "0.49913406", "0.49828738", "0.4975382", "0.48987767", "0.48958236", "0.48834154", "0.4868133", "0.483942", "0.4827103", "0.482453", "0.48099095", "0.48025194", "0.4801244", "0.47915676", "0.47895947", "0.47418156", "0.47341", "0.4733351", "0.4725671", "0.47194734", "0.4712385", "0.4706358", "0.4703889", "0.4687662", "0.4680694", "0.46755874", "0.46675146", "0.46554348", "0.46471062", "0.4644674", "0.4643027", "0.4643027", "0.4640602", "0.4631152", "0.46236932", "0.46133175", "0.46111155", "0.46094188", "0.4606109", "0.4597787", "0.45902187", "0.45883262", "0.4587658", "0.4584751", "0.45666346", "0.45646346", "0.45643878", "0.4560822", "0.45575967", "0.45525423", "0.45471627", "0.45433155", "0.4535759", "0.45309907", "0.45303106", "0.45258147", "0.4517884", "0.45003718", "0.44983044", "0.44981885", "0.44951782", "0.4492438", "0.4484002", "0.44756925", "0.4474406", "0.4474406", "0.4473362", "0.44671988", "0.44654557", "0.44595176", "0.44569376", "0.445558", "0.44491112", "0.44478744" ]
0.61823225
8
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> getCasesOrBuilderList() { if (casesBuilder_ != null) { return casesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(cases_); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71462464", "0.6808686", "0.6737788", "0.6731028", "0.65924656", "0.6563864", "0.6210884", "0.6183896", "0.5885691", "0.57888055", "0.57139254", "0.5625376", "0.5618079", "0.547988", "0.5442544", "0.54085755", "0.5372606", "0.5230635", "0.5197081", "0.51671946", "0.510978", "0.5089823", "0.5084244", "0.50679594", "0.50312924", "0.5021675", "0.49941212", "0.49847883", "0.49750975", "0.48978004", "0.48976552", "0.48862216", "0.48693472", "0.48416686", "0.48273635", "0.48255777", "0.48109972", "0.4803495", "0.4802028", "0.479082", "0.47890702", "0.474296", "0.47358513", "0.47317556", "0.47273868", "0.47172725", "0.47135413", "0.47060937", "0.47046244", "0.4688307", "0.46815988", "0.46731803", "0.46695727", "0.465344", "0.46494582", "0.46430746", "0.46422338", "0.46414542", "0.46414542", "0.462982", "0.46225554", "0.4613793", "0.46129748", "0.46088645", "0.46078232", "0.46000215", "0.4591678", "0.45898926", "0.4589475", "0.4586726", "0.45652896", "0.45647433", "0.45643845", "0.45585123", "0.45557302", "0.45527154", "0.45478633", "0.4539832", "0.4536519", "0.45339143", "0.45311883", "0.45223463", "0.451768", "0.45018563", "0.44982037", "0.44965097", "0.44964686", "0.44939965", "0.44864413", "0.44761768", "0.44743112", "0.4472725", "0.4472725", "0.44668123", "0.44643334", "0.44595462", "0.44580552", "0.44565102", "0.44501254", "0.44493365" ]
0.6488953
6
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() { return getCasesFieldBuilder().addBuilder( build.buf.validate.conformance.harness.CaseResult.getDefaultInstance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "public CaseListOutMem() {\n \n cases = null;\n}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.7145195", "0.6807969", "0.6736193", "0.6729669", "0.659123", "0.65623987", "0.64879346", "0.62100697", "0.6182761", "0.58872026", "0.5787895", "0.5624194", "0.56165606", "0.54786986", "0.544181", "0.54080623", "0.53733116", "0.522919", "0.519705", "0.51660496", "0.5109959", "0.50900465", "0.50836885", "0.50670314", "0.503123", "0.5020655", "0.49927187", "0.49844474", "0.49738237", "0.4898274", "0.48971173", "0.48856637", "0.48682007", "0.48406413", "0.4826887", "0.48236978", "0.48103645", "0.48018175", "0.48016593", "0.47906768", "0.47886786", "0.4741624", "0.473414", "0.47335377", "0.47254053", "0.47176266", "0.47123063", "0.47049585", "0.47048345", "0.46869838", "0.4682914", "0.4673728", "0.46678227", "0.46548915", "0.46484363", "0.46440837", "0.46420175", "0.463995", "0.463995", "0.4631516", "0.46230292", "0.4612258", "0.46116593", "0.46082005", "0.4607586", "0.4599776", "0.45917913", "0.45888838", "0.4588493", "0.4587905", "0.4565536", "0.45649248", "0.45646334", "0.45598462", "0.4556236", "0.4551218", "0.4546381", "0.45405143", "0.45345244", "0.453399", "0.45317796", "0.4522661", "0.45166948", "0.45012861", "0.44979477", "0.44967186", "0.44963348", "0.44932276", "0.44861498", "0.44765398", "0.4472868", "0.4471444", "0.4471444", "0.4467171", "0.44646746", "0.4458223", "0.44572398", "0.4454425", "0.44483557", "0.444798" ]
0.5713147
11
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder( int index) { return getCasesFieldBuilder().addBuilder( index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> \n getCasesBuilderList() {\n return getCasesFieldBuilder().getBuilderList();\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "public CriminalCaseMap getCases(String employeeId);", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71455115", "0.6808429", "0.6736616", "0.6730065", "0.6591564", "0.6562282", "0.6488388", "0.6209064", "0.618286", "0.58866936", "0.5788177", "0.5712186", "0.561775", "0.5477964", "0.54423", "0.5407393", "0.53721446", "0.5229506", "0.51966745", "0.5165718", "0.5111643", "0.5088061", "0.50836504", "0.5066555", "0.5032019", "0.5018812", "0.49912065", "0.49832678", "0.49754158", "0.48988023", "0.48958078", "0.48840114", "0.48675895", "0.48402", "0.48264086", "0.48248342", "0.48089582", "0.4803522", "0.4801017", "0.4791255", "0.4789985", "0.47432563", "0.4734878", "0.47344863", "0.47254562", "0.47184998", "0.471254", "0.4705381", "0.4703843", "0.4688094", "0.46807486", "0.46759722", "0.46693498", "0.46552595", "0.46486196", "0.46441928", "0.46437523", "0.46437523", "0.46417168", "0.4630524", "0.4623714", "0.4612712", "0.46109888", "0.4608762", "0.46055904", "0.45998785", "0.4589985", "0.45891508", "0.4587235", "0.4585812", "0.4565338", "0.45651728", "0.4564349", "0.45611024", "0.45580944", "0.45508808", "0.4547768", "0.45431572", "0.45347074", "0.4531161", "0.4530475", "0.4525212", "0.45172116", "0.45016292", "0.4498799", "0.4497822", "0.4495778", "0.44933257", "0.44851798", "0.44764376", "0.44755402", "0.44755402", "0.4472508", "0.44669464", "0.44660422", "0.44595724", "0.4457256", "0.44560525", "0.44476086", "0.4446874" ]
0.56234634
12
List of case results. repeated .buf.validate.conformance.harness.CaseResult cases = 4 [json_name = "cases"];
public java.util.List<build.buf.validate.conformance.harness.CaseResult.Builder> getCasesBuilderList() { return getCasesFieldBuilder().getBuilderList(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n return cases_;\n }", "@java.lang.Override\n public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n return cases_;\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n return cases_.get(index);\n }", "public java.util.List<build.buf.validate.conformance.harness.CaseResult> getCasesList() {\n if (casesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(cases_);\n } else {\n return casesBuilder_.getMessageList();\n }\n }", "@java.lang.Override\n public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n return cases_.get(index);\n }", "public build.buf.validate.conformance.harness.CaseResult getCases(int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index);\n } else {\n return casesBuilder_.getMessage(index);\n }\n }", "public java.util.List<? extends build.buf.validate.conformance.harness.CaseResultOrBuilder> \n getCasesOrBuilderList() {\n if (casesBuilder_ != null) {\n return casesBuilder_.getMessageOrBuilderList();\n } else {\n return java.util.Collections.unmodifiableList(cases_);\n }\n }", "@SuppressWarnings(\"unchecked\")\n @DataProvider(name = \"case-provider\")\n public Object[][] testCases() {\n List<Object> cases = (List<Object>) configMap.get(\"cases\");\n // add common_connector_conf to each case\n cases.forEach(c -> {\n Map<String, Object> caseMap = (Map<String, Object>) c;\n caseMap.put(\"common_connector_conf\", configMap.get(\"common_connector_conf\"));\n });\n Object[][] rowArray = new Object[cases.size()][];\n for (int i = 0; i < cases.size(); i++) {\n rowArray[i] = new Object[] { cases.get(i) };\n }\n return rowArray;\n }", "public build.buf.validate.conformance.harness.CaseResultOrBuilder getCasesOrBuilder(\n int index) {\n if (casesBuilder_ == null) {\n return cases_.get(index); } else {\n return casesBuilder_.getMessageOrBuilder(index);\n }\n }", "private static List<InOut> getJsonTestCases() {\n final List<InOut> testCases = new ArrayList<>();\n // allowed\n addTestCase(testCases, \"{\\\"bool\\\":true}\");\n // will be corrected\n addTestCase(testCases, \"{\\\"bool\\\":true\", \"{\\\"bool\\\":true}\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true}\", \"\\\"bool\\\"\");\n // will be stripped down\n addTestCase(testCases, \"\\\"bool\\\":true\", \"\\\"bool\\\"\");\n // check sanitized HTML\n final InOut combinedJsonTestCase = getCombinedJsonTestCase();\n addTestCase(testCases, combinedJsonTestCase);\n return testCases;\n }", "public Case[][] getCases()\n {\n\treturn cases;\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder() {\n return getCasesFieldBuilder().addBuilder(\n build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder addCasesBuilder(\n int index) {\n return getCasesFieldBuilder().addBuilder(\n index, build.buf.validate.conformance.harness.CaseResult.getDefaultInstance());\n }", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "@Override\n public JsonObject getUsecases() throws InsightsCustomException {\n JsonObject response = new JsonObject();\n JsonArray responseArray = new JsonArray();\n try {\n List<AutoMLConfig> results = autoMLConfigDAL.fetchUsecases();\n if (!results.isEmpty()) {\n \tresults.forEach(eachMLConfig->{\n \t\tJsonObject eachObject = new JsonObject();\n\t\t\t\t\teachObject.addProperty(\"workflowId\", eachMLConfig.getWorkflowConfig().getWorkflowId());\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\teachObject.addProperty(\"splitRatio\",eachMLConfig.getTrainingPerc()+\"/\"+(100-eachMLConfig.getTrainingPerc()));\n \t\teachObject.addProperty(\"modelName\", eachMLConfig.getMojoDeployed());\n \t\teachObject.addProperty(\"createdAt\", eachMLConfig.getCreatedDate());\n \t\teachObject.addProperty(\"updatedAt\", eachMLConfig.getUpdatedDate());\n \t\teachObject.addProperty(\"status\", eachMLConfig.getStatus());\n \t\teachObject.addProperty(\"isActive\", eachMLConfig.getIsActive());\n \t\teachObject.addProperty(\"predictionType\", eachMLConfig.getPredictionType());\n \t\tresponseArray.add(eachObject);\n \t});\n response.add(\"usecases\", responseArray);\n } else {\n response.addProperty(\"nodata\",404);\n }\n return response;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n }", "public void setCaseList() {\n ResultSet rs = Business.getInstance().getData().getAllCases();\n try {\n while (rs.next()) {\n allCases.add(new Case(rs.getInt(\"caseid\"),\n rs.getString(\"case_directory\"),\n rs.getString(\"creation_date\"),\n rs.getString(\"cpr\"),\n rs.getBoolean(\"is_active\")));\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@GET\n\t@Path(\"/cases/{id:[0-9]+}\")\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic ValidationResponse getCase(@PathParam(\"id\") Long id) {\n\t\treturn tripValidator.getPendingCases(id);\n\t}", "@Override\n\tpublic JsonArray getMojoDeployedUsecases() throws InsightsCustomException {\n JsonArray responseArray = new JsonArray();\n try {\n \tList<AutoMLConfig> results = autoMLConfigDAL.getActiveUsecaseList();\n if (!results.isEmpty()) {\n \tfor(AutoMLConfig eachMLConfig: results){\n \t\tJsonObject eachObject = new JsonObject();\n \t\teachObject.addProperty(USECASE_NAME,eachMLConfig.getUseCaseName());\n \t\teachObject.addProperty(\"predictionColumn\", eachMLConfig.getPredictionColumn());\n \t\tresponseArray.add(eachObject);\n \t}\n } else {\n \tthrow new InsightsCustomException(\"No Mojo_deployed Usecase found.\");\n }\n return responseArray;\n } catch (Exception e) {\n throw new InsightsCustomException(e.getMessage());\n }\n\t}", "@Test\n public void testGetCasesVoisinesOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test getCasesVoisinesOccupees ==============>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n instance.ajoutInsecte(reine, orig);\n\n System.out.println(\"test avec l'origine, haut et bas occupé :\");\n ArrayList<Case> expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinBas());\n instance.ajoutInsecte(reine, orig.voisinHaut());\n\n ArrayList<Case> res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est occupé :\");\n expected = new ArrayList<>();\n expected.add(new Case(orig.voisinBas()));\n expected.add(new Case(orig.voisinDroiteBas()));\n expected.add(new Case(orig.voisinDroiteHaut()));\n expected.add(new Case(orig.voisinGaucheBas()));\n expected.add(new Case(orig.voisinGaucheHaut()));\n expected.add(new Case(orig.voisinHaut()));\n\n instance.ajoutInsecte(reine, orig.voisinDroiteBas());\n instance.ajoutInsecte(reine, orig.voisinDroiteHaut());\n instance.ajoutInsecte(reine, orig.voisinGaucheBas());\n instance.ajoutInsecte(reine, orig.voisinGaucheHaut());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec l'origine, tout est libre :\");\n expected = new ArrayList<>();\n\n instance.deleteInsecte(reine, orig.voisinHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheHaut());\n instance.deleteInsecte(reine, orig.voisinGaucheBas());\n instance.deleteInsecte(reine, orig.voisinDroiteHaut());\n instance.deleteInsecte(reine, orig.voisinDroiteBas());\n instance.deleteInsecte(reine, orig.voisinBas());\n\n res = (ArrayList<Case>) instance.getCasesVoisinesOccupees(new Case(orig));\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "public build.buf.validate.conformance.harness.CaseResult.Builder getCasesBuilder(\n int index) {\n return getCasesFieldBuilder().getBuilder(index);\n }", "@Then(\"^I should get \\\"([^\\\"]*)\\\" results$\")\n public void i_should_get_given_number_results(Integer numRes)\n {\n /*\n Put the response into a String if we want to use that\n */\n String jsonResponseString = resp.asString();\n LOGGER.info(\"*** INFO: Example to show the response as a string: \" + jsonResponseString);\n\n /*\n We can also interact with the response using r.path\n */\n LOGGER.info(\"*** INFO: Example of returning first result using r.path: \" + resp.path(\"[0].\")); // prints the first result in the json\n String ageRangeValue = resp.path(\"[1].age_range\"); // Gets the value of age_range for the 2nd result into a String\n LOGGER.info(\"*** INFO: Example of getting a value one layer down from the top level: \" + ageRangeValue);\n\n\n /*\n If we're doing the former, then using with and get we can put items from the json string into lists/strings/ints etc and assert of that\n */\n List rootItemsList = with(jsonResponseString).get(\".\");\n LOGGER.info(\"*** INFO: Example of getting number of items in list: \" + rootItemsList.size());\n assertThat(rootItemsList.size(), equalTo(numRes));\n\n /*\n Or if we're using the r.path response then we can do the same as above like this:\n This could be the entire content of the @When if we were to use this in a real example\n */\n List rootItemsListPath = resp.path(\".\");\n LOGGER.info(\"*** INFO: Example of gettting number of items in path list: \" + rootItemsListPath.size());\n assertThat(rootItemsListPath.size(), equalTo(numRes));\n\n\n /*\n And to loop through each result and get the age_range values:\n */\n List rootItemsListPathToLoop = resp.path(\".\");\n int i;\n for(i = 0; i <rootItemsListPathToLoop.size(); i++){\n //LOGGER.info(\"*** INFO: Looping through each top level result in the json response: \" + r.path(\"[\" + i + \"].age_range\"));\n }\n\n /*\n Or we can do the whole thing with a separate json parser if we really want to...\n */\n JSONParser parser = new JSONParser();\n\n try {\n Object obj = parser.parse(resp.asString());\n JSONArray jsonArray = (JSONArray) obj;\n int length = jsonArray.size();\n LOGGER.info(\"*** INFO: Number of results: \" + length);\n assertThat(length, equalTo(numRes));\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void generate_test_case(int Index, StringBuffer Code, DataType[] ParamTypes, DataType ReturnType, TestCase Case)\n {\n int I;\n String[] Inputs = Case.getInput();\n String Output = Case.getOutput();\n String Desc = ReturnType.getDescription();\n\n /*\n * Generate code for setting up individual test cases\n * and calling the method with these parameters.\n */\n Code.append(\"\\t\\t// test_case_\" + Index + \"\\n\");\n Code.append(\"\\t\\tif ((Case == -1) || (Case == n)){\\n\");\n\n // Generate each input variable separately\n String additional = \"\";\n for (I = 0; I < Inputs.length; ++I)\n additional += generate_parameter(I, Code, ParamTypes[I], Inputs[I]);\n // next\n\n // Generate the output variable as the last variable\n additional += generate_parameter(Inputs.length, Code, ReturnType, Output);\n\n Code.append(\"\\n\" + additional);\n\n Code.append(\"\\t\\t\\tverify_case(n, Arg\" + Inputs.length + \", \" + m_Problem.getMethodName() + \"(\");\n\n // Generate the function call list\n for (I = 0; I < Inputs.length; ++I)\n {\n Code.append(\"Arg\" + I);\n\n if (I < (Inputs.length - 1))\n Code.append(\", \");\n // end if\n }\n // next\n\n Code.append(\"));\\n\\t\\t}\\n\\t\\tn++;\\n\\n\");\n }", "public abstract List<Callable<String>> getTestCases(final List<String> lines) throws Exception;", "public List<ICase> getCases() {\n return allCases;\n }", "@Test\n public void Scenario3() {\n\n int limit = 5;\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<String, Double> biomass = new HashMap<>();\n Map<String, Double> coal = new HashMap<>();\n Map<String, Double> imports = new HashMap<>();\n Map<String, Double> gas = new HashMap<>();\n Map<String, Double> nuclear = new HashMap<>();\n Map<String, Double> other = new HashMap<>();\n Map<String, Double> hydro = new HashMap<>();\n Map<String, Double> solar = new HashMap<>();\n Map<String, Double> wind = new HashMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n biomass.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(0).getPerc()\n );\n coal.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(1).getPerc()\n );\n imports.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(2).getPerc()\n );\n gas.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(3).getPerc()\n );\n nuclear.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(4).getPerc()\n );\n other.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(5).getPerc()\n );\n hydro.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(6).getPerc()\n );\n solar.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(7).getPerc()\n );\n wind.put(regions.get(iter).getShortname(),\n regions.get(iter).getGenerationmix().get(8).getPerc()\n );\n\n iter++;\n iterator.next();\n\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(biomass), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(coal), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(imports), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(gas), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(nuclear), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(other), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(hydro), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(solar), limit));\n System.out.println(MapUtils.limitMapAndReturnList(MapUtils.sortByValueDescending(wind), limit));\n }", "public Builder addCases(build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(value);\n onChanged();\n } else {\n casesBuilder_.addMessage(value);\n }\n return this;\n }", "public Builder addCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.add(index, value);\n onChanged();\n } else {\n casesBuilder_.addMessage(index, value);\n }\n return this;\n }", "java.util.List<com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCases> \n getConditionalCasesList();", "@DataProvider\n Object[][] compatibilityTestCases() {\n compatibilityTestCases = SCHEMA_DATA.getPositiveCasesForCompatibility().getAll();\n compatibilityTestCases.append(SCHEMA_DATA.getNegativeCasesForCompatibility().getAll());\n ArrayList<Object[]> testCases = new ArrayList<>();\n // For each of the test cases in the compatible test cases,\n // create a test case array.\n for (String testName : compatibilityTestCases.getTestCases().keySet()) {\n testCases.add(new Object[]{testName});\n }\n\n return testCases.toArray(new Object[testCases.size()][]);\n }", "@org.junit.Test\n\tpublic void allStatesOfCountry() {\n\t\tResponse response = given().when().get(\"http://services.groupkt.com/state/get/IND/all\");\n\n\t\tresponse.prettyPrint();\n\n\t\t/* 1. verify status code */\n\t\tresponse.then().statusCode(200);\n\n\t\t/* 2. verify countryCode */\n//\t\tresponse.then().body(\"RestResponse.result.country\", equalTo(\"IND\")).body(\"RestResponse.result.name\",\n//\t\t\t\tequalTo(\"Karnataka\"));\n//\t\t\n//\t\tresponse.then().body(\"RestResponse.result.name\", hasItems(\"Andhra Pradesh,Arunachal Pradesh\"));\n\t\t\n\t\t\n\t\tresponse.then().assertThat().body(\"RestResponse.result.name\", hasValue(\"Jammu and Kashmir\"));\n\t\t\n//\t\t\n//\t\tJsonPath jsonPath = new JsonPath(response.toString()).setRoot(\"RestResponse\");\n//\t\tJsonObject lottoId = jsonPath.getJsonObject(\"result\");\n//\t\tList<Integer> winnerIds = jsonPath.get(\"result.id\");\n\n\t}", "public static List<TaskVO> filterFinishedTasksByCase(ICase iCase) {\r\n List<TaskVO> currentTasks = new ArrayList<TaskVO>();\r\n if (iCase != null && iCase.getTasks() != null && iCase.getTasks().size() > 0) {\r\n for (ITask iTask : iCase.getTasks()) {\r\n if (TaskState.DONE.equals(iTask.getState())) {\r\n currentTasks.add(ConverterUtils.convertITaskToTaskVO(iTask));\r\n }\r\n }\r\n }\r\n return currentTasks;\r\n }", "public static Node buildTree(ArrayList<Case> cases) {\n\t\tint healthy = 0;\n\t\t// Count the number of healthy cases in the current set\n\t\tfor (Case c : cases) {\n\t\t\tif (c.isHealthy) healthy++;\n\t\t}\n\t\t// If all cases are either healthy or unhealthy, this can be a result node and so is set as such (to the correct value)\n\t\tif (healthy == cases.size() || healthy == 0) {\n\t\t\treturn new Node(cases.get(0).isHealthy);\n\t\t}\n\t\telse {\n\t\t\t// Otherwise we have a mix, so find the best attribute and matching threshold to split on\n\t\t\tAttribute attribute = chooseAttribute(cases);\n\t\t\tdouble threshold = chooseAttributeThreshold(cases, attribute);\n\t\t\tNode tree = new Node();\n\t\t\ttree.attribute = attribute;\n\t\t\ttree.threshold = threshold;\n\t\t\tArrayList<Case> casesLessThan = new ArrayList<Case>();\n\t\t\tArrayList<Case> casesGreaterThan = new ArrayList<Case>();\n\t\t\t// Get the appropriate value and use that to sort into two lists, one for each side of the threshold\n\t\t\tfor (Case c : cases) {\n\t\t\t\tdouble value = 0;\n\t\t\t\tswitch (attribute) {\n\t\t\t\tcase K:\n\t\t\t\t\tvalue = c.k;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Na:\n\t\t\t\t\tvalue = c.na;\n\t\t\t\t\tbreak;\n\t\t\t\tcase CL:\n\t\t\t\t\tvalue = c.cl;\n\t\t\t\t\tbreak;\n\t\t\t\tcase HCO3:\n\t\t\t\t\tvalue = c.hco3;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Endotoxin:\n\t\t\t\t\tvalue = c.endotoxin;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Aniongap:\n\t\t\t\t\tvalue = c.aniongap;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PLA2:\n\t\t\t\t\tvalue = c.pla2;\n\t\t\t\t\tbreak;\n\t\t\t\tcase SDH:\n\t\t\t\t\tvalue = c.sdh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase GLDH:\n\t\t\t\t\tvalue = c.gldh;\n\t\t\t\t\tbreak;\n\t\t\t\tcase TPP:\n\t\t\t\t\tvalue = c.tpp;\n\t\t\t\t\tbreak;\n\t\t\t\tcase BreathRate:\n\t\t\t\t\tvalue = c.breathRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PCV:\n\t\t\t\t\tvalue = c.pcv;\n\t\t\t\t\tbreak;\n\t\t\t\tcase PulseRate:\n\t\t\t\t\tvalue = c.pulseRate;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Fibrinogen:\n\t\t\t\t\tvalue = c.fibrinogen;\n\t\t\t\t\tbreak;\n\t\t\t\tcase Dimer:\n\t\t\t\t\tvalue = c.dimer;\n\t\t\t\t\tbreak;\n\t\t\t\tcase FibPerDim:\n\t\t\t\t\tvalue = c.fibPerDim;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tif (value < threshold) {\n\t\t\t\t\tcasesLessThan.add(c);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tcasesGreaterThan.add(c);\n\t\t\t\t}\n\t\t\t}\n\t\t\t// Recurse on these sets to create subtrees\n\t\t\ttree.lessThanChildren = buildTree(casesLessThan);\n\t\t\ttree.greaterThanChildren = buildTree(casesGreaterThan);\n\t\t\t\n\t\t\treturn tree;\n\t\t}\n\t}", "public void initCases(){\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n \n for(int i = 0; i < cases.length; i++){\n \tcases[i] = reader.readLine();\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t}", "private ArrayList<ArrayList<Case>> getCurrentData(){\n\t\tArrayList<ArrayList<Case>> d = new ArrayList<ArrayList<Case>>();\n\t\tfor(int i=0; i<DataCases.size(); i++){\n\t\t\td.add(new ArrayList<Case>());\n\t\t\tfor(int j = 0; j<DataCases.get(0).size();j++){\n\t\t\t\td.get(i).add(new Case(DataCases.get(i).get(j).state()));\n\t\t\t}\n\t\t}\n\t\treturn d;\n\t}", "@Override\n public List<PackagingCandidate> extractPackagingCandidates(List<String> testCases) {\n List<PackagingCandidate> candidates = new ArrayList<>();\n for(String testCase: testCases){\n //Split the test case into 2 ==> Weight | list of items\n String[] weightXItems = testCase.split(\" : \");\n\n //Extract weight from first part of the split result\n int weight = Integer.parseInt(weightXItems[0].trim());\n\n //Extract list of items from second part of the split result\n List<Item> items = extractItems(weightXItems[1]);\n\n candidates.add(new PackagingCandidate(weight, items));\n }\n return candidates;\n }", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public Builder addAllCases(\n java.lang.Iterable<? extends build.buf.validate.conformance.harness.CaseResult> values) {\n if (casesBuilder_ == null) {\n ensureCasesIsMutable();\n com.google.protobuf.AbstractMessageLite.Builder.addAll(\n values, cases_);\n onChanged();\n } else {\n casesBuilder_.addAllMessages(values);\n }\n return this;\n }", "java.util.List<org.apache.calcite.avatica.proto.Responses.ResultSetResponse> \n getResultsList();", "private void createCase(int growFactor, Result[] myResults, int index) {\n\t\tint[] myArray1 = createArray(growFactor, growFactor-1);\n\t\tmyResults[index] = new Result(growFactor, linealSearch(myArray1, growFactor-1), binarySearch(myArray1, growFactor-1));\n\t}", "public static List<JSONObject> extractResults(JSONObject jObj) throws JSONException\n {\n List<JSONObject> list = new ArrayList<>();\n JSONArray results = jObj.getJSONArray(FIELD_RESULTS);\n\n for (int i = 0; i < results.length(); i++)\n list.add(results.getJSONObject(i));\n\n\n return list;\n }", "@Test\n public void Scenario1() {\n\n Response resp = reqSpec.request().get();\n\n DataWrapper respBody = resp.as(DataWrapper.class);\n List<Regions> regions = respBody.getData().get(0).getRegions();\n\n Map<Integer, String> sortedIntensity = new TreeMap<>();\n\n try {\n\n ListIterator iterator = regions.listIterator();\n int iter = 0;\n\n while (iterator.hasNext()) {\n\n sortedIntensity.put(regions.get(iter).getIntensity().getForecast(),\n regions.get(iter).getShortname());\n iter++;\n iterator.next();\n }\n\n } catch (NullPointerException npe) {\n npe.printStackTrace();\n }\n\n System.out.println(\"Regions sorted by intensity forecast:\");\n System.out.println(sortedIntensity);\n }", "List<T> getResults();", "@Test\n public void testListOfMapsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableListMap.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).data);\n assertEquals(numberStrings[j], jtc.JsonableListMap.get(i).get(\"value\" + (j + 1)).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableListMap\\\":[{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"}},{\\\"value3\\\":{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"},\\\"value1\\\":{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},\\\"value2\\\":{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"}}]\"));\n }", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "@Test\n public void Scenario2() {\n\n softAssert = new SoftAssert();\n\n Response resp = reqSpec.request().get();\n\n List<List<Number>> allPerc = resp.jsonPath().getList(\"data.regions.generationmix[0].perc\");\n\n LinkedList<String> regions = new LinkedList<>();\n regions.addAll(resp.jsonPath().getList(\"data.regions.shortname[0]\"));\n\n for (List<Number> perc : allPerc) {\n\n String name = regions.pop();\n\n float result = CalculationUtils.sumListElements(perc);\n\n System.out.println(name);\n System.out.println(\"Sum of perc equals: \" + result);\n System.out.println(\"------------\");\n\n softAssert.assertEquals(100.0, result, 0.1);\n }\n\n softAssert.assertAll();\n }", "public void testCases(MyArrayList myArrayList, Results results) {\r\n arrayInsert(myArrayList, results, 5);\r\n arrayInsert(myArrayList, results, 11);\r\n arrayInsert(myArrayList, results, 96);\r\n arrayInsert(myArrayList, results, 69);\r\n arrayIndex(myArrayList, results, 11);\r\n arraySize(myArrayList, results);\r\n arraySum(myArrayList, results);\r\n arraySearch(myArrayList, results, 5);\r\n arrayInsertLargeNumber(myArrayList, results, 555555);\r\n arrayInsertNegativeNumber(myArrayList, results, -55555);\r\n arrayIncreaaseSize(myArrayList, results);\r\n arrayRemove(myArrayList, results, 96);\r\n arrayCompact(myArrayList, results, 11);\r\n }", "public static <JSONObjectJavaInstance> int GenericTestScenarios(JSONObjectJavaInstance o, String tp_SearchValue, int tp_TestNumber, String tp_TestDescription, boolean tp_debug) throws IOException {\t\n\n\n //***********************************************************************\n // Declaration of variables\n //***********************************************************************\t\t\n\t\tint found = 0;\n int i = 0;\n \n //***********************************************************************\n\t// Print headers of the test cases . We put it here to skip the For loop\n\t//***********************************************************************\n\tSystem.out.println(\"\\n\\n**********************************************************************************\");\n\tif (tp_TestNumber == 1) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \t\n\t\tSystem.out.println(\"JSON Object ID \\t JSON obj name \\t\\tSearch Key \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" ); \n\t}\n\t\n\t\n\t\n\tif (tp_TestNumber == 2) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search date \\t\\t\\t JSON Date \\t\\t ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 3) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Search watchers_count \\t JSON Watchers_count ==> Test Progress \\n -------------- -------------- --------- ------------- \" );\n\t}\n \n\t\n\t\n\tif (tp_TestNumber == 4) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t\\tSearch Key \\t\\t Home page \\t ==> Test Progress \\n -------------- -------------- ------------- ----------------- ----------------- \" );\n\t\n\t}\n\n\t\n\t\n\tif (tp_TestNumber == 5) { \n\t\tSystem.out.println(\"*****TestNumber \" + tp_TestNumber + \" Validation started \\n\" + \"*****Description :\" + tp_TestDescription); \n\t\tSystem.out.println(\"**********************************************************************************\"); \n\t\tSystem.out.println(\"JSON Object ID \\t Name \\t\\t Search Key \\t Open issues\\t\\t ==> Test Progress \\n -------------- -------------- ------------ --------- ------------- \" );\n\t\n\t}\n\n\n\t//***********************************************************************\n\t// The logic for each test case starts here.\n\t// Here we loop in only 28 times(this number can be changed in future if you want to cover more data)\n\t// as we don't want to print the results of the whole test results from the Github object.\n\t// Using a for loop we loop through the results and validate our Git data result with the serach key.\n\t// If the Key is found then we return 1 else we return 0 to the calling function.\n\t// \n\t//*********************************************************************** \n\tfor (i=0; i < 29 ; i++)\t{\t\t\t\n\n\t\tif (tp_debug) { System.out.println(\"test parameter key \" + tp_SearchValue);}\n\n\t //***********************************************************************\n\t // The Logic to validate for every test scenario is here.\n\t\t// In future when a new test scenario has to be implemented then we just have to add 1 more elseif condition here.\n\t\t// We use the break statement to break the for loop when test is validated. \n\t\t// Future performance Enhancements : Transform this to a Switch Case statement. Doing this now is causing a issue.\n\t\t//***********************************************************************\n\t\t\n\t\t// Test case 1\n\t\tif (tp_TestNumber == 1) { \n\t\t\t\t\tif (((JSONObjectRootClass) o).getItems().get(i).getName().equals(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName() ,25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> SAME . BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\t break;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println( ((JSONObjectRootClass) o).getItems().get(i).getRepository().getId() + \"\\t\\t\" + StringUtils.rightPad( ((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + \"== \"+ tp_SearchValue + \"\\t\"+ \" ==> NOT SAME , COUNTINUE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t }\n\t\t\t\t// Test case 2\n\t } else if ((tp_TestNumber == 2)) { \n\t \tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\"); }\n\t \t ZonedDateTime zonedDateTime1 = ZonedDateTime.parse(tp_SearchValue);\n\t \t\t ZonedDateTime zonedDateTime2 = ZonedDateTime.parse(((JSONObjectRootClass) o).getItems().get(i).getCreated_at());\n\t\t \t\t if (zonedDateTime1.compareTo(zonedDateTime2) < 0 ) {\n\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date <= JSON date) so CONTINUE\");\n\t found = 1;\n\t } else {\n\t \t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\"+ zonedDateTime1 + \" \\t < \"+ zonedDateTime2 + \"\\t\"+ \"==> (Search Date > JSON date) so BREAK\");\n\t found = 0;\n\t \t break;\n\t } \n\n\t\t \t// Test case 3\n\t } else if (tp_TestNumber == 3) { \n\t \t \n\t \tif ( (((JSONObjectRootClass) o).getItems().get(i).getWatchers_count()) >= ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count()) {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , CONTINUE\");\n\t \t\tfound = 1;\n\t \t} else {\n\t \t\tSystem.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i).getWatchers_count() + \"\\t\\t\\t\" + ((JSONObjectRootClass) o).getItems().get(i+1).getWatchers_count() + \"\\t\\t\"+ \"==> Descreasing Order , BREAK \");\n\t \t\tfound = 0;\n\t \t\tbreak;\n\t \t}\n\t // Test case 4\n\t } else if (tp_TestNumber == 4) { \n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() == tp_SearchValue) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t ==> Set to false, BREAK\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t\t\tbreak;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getHas_wiki() + \" \\t\\t ==> Set to true, CONTINUTE\");\n\t\t\t\t \t found = 0;\n\t\t\t\t\t\t ;\n\t\t\t\t }\n\t // Test case 5\n\t } else if (tp_TestNumber == 5 ) {\n\t \tif (((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() >= Integer.valueOf(tp_SearchValue)) { \n\t\t\t\t\t\tif (tp_debug) { System.out.println(\"print Total count in functions --> Loop(\"+ i + \")\" + \"found so breaking the loop\"); }\n\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad( (((JSONObjectRootClass) o).getItems().get(i).getName() ),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" found , CONTINUE\");\n\t\t\t\t\t\tfound = 1;\n\t\t\t\t } else {\n\t\t\t\t\t\t System.out.println(((JSONObjectRootClass) o).getItems().get(i).getId() + \"\\t\" + StringUtils.rightPad(((JSONObjectRootClass) o).getItems().get(i).getName(),25,\" \") + tp_SearchValue + \" \\t\\t \" + ((JSONObjectRootClass) o).getItems().get(i).getOpen_issues() + \" \\t\\t ==> Open_issues > \" + tp_SearchValue + \" not found , CONTINUE\");\n\t\t\t\t }\t\t \t\n\t \t\n\t } // End of If else if\n\n\t }\t//End of For loop\n\tSystem.out.println(\"**********************************************************************************\");\t\n\t\n\treturn found;\n \n\t}", "public Builder setCases(\n int index, build.buf.validate.conformance.harness.CaseResult value) {\n if (casesBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensureCasesIsMutable();\n cases_.set(index, value);\n onChanged();\n } else {\n casesBuilder_.setMessage(index, value);\n }\n return this;\n }", "List<GameResult> getAllResults();", "interface FullCase {\n\n static CaseData build() {\n return CaseData.builder()\n .textField(TEXT)\n .numberField(NUMBER)\n .yesOrNoField(YES_OR_NO)\n .phoneUKField(PHONE_UK)\n .emailField(EMAIL)\n .moneyGBPField(MONEY_GBP)\n .dateField(DATE)\n .dateTimeField(DATE_TIME)\n .textAreaField(TEXT_AREA)\n .fixedListField(FIXED_LIST)\n .multiSelectListField(MULTI_SELECT_LIST)\n .collectionField(new AATCaseType.CollectionItem[]{\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_1),\n new AATCaseType.CollectionItem(null, COLLECTION_VALUE_2)\n })\n .complexField(new AATCaseType.ComplexType(COMPLEX_TEXT, COMPLEX_FIXED_LIST))\n .addressUKField(\n AATCaseType.AddressUKField.builder()\n .addressLine1(ADDRESS_LINE_1)\n .addressLine2(ADDRESS_LINE_2)\n .addressLine3(ADDRESS_LINE_3)\n .postTown(ADDRESS_POST_TOWN)\n .county(ADDRESS_COUNTY)\n .postCode(ADDRESS_POSTCODE)\n .country(ADDRESS_COUNTRY)\n .build()\n )\n .build();\n }\n }", "@Test\n public void getResultTest() throws IOException {\n System.setProperty(\"REPO_HG_19_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"REPO_HG_38_PATH\", REPO_PATH_RANGES);\n System.setProperty(\"MAX_RANGE_RECORDS_IN_RESULT\", \"10\");\n\n // test common valid flow\n Response response = new Main().getResult19(\"X:77633124\");\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n JsonNode result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n ArrayNode homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n ArrayNode hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n // test lower case\n response = new Main().getResult(\"x:77633124\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n result = ((ArrayNode) new ObjectMapper().readTree((String)response.getEntity()).get(\"entries\")).get(0);\n Assert.assertEquals(\"G\", result.get(\"ref\").asText());\n Assert.assertEquals(\"A\", result.get(\"alt\").asText());\n homArray = (ArrayNode) result.get(\"hom\");\n Assert.assertEquals(1, homArray.size());\n Assert.assertEquals(\"SRR14860530\", homArray.get(0).asText());\n hetArray = (ArrayNode) result.get(\"het\");\n Assert.assertEquals(1, hetArray.size());\n Assert.assertEquals(\"SRR14860527\", hetArray.get(0).asText());\n\n //test range query\n response = new Main().getResult(\"2:25234482-26501857\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n\n JsonNode jsonResult = new ObjectMapper().readTree((String)response.getEntity());\n Assert.assertEquals(11, jsonResult.get(\"count\").asInt());\n\n ArrayNode dataArray = (ArrayNode)jsonResult.get(\"data\");\n Assert.assertEquals(10, dataArray.size());\n\n JsonNode first = dataArray.get(0);\n Assert.assertEquals(25234482, first.get(\"pos\").asInt());\n Assert.assertEquals(\"C\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"T\", ((ArrayNode)first.get(\"entries\")).get(0).get(\"alt\").asText());\n\n JsonNode last = dataArray.get(9);\n Assert.assertEquals(25313958, last.get(\"pos\").asInt());\n Assert.assertEquals(\"G\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"ref\").asText());\n Assert.assertEquals(\"A\", ((ArrayNode)last.get(\"entries\")).get(0).get(\"alt\").asText());\n\n // test empty case\n response = new Main().getResult(\"x:15000112\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(OK.getStatusCode(), response.getStatus());\n System.out.println(response.getEntity());\n Assert.assertNotNull(response.getEntity());\n Assert.assertEquals(EMPTY_RESULT, response.getEntity());\n\n // test bad input 1\n response = new Main().getResult(\"adkwjfh\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 2\n response = new Main().getResult(\"s:sss\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 3\n response = new Main().getResult(\"s:12345\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n\n // test bad input 4\n response = new Main().getResult(\"x:500000000\", REPO_PATH_RANGES, 10);\n Assert.assertEquals(BAD_REQUEST.getStatusCode(), response.getStatus());\n }", "@Override\n\tpublic int getNumberOfCase() {\n\t\treturn NumberOfCase;\n\t}", "@Test\n public void testMapOfListsOfJsonables() {\n JsonableTestClassWithMaps jtc = Jsonable.loadFromFile(\"testFiles/mapTest.json\", JsonableTestClassWithMaps.class);\n assertEquals(3, jtc.JsonableMapGrid.size());\n String[] numberStrings = new String[] { \"one\", \"two\", \"three\" };\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).data);\n assertEquals(numberStrings[j],\n jtc.JsonableMapGrid.get(\"value\" + (i + 1)).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(\n jsonString,\n Matchers\n .containsString(\"\\\"JsonableMapGrid\\\":{\\\"value3\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}],\\\"value1\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],\\\"value2\\\":[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}]}\"));\n }", "public static ArrayList<CoronaCase> getCases()\n\t{\n\t\treturn coronaCase;\n\t}", "@Test\n\tpublic void validateAll() {\n\n\t\tgiven()\n\t\t.when()\n\t\t.get(\"https://restcountries.eu/rest/v2/all\")\n\t\t.then()\n\t\t.and().body(\"name\", hasItem(\"India\"))\n\t\t.and().body(\"find { d -> d.name == 'India' }.borders\", hasItem(\"CHN\"));\n\n\t\tString name = returnValueByKeys(\"India\", \"name\");\n\t\tString capital = returnValueByKeys(\"India\", \"capital\");\n\t\tString region = returnValueByKeys(\"India\", \"region\");\n\t\tString population = returnValueByKeys(\"India\", \"population\");\n\t\tList borders = returnValuesByKeys(\"India\", \"borders\");\n\n\t\tSystem.out.println(name + \" \" + capital + \" \" + region + \" \" + population);\n\t\tfor (Object border : borders) {\n\t\t\tSystem.out.print(border + \" \");\n\t\t}\n\n\t}", "com.google.protobuf.ByteString getExamples(int index);", "com.google.protobuf.ByteString getExamples(int index);", "public CaseListOutMem() {\n \n cases = null;\n}", "@Test\n public void testCreateListCriteria() throws Exception {\n System.out.println(\"createListCriteria\");\n \n Map<String, String> map = new TreeMap<String,String>();\n map.put(\"1\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\");\n \n map.put(\"2\", \"{\\\"key\\\":{\\\"FunctionalEnvironment\\\":\\\"Production\\\",\\\"Delivery\\\":\\\"***REMOVED***\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\");\n \n \n \n String expResult1 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\",\\\"Manufacturer\\\"]}\";\n String expResult2 = \"{\\\"key\\\":{\\\"Delivery\\\":\\\"***REMOVED***\\\",\\\"FunctionalEnvironment\\\":\\\"Production\\\"},\"\n + \"\\\"values\\\":[\\\"Company\\\",\\\"VirtualDC\\\"]}\";\n \n \n TreeMap<String,String> key = new TreeMap<>();\n List<String> values =new ArrayList<String>();\n CriteriaFilter instance = new CriteriaFilter(key, values);\n \n List<CriteriaFilter> resultList = instance.createListCriteria(map);\n \n String result1 = \"\";\n String result2 = \"\";\n for (int i = 0 ; i < resultList.size() ; i++){\n result1 = resultList.get(0).toString();\n result2 = resultList.get(1).toString();\n break;\n }\n System.out.println(result1);\n System.out.println(expResult1);\n System.out.println(result2);\n System.out.println(expResult2);\n \n \n \n assertEquals(expResult1, result1);\n assertEquals(expResult2, result2);\n \n }", "public static void readGhostCases(String name, int limitSize) {\n\t\t\n\t\tArrayList<JSONObject> json=new ArrayList<JSONObject>();\n\t JSONObject obj;\n\t // The name of the file to open.\n\t String fileName = \"bin/es/ucm/fdi/ici/c1920/practica4/grupo04/data/\".replace(\"/\", java.io.File.separator) + name + \".json\";\n\n\t // This will reference one line at a time\n\t String line = null;\n\n\t try {\n\t // FileReader reads text files in the default encoding.\n\t FileReader fileReader = new FileReader(fileName);\n\n\t // Always wrap FileReader in BufferedReader.\n\t BufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t while((line = bufferedReader.readLine()) != null) {\n\t obj = (JSONObject) new JSONParser().parse(line);\n\t json.add(obj);\n\t }\n\t // Always close files.\n\t bufferedReader.close(); \n\t }\n\t catch(FileNotFoundException ex) {\n\t System.out.println(\"Unable to open file '\" + fileName + \"'\"); \n\t }\n\t catch(IOException ex) {\n\t System.out.println(\"Error reading file '\" + fileName + \"'\"); \n\t // Or we could just do this: \n\t // ex.printStackTrace();\n\t } catch (ParseException e) {\n\t // TODO Auto-generated catch block\n\t e.printStackTrace();\n\t }\n\t \n\t \n\t // LECTURA INICIAL DE MAXIMA PARTIDA GUARDADA\n\t \n\t int maxMatch = -1;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \tJSONObject jo = json.get(j);\t \t\n\t \tlong match = (long) jo.get(\"match\");\n\t \t\n\t \tmaxMatch = Math.max(maxMatch, (int)match);\n\t }\n\t \n\t maxMatch++;\n\t \n\t int matchCont = GhostDataBase.getMatchCont();\n\t \n\t if (matchCont == -1)\n\t \tGhostDataBase.setMatchCont(maxMatch);\n\t \n\t int minMatch = maxMatch - (GhostDataBase.getMatchMaxSaved()-1);\n\t \n\t int cont = 0;\n\t \n\t for(int j = 0; j< json.size(); j++) {\n\t \t\n\t \tif(cont > limitSize)\n\t \t\tbreak;\n\t \t\n\t\t JSONObject jo = json.get(j);\n\t\t \n\t\t long match = (long) jo.get(\"match\");\n\t\t \n\t\t if((int)match < minMatch)\n\t\t \tcontinue;\n\t \t\n\t \tlong nearestPPillToPacman = (long) jo.get(\"nearestPPillToPacman\");\n\t\t\tlong move = (long) jo.get(\"move\");\n\t\t\t\n\t\t\t\n\t\t\tdouble[] distanceToPacman = new double[4];\t\t\t\n\t\t\tJSONArray lm = (JSONArray) jo.get(\"distanceToPacman\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tdistanceToPacman[p] = (double) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tint[] characterIndex = new int[5];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"characterIndex\");\t\t\t\n\t\t\tfor(int p = 0; p < 5; p++) {\n\t\t\t\tlong character = (long) lm.get(p);\n\t\t\t\tcharacterIndex[p] = (int) character;\n\t\t\t}\n\t\t\t\n\t \n\t\t\tboolean[] edibleGhosts = new boolean[4];\t\t\t\n\t\t\tlm = (JSONArray) jo.get(\"edibleGhosts\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tedibleGhosts[p] = (boolean) lm.get(p);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tdouble [][] distanceToPPills = new double[4][4];\n\t\t\tlm = (JSONArray) jo.get(\"distanceToPPills\");\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\t\n\t\t\t\tJSONArray lm1 = (JSONArray) lm.get(p);\t\t\t\t\n\t\t\t\tfor(int q = 0; q < 4; q++) {\n\t\t\t\t\tdistanceToPPills[p][q] = (double)lm1.get(q);\n\t\t\t\t}\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tdouble [] distancePCToPPills = new double[4];\n\t\t\tlm = (JSONArray) jo.get(\"distancePCToPPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\n\t\t\t\tdistancePCToPPills[p] = (double)lm.get(p);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tboolean[] activePPills = new boolean[4];\n\t\t\tlm = (JSONArray) jo.get(\"activePPills\");\t\t\t\n\t\t\tfor(int p = 0; p < 4; p++) {\t\t\t\t \n\t\t\t\tactivePPills[p] = (boolean) lm.get(p);\n\t\t\t}\n\t\t\t\n\t\t\tGhostCase c = new GhostCase(distanceToPacman, edibleGhosts, \n\t\t\t\t\tdistanceToPPills, distancePCToPPills, activePPills, characterIndex, (int)nearestPPillToPacman, (int)move, (int)match);\n\t\t\t\n\t\t\tGhostDataBase.addCase(c);\n\t\t\t\n\t cont++;\n\t }\n\t \n\t GhostDataBase.increaseMatchCont();\n\t}", "public List<TestGroupEntryResult> getTestGroupEntryResults() {\n\n\t\tList<TestGroupEntryResult> tgEntryResults\n\t\t\t= new ArrayList<TestGroupEntryResult>();\n\n\t\tfor ( int i=0; i<myTestGroupEntryResults.size(); i++ ) {\n\t\t\ttgEntryResults.add(myTestGroupEntryResults.get(i));\n\t\t}\n\n\t\treturn tgEntryResults;\n\t}", "private Map<StatusEnum, Integer> getStatsForResults(Map<String, StatusEnum> results) {\n Map<StatusEnum, Integer> result = new HashMap<>();\n int passed = 0;\n int failed = 0;\n int skipped = 0;\n int unfinished = 0;\n for (String key : results.keySet()) {\n switch (results.get(key)) {\n case PASSED:\n passed++;\n break;\n case SKIPPED:\n skipped++;\n break;\n case FAILED:\n failed++;\n break;\n case UNFINISHED:\n unfinished++;\n break;\n }\n }\n result.put(StatusEnum.PASSED, passed);\n result.put(StatusEnum.SKIPPED, skipped);\n result.put(StatusEnum.FAILED, failed);\n result.put(StatusEnum.UNFINISHED, unfinished);\n result.put(StatusEnum.TOTAL, passed + skipped + failed + unfinished);\n return result;\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "public void addCase()\n {\n\tint pos_y = customRandom(4);\n\tint pos_x = customRandom(4);\n\t\t\n\twhile (cases[pos_y][pos_x].getValue() != 0)\n\t{\n pos_y = customRandom(4);\n pos_x = customRandom(4);\n\t}\n\t\t\n\tcases[pos_y][pos_x] = new Case(2);\n }", "public List<ICaseLog> getCaseLog() {\n return caseLog;\n }", "public Builder clearCases() {\n if (casesBuilder_ == null) {\n cases_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000008);\n onChanged();\n } else {\n casesBuilder_.clear();\n }\n return this;\n }", "private List<Map<StatusEnum, GraphPoint>> getTestsStat(List<Test> tests) {\n List<Map<StatusEnum, GraphPoint>> result = new ArrayList<>();\n Map<String, StatusEnum> testsResultMap = new HashMap<>();\n Date tmpEndTime = null;\n Calendar periodTime = new GregorianCalendar();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\");\n int testsSize = tests.size();\n int i = 0;\n for (Test test : tests) {\n i++;\n if (tmpEndTime == null) {\n tmpEndTime = test.getEndTime();\n periodTime.setTime(tmpEndTime);\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n }\n if (test.getFailReasonToTest() == null || !test.getFailReasonToTest().getFailReason().isStatsIgnored()) {\n if (test.getStatus() != null) {\n testsResultMap.put(test.getMethodName(), test.getStatus().getStatusEnum());\n } else {\n testsResultMap.put(test.getMethodName(), StatusEnum.UNFINISHED);\n }\n }\n if (testsSize == i || test.getEndTime().getTime() >= periodTime.getTimeInMillis()) {\n Map<StatusEnum, GraphPoint> onePeriodResult = new LinkedHashMap<>();\n Map<StatusEnum, Integer> stats = getStatsForResults(testsResultMap);\n String tmpXDate = dateFormat.format(periodTime.getTime());\n onePeriodResult.put(StatusEnum.TOTAL, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.TOTAL))));\n onePeriodResult.put(StatusEnum.PASSED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.PASSED))));\n onePeriodResult.put(StatusEnum.FAILED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.FAILED))));\n onePeriodResult.put(StatusEnum.SKIPPED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.SKIPPED))));\n onePeriodResult.put(StatusEnum.UNFINISHED, new GraphPoint(tmpXDate, String.valueOf(stats.get(StatusEnum.UNFINISHED))));\n result.add(onePeriodResult);\n tmpEndTime = test.getEndTime();\n periodTime.add(Calendar.DAY_OF_YEAR, Config.GRAPH_ONE_PERIOD);\n testsResultMap.clear();\n }\n }\n return result;\n }", "@SuppressWarnings(\"unused\") // used e.g. by campaigns report\n public static int getActiveCases(List<AccessCertificationCaseType> caseList, int campaignStageNumber, AccessCertificationCampaignStateType state) {\n int open = 0;\n for (AccessCertificationCaseType aCase : caseList) {\n if (aCase.getReviewFinishedTimestamp() == null) {\n open++;\n }\n }\n return open;\n }", "public CriminalCaseMap getCases(String employeeId);", "public String createJSON(IInternalContest contest, Run run) {\n\n StringBuilder stringBuilder = new StringBuilder();\n\n appendPair(stringBuilder, \"id\", run.getNumber());\n stringBuilder.append(\", \");\n\n appendPair(stringBuilder, \"submission_id\", run.getNumber());\n stringBuilder.append(\", \");\n\n if (run.isJudged()) {\n ElementId judgementId = run.getJudgementRecord().getJudgementId();\n Judgement judgement = contest.getJudgement(judgementId);\n\n appendPair(stringBuilder, \"judgement_type_id\", judgement.getAcronym());\n } else {\n\n appendPairNullValue(stringBuilder, \"judgement_type_id\");\n }\n\n // start_time TIME yes no provided by CCS absolute time when judgement started\n // start_contest_time RELTIME yes no provided by CCS contest relative time when judgement started\n // end_time TIME yes yes provided by CCS absolute time when judgement completed\n // end_contest_time RELTIME yes yes provided by CCS contest relative time when judgement completed \n\n // [{\"id\":\"189549\",\"submission_id\":\"wf2017-32163123xz3132yy\",\"judgement_type_id\":\"CE\",\"start_time\":\"2014-06-25T11:22:48.427+01\",\n // \"start_contest_time\":\"1:22:48.427\",\"end_time\":\"2014-06-25T11:23:32.481+01\",\"end_contest_time\":\"1:23:32.481\"},\n // {\"id\":\"189550\",\"submission_id\":\"wf2017-32163123xz3133ub\",\"judgement_type_id\":null,\"start_time\":\"2014-06-25T11:24:03.921+01\",\n // \"start_contest_time\":\"1:24:03.921\",\"end_time\":null,\"end_contest_time\":null}\n // ]\n\n Calendar wallElapsed = calculateElapsedWalltime(contest, run.getElapsedMS());\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_time\", wallElapsed); // absolute time when judgement started ex. 2014-06-25T11:24:03.921+01\n\n stringBuilder.append(\", \");\n appendPair(stringBuilder, \"start_contest_time\", XMLUtilities.formatSeconds(run.getElapsedMS())); // contest relative time when judgement started. ex. 1:24:03.921\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_time\"); // TODO CLICS DATA ADD - add code to save in JudgementRecord in Executable\n\n stringBuilder.append(\", \");\n appendPairNullValue(stringBuilder, \"end_contest_time\"); // TODO CLICS DATA ADD add code to save in JudgementRecord - in Executable\n\n return stringBuilder.toString();\n }", "public List<Testcasemodel> gettestcasesbyrequirementid(String reqid){\n\t\treturn mongorepo.findByReqid(reqid);\n\t}", "@Test\n public void testOccupees() {\n System.out.println(\"=============================================\");\n System.out.println(\"Test occupees ==============================>\\n\");\n\n HexaPoint orig = new HexaPoint(0, 0, 0);\n Plateau instance = new Plateau();\n Reine reine = new Reine(new JoueurHumain(instance, true, NumJoueur.JOUEUR1));\n\n System.out.println(\"test avec aucune case occupees :\");\n ArrayList<Case> expected = new ArrayList<>();\n\n ArrayList<Case> res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec une case occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n\n instance.ajoutInsecte(reine, orig);\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"test avec 6 cases occupees :\");\n\n expected = new ArrayList<>();\n expected.add(new Case(orig));\n expected.add(new Case(new HexaPoint(0, -1, 1)));\n expected.add(new Case(new HexaPoint(0, -2, 2)));\n expected.add(new Case(new HexaPoint(0, -3, 3)));\n expected.add(new Case(new HexaPoint(0, -4, 4)));\n expected.add(new Case(new HexaPoint(0, -5, 5)));\n\n instance.ajoutInsecte(reine, new HexaPoint(0, -1, 1));\n instance.ajoutInsecte(reine, new HexaPoint(0, -2, 2));\n instance.ajoutInsecte(reine, new HexaPoint(0, -3, 3));\n instance.ajoutInsecte(reine, new HexaPoint(0, -4, 4));\n instance.ajoutInsecte(reine, new HexaPoint(0, -5, 5));\n\n res = (ArrayList<Case>) instance.occupees();\n\n arrayCorresponds(res, expected);\n System.out.println(\"\\u001B[32m\" + \"\\t Passed ✔ \\n\");\n\n System.out.println(\"\");\n }", "@Test\n public void testListOfListsOfJsonables() {\n JsonableTestClassWithList jtc = Jsonable.loadFromFile(\"testFiles/listTest.json\", JsonableTestClassWithList.class);\n assertEquals(3, jtc.JsonableGrid.size());\n String[] numberStrings = new String[] {\"one\", \"two\", \"three\"};\n for(int i = 0; i < 3; i++) {\n for(int j = 0; j < 3; j++) {\n assertEquals(numberStrings[i], jtc.JsonableGrid.get(i).get(j).data);\n assertEquals(numberStrings[j], jtc.JsonableGrid.get(i).get(j).detail);\n }\n }\n String jsonString = jtc.toJSON().toString();\n assertThat(jsonString, Matchers.containsString(\"\\\"JsonableGrid\\\":[[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"one\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"one\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"two\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"two\\\"}],[{\\\"detail\\\":\\\"one\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"two\\\",\\\"data\\\":\\\"three\\\"},{\\\"detail\\\":\\\"three\\\",\\\"data\\\":\\\"three\\\"}]]\"));\n }", "@Test\n\tpublic void ListAllCountry() {\n\t\tRequestSpecification requestSpecification = new base().getRequestSpecification();\n\t\tString json = given().get(Endpoint.GET_COUNTRY).then().extract().asString();\n\t\tJsonPath jp = new JsonPath(json);\n\t\tList<String> list = jp.get(\"name\");\n\t\tSystem.out.println(\"Country's are -------\" + list.get(0));\n\t}", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void loadBedResults(JSONObject results) {\n\t\t//clear prior, set to zero\n\t\tidBedCount = new double[numberRecordsPerQuery];\n\n\t\t//any results? if no results then the count is zero\n\t\tif (results.has(\"queryResults\")){\n\t\t\tJSONArray ja = results.getJSONArray(\"queryResults\");\n\t\t\tint numWithHits = ja.length();\n\t\t\tfor (int i=0; i< numWithHits; i++){\n\t\t\t\tJSONObject jo = ja.getJSONObject(i);\n\t\t\t\tdouble numHits = jo.getDouble(\"numberIntersectingDataFiles\");\n\t\t\t\tString bedRecord = jo.getString(\"input\");\n\t\t\t\tString[] splitbed = Misc.TAB.split(bedRecord);\n\t\t\t\tint index = Integer.parseInt(splitbed[3]);\n\t\t\t\t//set in array\n\t\t\t\tidBedCount[index] = numHits;\n\t\t\t}\n\t\t}\n\t}", "@Test\n public void Task7() {\n Body[] body=\n given()\n .when()\n .get(\"https://jsonplaceholder.typicode.com/todos\")\n .then()\n .extract().as(Body[].class)\n ;\n System.out.println(\"body\"+\" \"+ Arrays.toString(body));\n // diger bir yolu\n List<Body> bodies= Arrays.asList(body);\n System.out.println(\"bodies = \" + bodies);\n }", "static void getResults() throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\t\t\tString line;\n\t\t\tString precision = \"\";\n\t\t\tString recall = \"\";\n\t\t\tString fmeasure = \"\";\n\t\t\tString time = \"\";\n\n\n\t\t\twhile (j <= 10) {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\n\t\t\t\t\t\tnew File(ConfigManager.getExperimentFolder() + \"M\" + k + \"/Testbeds-\"+j\n\t\t\t\t\t\t\t\t+ \"/Generated/PSL/test/Precision/F1NoTraining.txt\")));\n\n\t\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t\tif (line.contains(\"Precision :\")) {\n\t\t\t\t\t\tprecision += line.replace(\"Precision :\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Recall:\")) {\n\t\t\t\t\t\trecall += line.replace(\"Recall:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\tif (line.contains(\"Fmeasure:\")) {\n\t\t\t\t\t\tfmeasure += line.replace(\"Fmeasure:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (line.contains(\"Time:\")) {\n\t\t\t\t\t\ttime += line.replace(\"Time:\", \"\") + \"\\n\";\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tj++;\n\t\t\t}\n\n\t\t\tSystem.out.print(precision);\n//\t\t\tSystem.out.print(recall);\n//\t\t\tSystem.out.print(fmeasure);\n//\t\t\tSystem.out.print(time);\n\n\t\t\tk++;\n\t\t}\n\t}", "@Override\n\tpublic Void visit(Case casee) {\n\t\tprintIndent(\"case\");\n\t\tindent++;\n\t\tcasee.var.accept(this);\n\t\tfor (var v : casee.cases)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}", "private List<Map<String, String>> getMapParamsOfMany(List <CovidData> allCases) {\n List<Map<String, String>> paramsOfMany = new ArrayList<>();\n for (CovidData covidCase: allCases){\n paramsOfMany.add(getMapParams(covidCase));\n }\n return paramsOfMany;\n }", "@Parameterized.Parameters(name = \"{index}: expected: {0}, payload: {1} header: {2}\")\n public static Iterable<Object[]> data() {\n return Arrays.asList(new Object[][]{\n {true, \"33.2\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a-46a3-af3d-9dc7521aac40, mqtt_receivedTopic=Garden/83209475/Measurement/Temperature, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n {false, \"25.4\", \"{mqtt_receivedRetained=false, mqtt_id=0, mqtt_duplicate=false, id=f4459eeb-f88a, mqtt_receivedTopic=Garden/Measurement/Temperature/83209475, mqtt_receivedQos=0, timestamp=1605259492850}\"},\n });\n }", "@Override\n public List<String> getTestCases(String path) {\n try{\n //Set Encoding to UTF-8\n Charset inputCharset = StandardCharsets.UTF_8;\n //Use bufferReader to read the file and extract text line by line\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(new FileInputStream(path), inputCharset));\n String line;\n List<String> result = new ArrayList<>();\n while ((line = bufferedReader.readLine()) != null) {\n result.add(line);\n }\n result = result.stream().filter(s -> !s.isEmpty()).collect(Collectors.toList());\n return result;\n }catch (Exception e){\n throw new IllegalArgumentException(\"Could not extract test cases from file: \" + e.getMessage());\n }\n }", "int getTotalCaseNumbers();", "List<Factor> getFactors(String projectId) throws WifInvalidInputException;", "String[] race(String djsonstr) throws JSONException {\n\n //retrieves the array of the list of candidates in the first race\n JSONObject j = new JSONObject(djsonstr);\n JSONArray r = j.getJSONArray(\"contests\").getJSONObject(0).getJSONArray(\"candidates\");\n\n //the list of candidates within that zipcode/state\n String[] parsedCandidates = new String [r.length()];\n\n //pulls out the name and party\n for (int i = 0; i < r.length(); i++) {\n JSONObject person = r.getJSONObject(i);\n parsedCandidates[i] = person.getString(\"name\")+\", \"+person.getString(\"party\");\n Log.d(\"fdksf\",parsedCandidates[i]);\n }\n\n //list of candidates returned on the second screen of the app\n return parsedCandidates;\n }", "java.util.List<? extends com.google.cloud.dialogflow.cx.v3beta1.Fulfillment.ConditionalCasesOrBuilder> \n getConditionalCasesOrBuilderList();", "private void printResults(List<CityByDegrees> cities){\r\n\t\tStringBuffer buffer = new StringBuffer();\r\n\t\tfor(int i = 0; i < cities.size(); i++) {\r\n\t\t\tCityByDegrees tempCity = cities.get(i);\r\n\t\t\tbuffer.append(tempCity.getDegrees()).append(\" \").append(tempCity.getCity()).append(\", \").append(tempCity.getState());\r\n\t\t\tSystem.out.println(buffer.toString());\r\n\t\t\tbuffer.setLength(0);\r\n\t\t}\r\n\t}", "public void setCaseLogs() {\n ResultSet rs = Business.getInstance().getData().getCaseLog();\n try{\n while (rs.next()) {\n caseLog.add(new CaseLog(rs.getInt(\"userid\"),\n rs.getInt(\"caseid\"),\n rs.getString(\"date\"),\n rs.getString(\"time\")));\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Test\n public void findClientCasesBySearchDto_success(){\n List<User> clientList = userService.findClientByEmail( clientEmail);\n long companyId = clientList.get( 0).getCompany().getId();\n\n SearchDto.ForCaseSearch caseSearchDto = new SearchDto.ForCaseSearch();\n caseSearchDto.setFirstName( \"insu\");\n CaseType foundCaseType = caseTypeService.findCaseTypeByCode( this.caseTypeCode);\n caseSearchDto.setCaseCode( foundCaseType.getCode());\n caseSearchDto.setCaseYear( 2019);\n\n // When\n Page<ClientCase> clientCaseList = this.clientCaseService.findMainCasesBySearchDto( companyId, caseSearchDto, PageRequest.of( 0, 9));\n\n // Then\n assertThat( clientCaseList.getContent().size(), is( 2));\n }", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "java.util.List<com.google.protobuf.ByteString> getExamplesList();", "@Override\n public void onSuccess(ArrayList<CheckInProposal> results) {\n mapTreatmentCheckIn = createMapTreatmentCheckInFromProposal(results);\n\n medications = extractMedicationsFromProposal(results);\n symptoms = extractSymptomsFromProposal(results);\n\n total = medications.size() + symptoms.size();\n count = 0;\n\n if (total > 0)\n nextStep();\n }", "public JSONArray getResults(String json) throws JSONException {\n JSONObject input = new JSONObject(json);\n\n // If status is not ok, return empty JSONArray to prevent nullpointers\n if (!Objects.equals(input.getString(\"status\"), \"OK\")) {\n Toast.makeText(this, \"No item found in category\", Toast.LENGTH_SHORT).show();\n return new JSONArray();\n } else {\n return input.getJSONArray(\"results\");\n }\n }", "@Test\r\n\tpublic void testListTickets() {\n\t\tint i = 1;\r\n\t\tString[] types = {\"singleton\", \"head\", \"tail\"};\r\n\t\tJsonObject[] tickets = new JsonObject[0];\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\tfor (String t : types) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttickets = roc.listTickets(t);\r\n\t\t\t\t\tif (tickets != null && tickets.length > 0) {\r\n\t\t\t\t\t\tJsonObject ticket = tickets[0];\r\n\t\t\t\t\t\tif (t.equals(\"singleton\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"head\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t} else if (t.equals(\"tail\")) {\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"nextTicketId\").isJsonNull(), equalTo(true));\r\n\t\t\t\t\t\t\tcollector.checkThat(ticket.get(\"previousTicketId\").isJsonNull(), equalTo(false));\r\n\t\t\t\t\t\t} else { \r\n\t\t\t\t\t\t\tcollector.addError(new Error(\"Invalid ticket type. \"));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "@Test\n public void test_get_scenario_names(){\n try {\n TestData X = new TestData(\"project2.opt\");\n Collection<String> x = X.project.get_scenario_names();\n assertEquals(1,x.size());\n assertTrue(x.contains(\"scenarioA\"));\n assertFalse(x.contains(\"scenarioB\"));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "List<Result> getResultsByQuizId(int quizId);", "org.apache.calcite.avatica.proto.Responses.ResultSetResponse getResults(int index);", "public void generateResultsList(){\n int win = 0, loss = 0, tie = 0;\n int selectedUserID = userAccounts.get(nameBox.getSelectedIndex()).getUserID();\n rankedResults = new ArrayList<RankedItem>();\n\n //for each item generate results\n for (TestItem testItem : testItems) {\n //for each test session check user id\n for(TestSession testSession: testSessions) {\n //if the session belongs to the user selected, then continue\n if (testSession.getUserID() == selectedUserID){\n //parse each object in the results list for data\n for (TestResult testResult : testResults) {\n //if the result belongs to the session in the current iteration, and the result is for the item in the current iteration, then count the result\n if (testItem.getItemID() == testResult.getItemID() && testSession.getSessionID() == testResult.getSessionID()) {\n switch (testResult.getResult()) {\n case 1:\n win++;\n break;\n case 0:\n tie++;\n break;\n case -1:\n loss++;\n break;\n }\n }\n }\n }\n }\n\n //write the data to the ranked items list after parsing\n rankedResults.add(new RankedItem(testItem, win, loss, tie));\n //reset counters\n win = 0;\n loss = 0;\n tie = 0;\n }\n }", "private void convertScenarioResults(ArrayList<String> testcases, ArrayList<String> blocktests, String file, String testrun) {\n \t\t\ttry {\t\t\n \t\t\t\tFileWriter writer = new FileWriter(\"C:/JenkinsSlave/Results/Executed - \"+testrun+\".xml\");\n \t\t\t\tFile tr = new File(file+\".mxlog\");\t \n \t\t\t DocumentBuilder db;\n \t\t \tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n \t\t\t\tdb = dbf.newDocumentBuilder();\n \t\t\t\tDocument doc = db.parse(tr);\n \t\t\t doc.getDocumentElement().normalize();\n \t\t\t XPath xpath = XPathFactory.newInstance().newXPath();\n \t\t\t XPathExpression xExpress = xpath.compile(\"//Str\");\n \t\t\t NodeList nl = (NodeList) xExpress.evaluate(doc, XPathConstants.NODESET);\n \t\t\t ArrayList<String> ciao = new ArrayList<String>();\n \t\t\t if(nl != null){\n \t\t\t \twriter.write(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\\n\");\n \t\t\t\t\twriter.write(\"<testsuite>\\n\");\n \t\t\t\t int index=0;\n \t\t\t\t for(String testcase: testcases){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+testcase+\"\\\">\\n\");\n \t\t\t\t \tString testo=nl.item(index).getTextContent();\n \t\t\t\t \twhile(!testo.startsWith(\"Post \")){\n \t\t\t\t \t\tindex++;\n \t\t\t\t \t\ttesto=nl.item(index).getTextContent();\n \t\t\t\t \t}\n \t\t\t\t\t\t\tif(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"passed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\telse if(testo.substring(testo.lastIndexOf(\" \")+1).equals(\"failed.\")){\n \t\t\t\t\t\t\t\twriter.write(\"\\t\\t<failure>\\n\\t\\t\\tTest Case was evaluated as failed\\n\\t\\t</failure>\\n\");\n \t\t\t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tindex++;\n \t\t\t\t \t}\n \t\t\t\t for(String block: blocktests){\n \t\t\t\t \twriter.write(\"\\t<testcase classname=\\\"TC\\\" name=\\\"\"+block+\"\\\">\\n\");\n \t\t\t\t \twriter.write(\"\\t\\t<error>\\n\\t\\t\\tTest Case not found\\n\\t\\t</error>\\n\");\n \t\t\t\t\t\twriter.write(\"\\t</testcase>\\n\");\n \t\t\t\t }\n \t\t\t\t\t\t\n \t\t\t\t\t\n \t\t\t\t\twriter.write(\"</testsuite>\\n\");\n \t\t\t\t\twriter.flush();\n \t\t\t\t\twriter.close();\n \t\t\t }else{\n \t\t\t \tContactPolarion(listener);\n \t\t\t }\n \t\t\t\t \n \t\t\t\t}catch(Exception e){\n \t\t\t\t\tContactPolarion(listener);\n \t\t\t\t\tlistener.getLogger().println(e.getMessage());\n \t\t\t\t}\n\t\t\t}" ]
[ "0.71442044", "0.68070793", "0.67358345", "0.672894", "0.6590673", "0.65620327", "0.6487075", "0.6209915", "0.61823225", "0.5887776", "0.5786958", "0.5712062", "0.5623565", "0.56160635", "0.54786825", "0.5405756", "0.5371656", "0.5229851", "0.51963955", "0.51653665", "0.5111451", "0.50893235", "0.50842875", "0.5065232", "0.5032767", "0.5019024", "0.49913406", "0.49828738", "0.4975382", "0.48987767", "0.48958236", "0.48834154", "0.4868133", "0.483942", "0.4827103", "0.482453", "0.48099095", "0.48025194", "0.4801244", "0.47915676", "0.47895947", "0.47418156", "0.47341", "0.4733351", "0.4725671", "0.47194734", "0.4712385", "0.4706358", "0.4703889", "0.4687662", "0.4680694", "0.46755874", "0.46675146", "0.46554348", "0.46471062", "0.4644674", "0.4643027", "0.4643027", "0.4640602", "0.4631152", "0.46236932", "0.46133175", "0.46111155", "0.46094188", "0.4606109", "0.4597787", "0.45902187", "0.45883262", "0.4587658", "0.4584751", "0.45666346", "0.45646346", "0.45643878", "0.4560822", "0.45575967", "0.45525423", "0.45471627", "0.45433155", "0.4535759", "0.45309907", "0.45303106", "0.45258147", "0.4517884", "0.45003718", "0.44983044", "0.44981885", "0.44951782", "0.4492438", "0.4484002", "0.44756925", "0.4474406", "0.4474406", "0.4473362", "0.44671988", "0.44654557", "0.44595176", "0.44569376", "0.445558", "0.44491112", "0.44478744" ]
0.5441033
15
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public boolean hasFdset() { return ((bitField0_ & 0x00000010) != 0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "Map<String, OperationalSets> getSets();", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.8071193", "0.79580766", "0.7861543", "0.77563316", "0.73736894", "0.69360244", "0.6738891", "0.62697285", "0.5991378", "0.5778549", "0.56277156", "0.5607594", "0.5496489", "0.5453253", "0.5439221", "0.54111457", "0.52514094", "0.5212641", "0.51620764", "0.515931", "0.51327056", "0.5127426", "0.5114935", "0.5113807", "0.5101869", "0.5071185", "0.5067392", "0.50668526", "0.50668526", "0.5066564", "0.5062384", "0.5062384", "0.5054213", "0.5027269", "0.5013294", "0.50050426", "0.5001929", "0.4947908", "0.48897702", "0.48857152", "0.48675016", "0.479414", "0.47937828", "0.47915944", "0.47873417", "0.4771328", "0.47702506", "0.47696844", "0.47511792", "0.47288823", "0.46915594", "0.4691277", "0.4673272", "0.4672873", "0.46696144", "0.4667317", "0.46490514", "0.4640743", "0.46375164", "0.4632177", "0.46109104", "0.45953023", "0.45935345", "0.45911747", "0.45610613", "0.4555427", "0.45218223", "0.4497476", "0.44905213", "0.44896", "0.44878596", "0.448185", "0.44685113", "0.44413158", "0.4407974", "0.4407149", "0.44045892", "0.43900967", "0.4373054", "0.4370864", "0.43593043", "0.43384567", "0.4337928", "0.43259943", "0.43217838", "0.43204883", "0.4318559", "0.43182522", "0.42935386", "0.4290219", "0.427626", "0.42724216", "0.42704153", "0.42700985", "0.4263448", "0.42628276", "0.4262458", "0.42621827", "0.42620882", "0.42529997" ]
0.5560978
12
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() { if (fdsetBuilder_ == null) { return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; } else { return fdsetBuilder_.getMessage(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "public abstract IParser[] getParserOptionSet();", "String getRemoteSchema();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "Map<String, OperationalSets> getSets();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.79583246", "0.78616315", "0.7756512", "0.737467", "0.69361615", "0.6739388", "0.62701666", "0.5991875", "0.5778756", "0.56286025", "0.5609472", "0.55615175", "0.54971427", "0.5453658", "0.5438429", "0.54106045", "0.52515143", "0.5211936", "0.51610804", "0.5158578", "0.51326764", "0.51275975", "0.51141065", "0.5113021", "0.5100765", "0.5070557", "0.50672406", "0.5065987", "0.5065987", "0.5065491", "0.50615656", "0.50615656", "0.50555104", "0.5028617", "0.5013027", "0.5004343", "0.5001643", "0.4946622", "0.48889336", "0.48865002", "0.48662326", "0.47944856", "0.47933298", "0.47914326", "0.4785819", "0.47701037", "0.47694847", "0.4767694", "0.47510657", "0.47279346", "0.4690647", "0.46901944", "0.46731207", "0.4672428", "0.4669876", "0.46665046", "0.46491536", "0.46397105", "0.46383533", "0.4631566", "0.46110207", "0.45945945", "0.4591913", "0.4591768", "0.45611534", "0.45542592", "0.45239076", "0.4496131", "0.44912124", "0.44902602", "0.44871095", "0.44798326", "0.44666913", "0.44409868", "0.4408776", "0.44067", "0.4404835", "0.4389557", "0.4374553", "0.4370668", "0.4358992", "0.43376857", "0.43370053", "0.4325938", "0.4321773", "0.43211094", "0.43176678", "0.43169004", "0.42937595", "0.42893028", "0.42757374", "0.42719543", "0.4271879", "0.4269373", "0.42636484", "0.42620564", "0.42614594", "0.4261105", "0.42606774", "0.42515013" ]
0.8070944
0
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) { if (fdsetBuilder_ == null) { if (value == null) { throw new NullPointerException(); } fdset_ = value; } else { fdsetBuilder_.setMessage(value); } bitField0_ |= 0x00000010; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "DataElementDescriptor getDescriptor(String name);", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "public abstract IParser[] getParserOptionSet();", "String getRemoteSchema();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "Map<String, OperationalSets> getSets();", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.807116", "0.795843", "0.7861438", "0.7756442", "0.7374341", "0.69363844", "0.62696344", "0.5992371", "0.5778526", "0.5629047", "0.5608715", "0.55613524", "0.54979205", "0.5454759", "0.5439971", "0.5411173", "0.5252705", "0.52121896", "0.51619416", "0.5157243", "0.5133265", "0.5126607", "0.5115458", "0.51147306", "0.5102869", "0.5070986", "0.5067779", "0.5067779", "0.5067547", "0.50648475", "0.506332", "0.506332", "0.5055437", "0.50284433", "0.5013086", "0.50054306", "0.50012046", "0.49484476", "0.48900014", "0.48856214", "0.48674804", "0.4794769", "0.4794676", "0.47918263", "0.4787267", "0.47717565", "0.47698393", "0.47696167", "0.4750239", "0.4728043", "0.4692961", "0.46918482", "0.46738088", "0.46737483", "0.4669211", "0.46677184", "0.46485785", "0.46414912", "0.46378636", "0.46316943", "0.46101028", "0.45948005", "0.45930836", "0.45925122", "0.45595786", "0.45564264", "0.45220333", "0.44971302", "0.4490437", "0.44889486", "0.4487861", "0.44820577", "0.44663823", "0.44405937", "0.44080782", "0.4406376", "0.44041133", "0.439044", "0.4372955", "0.4371522", "0.4358491", "0.43380377", "0.43361545", "0.4325861", "0.43220437", "0.4319605", "0.43192583", "0.43178168", "0.42951283", "0.42882723", "0.42772532", "0.42727292", "0.42703745", "0.42703396", "0.42624968", "0.42624304", "0.4262081", "0.42619234", "0.4261895", "0.42505014" ]
0.67392755
6
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public Builder setFdset( com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) { if (fdsetBuilder_ == null) { fdset_ = builderForValue.build(); } else { fdsetBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "Map<String, OperationalSets> getSets();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "abstract Pipe.Schema<T> getPipeSchema();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.80707455", "0.79577595", "0.78611547", "0.77561176", "0.7373783", "0.69352245", "0.6738555", "0.6268911", "0.5777984", "0.5628408", "0.56079745", "0.5560486", "0.54970115", "0.54539925", "0.54385185", "0.5410454", "0.5250651", "0.5210665", "0.51606655", "0.5158801", "0.51321113", "0.51282257", "0.5113645", "0.5112927", "0.51019865", "0.5069878", "0.50661993", "0.50659645", "0.50659645", "0.50659317", "0.5061519", "0.5061519", "0.5054854", "0.5027902", "0.5011767", "0.5004254", "0.5002991", "0.4948302", "0.48890418", "0.48849976", "0.48682123", "0.47943133", "0.4793422", "0.47931904", "0.47866738", "0.47708526", "0.47687563", "0.476822", "0.47510597", "0.47277758", "0.46909755", "0.46904287", "0.4671745", "0.46717396", "0.467141", "0.46663254", "0.46494335", "0.46393463", "0.46384773", "0.4632811", "0.46108302", "0.45950884", "0.459346", "0.45926824", "0.45616406", "0.45564124", "0.45231935", "0.44954875", "0.44913086", "0.4490344", "0.44866595", "0.44806767", "0.44676363", "0.44402957", "0.44088325", "0.44053796", "0.44037172", "0.43903622", "0.43742225", "0.437209", "0.43605044", "0.43393925", "0.43376967", "0.4325704", "0.43225527", "0.43217337", "0.4319095", "0.43186983", "0.42949885", "0.42895985", "0.42765123", "0.4272721", "0.4271622", "0.42677373", "0.4263442", "0.42630273", "0.42625588", "0.42623234", "0.4261664", "0.4252138" ]
0.5991008
8
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) { if (fdsetBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && fdset_ != null && fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) { getFdsetBuilder().mergeFrom(value); } else { fdset_ = value; } } else { fdsetBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "Map<String, OperationalSets> getSets();", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.8071193", "0.79580766", "0.7861543", "0.77563316", "0.73736894", "0.69360244", "0.6738891", "0.5991378", "0.5778549", "0.56277156", "0.5607594", "0.5560978", "0.5496489", "0.5453253", "0.5439221", "0.54111457", "0.52514094", "0.5212641", "0.51620764", "0.515931", "0.51327056", "0.5127426", "0.5114935", "0.5113807", "0.5101869", "0.5071185", "0.5067392", "0.50668526", "0.50668526", "0.5066564", "0.5062384", "0.5062384", "0.5054213", "0.5027269", "0.5013294", "0.50050426", "0.5001929", "0.4947908", "0.48897702", "0.48857152", "0.48675016", "0.479414", "0.47937828", "0.47915944", "0.47873417", "0.4771328", "0.47702506", "0.47696844", "0.47511792", "0.47288823", "0.46915594", "0.4691277", "0.4673272", "0.4672873", "0.46696144", "0.4667317", "0.46490514", "0.4640743", "0.46375164", "0.4632177", "0.46109104", "0.45953023", "0.45935345", "0.45911747", "0.45610613", "0.4555427", "0.45218223", "0.4497476", "0.44905213", "0.44896", "0.44878596", "0.448185", "0.44685113", "0.44413158", "0.4407974", "0.4407149", "0.44045892", "0.43900967", "0.4373054", "0.4370864", "0.43593043", "0.43384567", "0.4337928", "0.43259943", "0.43217838", "0.43204883", "0.4318559", "0.43182522", "0.42935386", "0.4290219", "0.427626", "0.42724216", "0.42704153", "0.42700985", "0.4263448", "0.42628276", "0.4262458", "0.42621827", "0.42620882", "0.42529997" ]
0.62697285
7
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public Builder clearFdset() { bitField0_ = (bitField0_ & ~0x00000010); fdset_ = null; if (fdsetBuilder_ != null) { fdsetBuilder_.dispose(); fdsetBuilder_ = null; } onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "public abstract IParser[] getParserOptionSet();", "String getRemoteSchema();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "Map<String, OperationalSets> getSets();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.8070944", "0.79583246", "0.78616315", "0.7756512", "0.737467", "0.69361615", "0.6739388", "0.62701666", "0.5991875", "0.5778756", "0.56286025", "0.55615175", "0.54971427", "0.5453658", "0.5438429", "0.54106045", "0.52515143", "0.5211936", "0.51610804", "0.5158578", "0.51326764", "0.51275975", "0.51141065", "0.5113021", "0.5100765", "0.5070557", "0.50672406", "0.5065987", "0.5065987", "0.5065491", "0.50615656", "0.50615656", "0.50555104", "0.5028617", "0.5013027", "0.5004343", "0.5001643", "0.4946622", "0.48889336", "0.48865002", "0.48662326", "0.47944856", "0.47933298", "0.47914326", "0.4785819", "0.47701037", "0.47694847", "0.4767694", "0.47510657", "0.47279346", "0.4690647", "0.46901944", "0.46731207", "0.4672428", "0.4669876", "0.46665046", "0.46491536", "0.46397105", "0.46383533", "0.4631566", "0.46110207", "0.45945945", "0.4591913", "0.4591768", "0.45611534", "0.45542592", "0.45239076", "0.4496131", "0.44912124", "0.44902602", "0.44871095", "0.44798326", "0.44666913", "0.44409868", "0.4408776", "0.44067", "0.4404835", "0.4389557", "0.4374553", "0.4370668", "0.4358992", "0.43376857", "0.43370053", "0.4325938", "0.4321773", "0.43211094", "0.43176678", "0.43169004", "0.42937595", "0.42893028", "0.42757374", "0.42719543", "0.4271879", "0.4269373", "0.42636484", "0.42620564", "0.42614594", "0.4261105", "0.42606774", "0.42515013" ]
0.5609472
11
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() { bitField0_ |= 0x00000010; onChanged(); return getFdsetFieldBuilder().getBuilder(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "DataElementDescriptor getDescriptor(String name);", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "public abstract IParser[] getParserOptionSet();", "String getRemoteSchema();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "Map<String, OperationalSets> getSets();", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.807116", "0.795843", "0.7861438", "0.7756442", "0.69363844", "0.67392755", "0.62696344", "0.5992371", "0.5778526", "0.5629047", "0.5608715", "0.55613524", "0.54979205", "0.5454759", "0.5439971", "0.5411173", "0.5252705", "0.52121896", "0.51619416", "0.5157243", "0.5133265", "0.5126607", "0.5115458", "0.51147306", "0.5102869", "0.5070986", "0.5067779", "0.5067779", "0.5067547", "0.50648475", "0.506332", "0.506332", "0.5055437", "0.50284433", "0.5013086", "0.50054306", "0.50012046", "0.49484476", "0.48900014", "0.48856214", "0.48674804", "0.4794769", "0.4794676", "0.47918263", "0.4787267", "0.47717565", "0.47698393", "0.47696167", "0.4750239", "0.4728043", "0.4692961", "0.46918482", "0.46738088", "0.46737483", "0.4669211", "0.46677184", "0.46485785", "0.46414912", "0.46378636", "0.46316943", "0.46101028", "0.45948005", "0.45930836", "0.45925122", "0.45595786", "0.45564264", "0.45220333", "0.44971302", "0.4490437", "0.44889486", "0.4487861", "0.44820577", "0.44663823", "0.44405937", "0.44080782", "0.4406376", "0.44041133", "0.439044", "0.4372955", "0.4371522", "0.4358491", "0.43380377", "0.43361545", "0.4325861", "0.43220437", "0.4319605", "0.43192583", "0.43178168", "0.42951283", "0.42882723", "0.42772532", "0.42727292", "0.42703745", "0.42703396", "0.42624968", "0.42624304", "0.4262081", "0.42619234", "0.4261895", "0.42505014" ]
0.7374341
4
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() { if (fdsetBuilder_ != null) { return fdsetBuilder_.getMessageOrBuilder(); } else { return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> \n getFdsetFieldBuilder() {\n if (fdsetBuilder_ == null) {\n fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>(\n getFdset(),\n getParentForChildren(),\n isClean());\n fdset_ = null;\n }\n return fdsetBuilder_;\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "Map<String, OperationalSets> getSets();", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "abstract Pipe.Schema<T> getPipeSchema();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.80707455", "0.78611547", "0.77561176", "0.7373783", "0.69352245", "0.6738555", "0.6268911", "0.5991008", "0.5777984", "0.5628408", "0.56079745", "0.5560486", "0.54970115", "0.54539925", "0.54385185", "0.5410454", "0.5250651", "0.5210665", "0.51606655", "0.5158801", "0.51321113", "0.51282257", "0.5113645", "0.5112927", "0.51019865", "0.5069878", "0.50661993", "0.50659645", "0.50659645", "0.50659317", "0.5061519", "0.5061519", "0.5054854", "0.5027902", "0.5011767", "0.5004254", "0.5002991", "0.4948302", "0.48890418", "0.48849976", "0.48682123", "0.47943133", "0.4793422", "0.47931904", "0.47866738", "0.47708526", "0.47687563", "0.476822", "0.47510597", "0.47277758", "0.46909755", "0.46904287", "0.4671745", "0.46717396", "0.467141", "0.46663254", "0.46494335", "0.46393463", "0.46384773", "0.4632811", "0.46108302", "0.45950884", "0.459346", "0.45926824", "0.45616406", "0.45564124", "0.45231935", "0.44954875", "0.44913086", "0.4490344", "0.44866595", "0.44806767", "0.44676363", "0.44402957", "0.44088325", "0.44053796", "0.44037172", "0.43903622", "0.43742225", "0.437209", "0.43605044", "0.43393925", "0.43376967", "0.4325704", "0.43225527", "0.43217337", "0.4319095", "0.43186983", "0.42949885", "0.42895985", "0.42765123", "0.4272721", "0.4271622", "0.42677373", "0.4263442", "0.42630273", "0.42625588", "0.42623234", "0.4261664", "0.4252138" ]
0.79577595
1
The file descriptor set used to generate this result. .google.protobuf.FileDescriptorSet fdset = 5 [json_name = "fdset"];
private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder> getFdsetFieldBuilder() { if (fdsetBuilder_ == null) { fdsetBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.DescriptorProtos.FileDescriptorSet, com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder, com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder>( getFdset(), getParentForChildren(), isClean()); fdset_ = null; } return fdsetBuilder_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n if (fdsetBuilder_ == null) {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n } else {\n return fdsetBuilder_.getMessage();\n }\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n if (fdsetBuilder_ != null) {\n return fdsetBuilder_.getMessageOrBuilder();\n } else {\n return fdset_ == null ?\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSet getFdset() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "@java.lang.Override\n public com.google.protobuf.DescriptorProtos.FileDescriptorSetOrBuilder getFdsetOrBuilder() {\n return fdset_ == null ? com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance() : fdset_;\n }", "public com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder getFdsetBuilder() {\n bitField0_ |= 0x00000010;\n onChanged();\n return getFdsetFieldBuilder().getBuilder();\n }", "public Builder setFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n fdset_ = value;\n } else {\n fdsetBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder mergeFdset(com.google.protobuf.DescriptorProtos.FileDescriptorSet value) {\n if (fdsetBuilder_ == null) {\n if (((bitField0_ & 0x00000010) != 0) &&\n fdset_ != null &&\n fdset_ != com.google.protobuf.DescriptorProtos.FileDescriptorSet.getDefaultInstance()) {\n getFdsetBuilder().mergeFrom(value);\n } else {\n fdset_ = value;\n }\n } else {\n fdsetBuilder_.mergeFrom(value);\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "public Builder setFdset(\n com.google.protobuf.DescriptorProtos.FileDescriptorSet.Builder builderForValue) {\n if (fdsetBuilder_ == null) {\n fdset_ = builderForValue.build();\n } else {\n fdsetBuilder_.setMessage(builderForValue.build());\n }\n bitField0_ |= 0x00000010;\n onChanged();\n return this;\n }", "@java.lang.Override\n public boolean hasFdset() {\n return fdset_ != null;\n }", "public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public Builder clearFdset() {\n bitField0_ = (bitField0_ & ~0x00000010);\n fdset_ = null;\n if (fdsetBuilder_ != null) {\n fdsetBuilder_.dispose();\n fdsetBuilder_ = null;\n }\n onChanged();\n return this;\n }", "public boolean hasFdset() {\n return ((bitField0_ & 0x00000010) != 0);\n }", "@Override\n public EventSetDescriptor[] getEventSetDescriptors() {\n return getEdescriptor();\n }", "public java.beans.EventSetDescriptor[] getEventSetDescriptors() {\n\ttry {\n\t\tjava.beans.EventSetDescriptor aDescriptorList[] = {};\n\t\treturn aDescriptorList;\n\t} catch (Throwable exception) {\n\t\thandleException(exception);\n\t};\n\treturn null;\n}", "public final Descriptor getDescriptor() throws MdsException {\n return Descriptor.deserialize(this.getBuffer());\n }", "public final Class getDescriptorClass() {\n\treturn descriptorClass;\n }", "public Descriptor<Builder> getDescriptor() {\n return DESCRIPTOR;\n }", "public String getDescriptor()\r\n {\r\n return soundFileDescriptor;\r\n }", "String getDescriptor();", "public int getCharSet() {\n\t\treturn this.charSet;\n\t}", "public ClassDescriptor getDescriptor() {\n return descriptor;\n }", "public String getSetSpec();", "public Descriptor getDescriptor()\n\t{\n\t\treturn Descriptor.fromNumber( mMessage.getInt( B1_DESCRIPTOR ) );\n\t}", "@Override\n\tpublic DescriptorImpl getDescriptor() {\n\t\treturn (DescriptorImpl) super.getDescriptor();\n\t}", "@Override\n public ParameterDescriptorGroup getDescriptor() {\n return values.descriptor;\n }", "public byte[] getDescriptor()\n {\n return (byte[]) this.m_descriptor.clone();\n }", "public FileDescriptor getFileDescriptor() {\n return fileDescriptor;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl) super.getDescriptor();\n }", "public String getCharSet(){\n \treturn charSet;\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "@Override\n public DescriptorImpl getDescriptor() {\n return (DescriptorImpl)super.getDescriptor();\n }", "private static EventSetDescriptor[] getEdescriptor(){\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n // Here you can add code for customizing the event sets array.\n\n return eventSets; }", "private static EventSetDescriptor[] getEdescriptor() {\n EventSetDescriptor[] eventSets = new EventSetDescriptor[0];//GEN-HEADEREND:Events\n\n // Here you can add code for customizing the event sets array.\n\n return eventSets;\n }", "public int getDescriptorIndex() {\n\t\treturn descriptorIndex & 0xffff;\n\t}", "protected FileDescriptor getFileDescriptor() {\n return new FileDescriptor(); // constructor creates invalid fd\n }", "public abstract String getSetSpec();", "public XMLFieldDescriptor getContentDescriptor() {\n return contentDescriptor;\n }", "public EntityDescriptor getDescriptor() {\n return descriptor;\n }", "public FileDescriptor getFD() throws IOException {\n return this.randomAccessFile.getFD();\n }", "public Set getDescriptors() {\n \t\treturn artifactDescriptors;\n \t}", "public Set<TcpSocketOption<?>> options() {\n\t\treturn Collections.unmodifiableSet(map.keySet());\n\t}", "Set<DependencyDescriptor> getDependencyDescriptors() {\n return dependencyDescriptors;\n }", "public definitionSet getDefinitionSet() {\n return definitionSet;\n }", "protected EntityDescriptor getDescriptor() {\n if (descriptor == null) {\n descriptor = mixing.getDescriptor(type);\n }\n return descriptor;\n }", "public List getDescriptors()\n {\n return Collections.unmodifiableList(this.m_descriptors);\n }", "public final String\r\n getDescriptor() {\r\n if (this.descriptorCache != null) return this.descriptorCache;\r\n return (this.descriptorCache = this.getDescriptor2());\r\n }", "public String getDescriptor() {\n/* 218 */ return this.desc;\n/* */ }", "@Override\n\tpublic int getOffSet() {\n\t\treturn offSet;\n\t}", "public String getDescriptor() {\n // FIXME: this is not completely accurate at this point (for\n // example, it knows nothing about the packages for compound\n // types)\n if (clazz != null) {\n return descriptor(clazz);\n }\n if (elementType != null) {\n if(elementType.getName()==null) {\n throw new RuntimeException(\"elementType.name is null: \"+getDumpString());\n }\n return \"[\" + descriptor(elementType.getName());\n }\n return descriptor(name);\n }", "public abstract CommandDescriptor<T> getDescriptor();", "public Object getDescriptor()\n {\n return protocolProvider;\n }", "public void setFileDescriptorsForSend(FileDescriptor[] fds) {\n synchronized(writeMonitor) {\n outboundFileDescriptors = fds;\n }\n }", "public ModuleDescriptor getDescriptor() {\n return descriptor;\n }", "public int getIdSet() {\r\n return idSet;\r\n }", "@Override\n public ParcelFileDescriptor fd() {\n return null;\n }", "@TargetAttributeType(name = SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME, required = true, hidden = true)\n\tpublic default TargetAttachKindSet getSupportedAttachKinds() {\n\t\treturn getTypedAttributeNowByName(SUPPORTED_ATTACH_KINDS_ATTRIBUTE_NAME,\n\t\t\tTargetAttachKindSet.class, TargetAttachKindSet.of());\n\t}", "public Map<ChannelOption<?>, Object> getOptions()\r\n/* 39: */ {\r\n/* 40: 64 */ return getOptions(\r\n/* 41: 65 */ super.getOptions(), new ChannelOption[] { ChannelOption.SO_RCVBUF, ChannelOption.SO_SNDBUF, ChannelOption.TCP_NODELAY, ChannelOption.SO_KEEPALIVE, ChannelOption.SO_REUSEADDR, ChannelOption.SO_LINGER, ChannelOption.IP_TOS, ChannelOption.ALLOW_HALF_CLOSURE });\r\n/* 42: */ }", "public static synchronized Set getDescriptorClasses() {\n\tHashSet set = new HashSet();\n\n for (Enumeration e = registryModes.elements(); e.hasMoreElements();) {\n RegistryMode mode = (RegistryMode)e.nextElement();\n\n\t set.add(mode.descriptorClass);\n\t}\n\n\treturn set;\n }", "public com.vmware.converter.SelectionSpec[] getSelectSet() {\r\n return selectSet;\r\n }", "public int requireSetFlags() {\n return mRequireSetFlags;\n }", "public boolean bufferSet(){\n return bufferSet;\n }", "public ContentDescriptor getContentDescriptor()\n {\n return CONTENT_DESCRIPTOR;\n }", "public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }", "public int getCharacterSet() {\r\n return CharacterSet;\r\n }", "public List<SchemaDescriptor> getSchemaDescriptor() {\n List<SchemaDescriptor> results = new ArrayList<SchemaDescriptor>();\n try {\n results.add(new TextRegexpSchemaDescriptor(fs, p, typeIdentifier, regexps, schemas));\n } catch (Exception iex) {\n }\n return results;\n }", "public alluxio.proto.journal.File.SetAclEntry.Builder getSetAclBuilder() {\n bitField0_ |= 0x04000000;\n onChanged();\n return getSetAclFieldBuilder().getBuilder();\n }", "public Descriptor getData() {\n return this;\n }", "public Set<ServiceName> getSet() {\n return new HashSet<ServiceName>(set);\n }", "public String getSetSpec() {\n\n\t\treturn setSpec;\n\n\t}", "public UtfConstant getDescriptor()\n {\n return m_descriptor;\n }", "@ApiModelProperty(example = \"null\", value = \"The descriptors for the reporting tasks properties.\")\n public Map<String, PropertyDescriptorDTO> getDescriptors() {\n return descriptors;\n }", "public String getCharSet() {\n\treturn strCharSet;\n }", "int getOneof2660();", "public String getShSetSpec() {\n\n\t\treturn shSetSpec;\n\n\t}", "DataElementDescriptor getDescriptor(String name);", "protected String getOptionSetName() {\n\t\treturn name;\n\t}", "Set<? extends Doclet.Option> getSupportedOptions();", "public alluxio.proto.journal.File.SetAclEntryOrBuilder getSetAclOrBuilder() {\n if (setAclBuilder_ != null) {\n return setAclBuilder_.getMessageOrBuilder();\n } else {\n return setAcl_;\n }\n }", "public Set<? extends ConcreteOption> getConcreteOptions();", "public int getSet() {\n return set;\n }", "List<T> getAttributeSchema(){\r\n\t\treturn explanatorySet;\r\n\t}", "public String getCharset() {\n\t\treturn charset;\n\t}", "public synchronized OptionSet getOptSet(int i) {\n\treturn this.opset.get(i);\n }", "EnumSet<ViewExecutionFlags> getFlags();", "public alluxio.proto.journal.File.SetAclEntry getSetAcl() {\n if (setAclBuilder_ == null) {\n return setAcl_;\n } else {\n return setAclBuilder_.getMessage();\n }\n }", "String getRemoteSchema();", "public abstract IParser[] getParserOptionSet();", "Set<CommandConfigFactoryDTO> getCommandConfigFactories();", "public String getCharSet()\n\t{\n\t\tParameterParser parser = new ParameterParser();\n\t\tparser.setLowerCaseNames(true);\n\t\t// Parameter parser can handle null input\n\t\tMap<?, ?> params = parser.parse(getContentType(), ';');\n\t\treturn (String)params.get(\"charset\");\n\t}", "public List<BeanDescriptor<?>> descriptorList() {\n return immutableDescriptorList;\n }", "@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if ((inputSourceCase_ == 11) && (datasetBuilder_ != null)) {\n return datasetBuilder_.getMessageOrBuilder();\n } else {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }", "private com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder> \n getSetAclFieldBuilder() {\n if (setAclBuilder_ == null) {\n setAclBuilder_ = new com.google.protobuf.SingleFieldBuilder<\n alluxio.proto.journal.File.SetAclEntry, alluxio.proto.journal.File.SetAclEntry.Builder, alluxio.proto.journal.File.SetAclEntryOrBuilder>(\n setAcl_,\n getParentForChildren(),\n isClean());\n setAcl_ = null;\n }\n return setAclBuilder_;\n }", "public Object getDescriptor() {\n return chatRoom;\n }", "org.graylog.plugins.dnstap.protos.DnstapOuterClass.SocketFamily getSocketFamily();", "@Test\n public void testOptions() throws IOException {\n\n ByteArrayOutputStream bos = new ByteArrayOutputStream();\n DataOutputStream out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(3); // count\n out.writeInt(372829489); // sys_uptime\n out.writeInt(582747597); // unix_secs\n out.writeInt(34); // package_sequence\n out.writeInt(12); // source_id\n\n // Options template 1\n out.writeShort(1); // flowset_id == 1\n out.writeShort(24); // length\n out.writeShort(258); // template_id\n out.writeShort(4); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(3); // Scope field 1 type - \"Line Card\"\n out.writeShort(2); // Scope field 1 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(2); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n out.writeByte(0); // padding\n out.writeByte(0); // padding\n\n // Options template 2\n out.writeShort(1); // flowset_id == 1\n out.writeShort(26); // length\n out.writeShort(259); // template_id\n out.writeShort(8); // Scope length\n out.writeShort(8); // Option length\n out.writeShort(1); // Scope field 1 type - \"System\"\n out.writeShort(4); // Scope field 1 length\n out.writeShort(2); // Scope field 2 type - \"Interface\"\n out.writeShort(2); // Scope field 2 length\n out.writeShort(41); // Option field 1 type - TOTAL_PKTS_EXP\n out.writeShort(4); // Option field 1 length\n out.writeShort(42); // Option field 2 type - TOTAL_FLOWS_EXP\n out.writeShort(2); // Option field 2 length\n\n // Options data record set\n out.writeShort(259); // flowset_id == template_id 2\n out.writeShort(16); // length\n\n // Record\n out.writeInt(5);\n out.writeShort(7);\n out.writeInt(123);\n out.writeShort(3567);\n\n List<TSDRLogRecord> records = parseRecords(bos.toByteArray());\n assertEquals(1, records.size());\n\n Map<String, String> attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747597L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829489\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"34\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"123\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"3567\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for System 5, Interface 7\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n // Second packet - 2 options data records\n\n bos = new ByteArrayOutputStream();\n out = new DataOutputStream(bos);\n\n // Header\n out.writeShort(9); // version\n out.writeShort(1); // count\n out.writeInt(372829490); // sys_uptime\n out.writeInt(582747598); // unix_secs\n out.writeInt(35); // package_sequence\n out.writeInt(12); // source_id\n\n // Options data record set\n out.writeShort(258); // flowset_id == template_id 1\n out.writeShort(16); // length\n\n // Record 1\n out.writeShort(1);\n out.writeShort(345);\n out.writeShort(10201);\n\n // Record 2\n out.writeShort(2);\n out.writeShort(690);\n out.writeShort(20402);\n\n records = parseRecords(bos.toByteArray());\n assertEquals(2, records.size());\n\n attrs = toMap(records.get(0).getRecordAttributes());\n assertEquals(Long.valueOf(582747598L * 1000), records.get(0).getTimeStamp());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"345\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"10201\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 1\", records.get(0).getRecordFullText());\n assertEmpty(attrs);\n\n attrs = toMap(records.get(1).getRecordAttributes());\n assertEquals(\"9\", attrs.remove(\"version\"));\n assertEquals(\"372829490\", attrs.remove(\"sys_uptime\"));\n assertEquals(\"35\", attrs.remove(\"package_sequence\"));\n assertEquals(\"12\", attrs.remove(\"source_id\"));\n\n assertEquals(\"690\", attrs.remove(\"TOTAL_PKTS_EXP\"));\n assertEquals(\"20402\", attrs.remove(\"TOTAL_FLOWS_EXP\"));\n assertEquals(\"Options record for Line Card 2\", records.get(1).getRecordFullText());\n assertEmpty(attrs);\n\n }", "@TestMethod(value=\"testGetSpecification\")\n public DescriptorSpecification getSpecification() {\n return new DescriptorSpecification(\n \"http://www.blueobelisk.org/ontologies/chemoinformatics-algorithms/#partialSigmaCharge\",\n this.getClass().getName(),\n \"$Id$\",\n \"The Chemistry Development Kit\");\n }", "Map<String, OperationalSets> getSets();", "abstract Pipe.Schema<T> getPipeSchema();", "public String getRequestCharSet() {\n return getContentCharSet(getRequestHeader(\"Content-Type\"));\n }" ]
[ "0.8071193", "0.79580766", "0.7861543", "0.77563316", "0.73736894", "0.6738891", "0.62697285", "0.5991378", "0.5778549", "0.56277156", "0.5607594", "0.5560978", "0.5496489", "0.5453253", "0.5439221", "0.54111457", "0.52514094", "0.5212641", "0.51620764", "0.515931", "0.51327056", "0.5127426", "0.5114935", "0.5113807", "0.5101869", "0.5071185", "0.5067392", "0.50668526", "0.50668526", "0.5066564", "0.5062384", "0.5062384", "0.5054213", "0.5027269", "0.5013294", "0.50050426", "0.5001929", "0.4947908", "0.48897702", "0.48857152", "0.48675016", "0.479414", "0.47937828", "0.47915944", "0.47873417", "0.4771328", "0.47702506", "0.47696844", "0.47511792", "0.47288823", "0.46915594", "0.4691277", "0.4673272", "0.4672873", "0.46696144", "0.4667317", "0.46490514", "0.4640743", "0.46375164", "0.4632177", "0.46109104", "0.45953023", "0.45935345", "0.45911747", "0.45610613", "0.4555427", "0.45218223", "0.4497476", "0.44905213", "0.44896", "0.44878596", "0.448185", "0.44685113", "0.44413158", "0.4407974", "0.4407149", "0.44045892", "0.43900967", "0.4373054", "0.4370864", "0.43593043", "0.43384567", "0.4337928", "0.43259943", "0.43217838", "0.43204883", "0.4318559", "0.43182522", "0.42935386", "0.4290219", "0.427626", "0.42724216", "0.42704153", "0.42700985", "0.4263448", "0.42628276", "0.4262458", "0.42621827", "0.42620882", "0.42529997" ]
0.69360244
5
Count of expected failures. int32 expected_failures = 6 [json_name = "expectedFailures"];
@java.lang.Override public int getExpectedFailures() { return expectedFailures_; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "Set<Integer> getExpectedStatusCodes();", "public int expectedEntries() {\n\t\treturn message.getTotalExpectedEntries();\n\t}", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "public int countTestCases() {\n return 1;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "public int getHttpFailures() {\n return httpFailures.get();\n }", "int getErrorCount();", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Schema(required = true, description = \"Expected number of proxies\")\n public Integer getExpectedProxiesCount() {\n return expectedProxiesCount;\n }", "long getNumberOfComparisons();", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "public int numberOfResult() throws Exception;", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public int failed() {\n return this.failed;\n }", "void assertTotalCntEquals(T key, int expected);", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "int getResponseCount();", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int numOfExpectedElements() {\n return config().getN();\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "private String getInvalidCountReport(Node node, int expectedCount)\n\t{\n\t\tint argLength = node.jjtGetNumChildren();\n\t\tNode[] args = new Node[argLength];\n\t\tfor (int i = 0; i < argLength; i++)\n\t\t{\n\t\t\targs[i] = node.jjtGetChild(i);\n\t\t}\n\t\treturn \"Parse Error: Item of type \" + node.getClass().getName()\n\t\t\t+ \" had incorrect children from parse. Expected \" + expectedCount\n\t\t\t+ \" got \" + args.length + \" \" + Arrays.asList(args);\n\t}", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "UnsignedInteger getDeliveryFailures();", "@Test\n public void getNumberOfHoursTest() {\n int expected = 152;\n\n assertEquals(\"The expected value of hours worked does not match the actual: \"\n , expected, e1.getNumberOfHours());\n\n }", "public int countTestList(TestParam param) throws Exception {\r\n return this.testMapper.countByExample(param);\r\n }", "public int getProblemCount();", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "public int getIndexExpected() {\n return indexExpected;\n }", "public int runCount() {\n return testCount;\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "@Override\n public int getTestCaseTotal() {\n return parameters.length;\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getResponsesCount();", "@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "@Test\n void verifyMetrics() throws IOException, InterruptedException {\n HttpRequest req = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(\"https://5f6trv8063.execute-api.us-east-1.amazonaws.com/default/VespaDocSearchLambda/?jsoncallback=?&query=ranking&ranking=documentation&locale=en-US&hits=1\"))\n .build();\n HttpResponse<String> res = httpClient.send(req, HttpResponse.BodyHandlers.ofString());\n\n assertEquals(200, res.statusCode());\n\n String body = res.body();\n long hitCount = new ObjectMapper().readTree(body.substring(2, body.length()-2)) // Strip ?( ); from JSON-P response\n .get(\"root\").get(\"fields\").get(\"totalCount\").asLong();\n assert(hitCount > 50);\n }", "@Test\n public void countTest() {\n // TODO: test count\n }", "int getFieldViolationsCount();", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "Integer totalRetryAttempts();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "int getStatusCount();", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "@Test(groups = \"wso2.das4esb.stats\", description = \"Test total faults count in per-second table\")\n public void testSecondTableTotalErrorCount() throws Exception {\n int count = getCounts(TestConstants.ESB_STAT_PER_SECOND_ALL_TABLE, TestConstants.FAULT_COUNT, \"ALL\");\n Assert.assertEquals(count, NUMBER_OF_FAULTS*NUMBER_OF_PROXIES, \"Total faults count is incorrect\" +\n \" in per-second table.\");\n }", "public String dlMaxFailures();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "@Test\r\n\tpublic void testGetNumGoalsForDivisionError() {\r\n\t\tint numGoalsDivError = -1;\r\n\t\tassertEquals(numGoalsDivError, stats.getNumGoalsForDivision(\"By Zero Division\"));\r\n\t}", "public String getSuspectedCount() {\n return suspectedCount;\n }", "String getLoginapisuccessfulhitcount();", "public static int count() {\n\treturn errorCount;\n }", "public int getMissedCallsCount();", "public int getSuccesses() {\n return successes.get();\n }", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int getMockUpdatesCount();", "public int getNumberOfErrors() {\n return errors;\n }", "int getStudentResponseCount();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "public static long getTestCount() {\n return mTestCount;\n }", "@DisplayName(\"Get the number of edges that contains the graph and test if it is correct\")\n @Test\n public void testGetNumEdges() {\n Assertions.assertEquals(8, graph.getNumberEdges());\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "@Test\r\n public void testTotalNumberOfQuestion() {\r\n Application.loadQuestions();\r\n assertEquals(Application.allQuestions.size(), 2126);\r\n }", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "int getConditionalResponsesCount();", "int countByExample(UploadStateRegDTOExample example);", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }", "long getMisses();", "@Override\npublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\n}", "int getNumberOfSpecifiedExceptions();", "int getInvalidLoginCount();", "@ApiModelProperty(value = \"Count of skipped emails\")\r\n public Integer getSkippedCount() {\r\n return skippedCount;\r\n }", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }", "public Long getErr_count() {\n return err_count;\n }", "@Test\n public void testCount() throws Exception {\n System.out.println(\"count\");\n PrioridadRest instance = mokPrioridadRest;\n int expResult = 1;\n int result = instance.count();\n assertEquals(expResult, result);\n }", "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }" ]
[ "0.7411975", "0.701762", "0.6901579", "0.68597746", "0.6814623", "0.6713113", "0.6697484", "0.6649504", "0.6544288", "0.6531249", "0.6510433", "0.6409237", "0.63917726", "0.6351267", "0.62857884", "0.6198617", "0.6116951", "0.60568625", "0.6055436", "0.60487676", "0.60474676", "0.6032817", "0.59987736", "0.59952974", "0.59416705", "0.59295595", "0.59129804", "0.59013057", "0.589682", "0.5894771", "0.5891988", "0.5875004", "0.5872003", "0.58678436", "0.5853557", "0.5847523", "0.5843628", "0.58377296", "0.5836901", "0.58254063", "0.58221227", "0.58207333", "0.58090174", "0.5803286", "0.5789891", "0.5785857", "0.57832325", "0.5775958", "0.5774317", "0.5774124", "0.5771149", "0.5764771", "0.57639885", "0.57617444", "0.57593644", "0.5748489", "0.57479334", "0.5746786", "0.57392377", "0.5737719", "0.5729553", "0.5728605", "0.56886655", "0.56857824", "0.56843394", "0.5682313", "0.5681801", "0.56757414", "0.56676745", "0.5666741", "0.56483424", "0.5635941", "0.5626535", "0.56242514", "0.56167567", "0.5607853", "0.560358", "0.55936205", "0.5590914", "0.5589816", "0.55770534", "0.5576183", "0.5576183", "0.557318", "0.5570679", "0.55623597", "0.5557358", "0.55548257", "0.55536026", "0.55534947", "0.5543649", "0.55435216", "0.5540508", "0.5536186", "0.55310905", "0.5530411", "0.5527194", "0.55262876", "0.55257994", "0.55226964" ]
0.73250484
1
Count of expected failures. int32 expected_failures = 6 [json_name = "expectedFailures"];
public Builder setExpectedFailures(int value) { expectedFailures_ = value; bitField0_ |= 0x00000020; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "Set<Integer> getExpectedStatusCodes();", "public int expectedEntries() {\n\t\treturn message.getTotalExpectedEntries();\n\t}", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "public int countTestCases() {\n return 1;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "int getErrorCount();", "public int getHttpFailures() {\n return httpFailures.get();\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Schema(required = true, description = \"Expected number of proxies\")\n public Integer getExpectedProxiesCount() {\n return expectedProxiesCount;\n }", "long getNumberOfComparisons();", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "public int numberOfResult() throws Exception;", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public int failed() {\n return this.failed;\n }", "void assertTotalCntEquals(T key, int expected);", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "int getResponseCount();", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int numOfExpectedElements() {\n return config().getN();\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "private String getInvalidCountReport(Node node, int expectedCount)\n\t{\n\t\tint argLength = node.jjtGetNumChildren();\n\t\tNode[] args = new Node[argLength];\n\t\tfor (int i = 0; i < argLength; i++)\n\t\t{\n\t\t\targs[i] = node.jjtGetChild(i);\n\t\t}\n\t\treturn \"Parse Error: Item of type \" + node.getClass().getName()\n\t\t\t+ \" had incorrect children from parse. Expected \" + expectedCount\n\t\t\t+ \" got \" + args.length + \" \" + Arrays.asList(args);\n\t}", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "UnsignedInteger getDeliveryFailures();", "@Test\n public void getNumberOfHoursTest() {\n int expected = 152;\n\n assertEquals(\"The expected value of hours worked does not match the actual: \"\n , expected, e1.getNumberOfHours());\n\n }", "public int countTestList(TestParam param) throws Exception {\r\n return this.testMapper.countByExample(param);\r\n }", "public int getProblemCount();", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "public int getIndexExpected() {\n return indexExpected;\n }", "public int runCount() {\n return testCount;\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "@Override\n public int getTestCaseTotal() {\n return parameters.length;\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getResponsesCount();", "@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "@Test\n void verifyMetrics() throws IOException, InterruptedException {\n HttpRequest req = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(\"https://5f6trv8063.execute-api.us-east-1.amazonaws.com/default/VespaDocSearchLambda/?jsoncallback=?&query=ranking&ranking=documentation&locale=en-US&hits=1\"))\n .build();\n HttpResponse<String> res = httpClient.send(req, HttpResponse.BodyHandlers.ofString());\n\n assertEquals(200, res.statusCode());\n\n String body = res.body();\n long hitCount = new ObjectMapper().readTree(body.substring(2, body.length()-2)) // Strip ?( ); from JSON-P response\n .get(\"root\").get(\"fields\").get(\"totalCount\").asLong();\n assert(hitCount > 50);\n }", "@Test\n public void countTest() {\n // TODO: test count\n }", "int getFieldViolationsCount();", "Integer totalRetryAttempts();", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "int getStatusCount();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "@Test(groups = \"wso2.das4esb.stats\", description = \"Test total faults count in per-second table\")\n public void testSecondTableTotalErrorCount() throws Exception {\n int count = getCounts(TestConstants.ESB_STAT_PER_SECOND_ALL_TABLE, TestConstants.FAULT_COUNT, \"ALL\");\n Assert.assertEquals(count, NUMBER_OF_FAULTS*NUMBER_OF_PROXIES, \"Total faults count is incorrect\" +\n \" in per-second table.\");\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "public String dlMaxFailures();", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "@Test\r\n\tpublic void testGetNumGoalsForDivisionError() {\r\n\t\tint numGoalsDivError = -1;\r\n\t\tassertEquals(numGoalsDivError, stats.getNumGoalsForDivision(\"By Zero Division\"));\r\n\t}", "public String getSuspectedCount() {\n return suspectedCount;\n }", "String getLoginapisuccessfulhitcount();", "public static int count() {\n\treturn errorCount;\n }", "public int getMissedCallsCount();", "public int getSuccesses() {\n return successes.get();\n }", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int getMockUpdatesCount();", "public int getNumberOfErrors() {\n return errors;\n }", "int getStudentResponseCount();", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "public static long getTestCount() {\n return mTestCount;\n }", "@DisplayName(\"Get the number of edges that contains the graph and test if it is correct\")\n @Test\n public void testGetNumEdges() {\n Assertions.assertEquals(8, graph.getNumberEdges());\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "@Test\r\n public void testTotalNumberOfQuestion() {\r\n Application.loadQuestions();\r\n assertEquals(Application.allQuestions.size(), 2126);\r\n }", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "int getConditionalResponsesCount();", "int countByExample(UploadStateRegDTOExample example);", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }", "long getMisses();", "int getNumberOfSpecifiedExceptions();", "int getInvalidLoginCount();", "@Override\npublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\n}", "@ApiModelProperty(value = \"Count of skipped emails\")\r\n public Integer getSkippedCount() {\r\n return skippedCount;\r\n }", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }", "public Long getErr_count() {\n return err_count;\n }", "@Test\n public void testCount() throws Exception {\n System.out.println(\"count\");\n PrioridadRest instance = mokPrioridadRest;\n int expResult = 1;\n int result = instance.count();\n assertEquals(expResult, result);\n }", "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }" ]
[ "0.741016", "0.7323438", "0.7018506", "0.69022304", "0.68595016", "0.68132", "0.6711853", "0.6697956", "0.66506416", "0.6543173", "0.65298575", "0.6511837", "0.6409904", "0.6390555", "0.63503045", "0.6286573", "0.6198226", "0.6057322", "0.6055753", "0.604966", "0.60485446", "0.6034703", "0.60002476", "0.5997624", "0.5941829", "0.5928302", "0.5914365", "0.5902717", "0.5900024", "0.58947605", "0.58930385", "0.5877018", "0.5871033", "0.58684295", "0.5852744", "0.5848277", "0.58443093", "0.58388644", "0.5837117", "0.58261144", "0.5823368", "0.5819973", "0.5811109", "0.580587", "0.57902044", "0.57873756", "0.5784004", "0.57790583", "0.57764906", "0.5774423", "0.57726437", "0.5766128", "0.57656336", "0.5760665", "0.5760091", "0.57491857", "0.5748693", "0.57484657", "0.5737796", "0.5737679", "0.572778", "0.5727735", "0.5689283", "0.5687202", "0.5685446", "0.5685095", "0.5683173", "0.5676762", "0.5670003", "0.5668064", "0.5649528", "0.56386834", "0.56261605", "0.56258106", "0.5617353", "0.5608642", "0.5605151", "0.55941564", "0.5593013", "0.5592275", "0.5579302", "0.5574457", "0.55743647", "0.55743647", "0.5570517", "0.5563453", "0.55587375", "0.5555943", "0.555507", "0.55533004", "0.5544783", "0.5541991", "0.5541821", "0.55365676", "0.55325174", "0.55324954", "0.5529798", "0.55278254", "0.5527383", "0.55224633" ]
0.6113843
17
Count of expected failures. int32 expected_failures = 6 [json_name = "expectedFailures"];
public Builder clearExpectedFailures() { bitField0_ = (bitField0_ & ~0x00000020); expectedFailures_ = 0; onChanged(); return this; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "@java.lang.Override\n public int getExpectedFailures() {\n return expectedFailures_;\n }", "private void assertCountEvent(int exepectedCount, String eleementName, String json) {\n\n// System.out.println(\"debug \"+eleementName+\" \"+matchEventCount(eleementName, json));\n assertEquals(\"For event '\" + eleementName + \"' expecting count\", exepectedCount, matchEventCount(eleementName, json));\n }", "public int getFailureCount() {\r\n return root.getFailureCount();\r\n }", "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "@java.lang.Override\n public int getFailures() {\n return failures_;\n }", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "public int getFailedCheckCount() {\n return iFailedCheckCount;\n }", "Set<Integer> getExpectedStatusCodes();", "public int expectedEntries() {\n\t\treturn message.getTotalExpectedEntries();\n\t}", "private long getExpectedSize(List<String> expectedJsonBatches) throws ExecutionSetupException {\n // Create a dummy scanBatch to figure out the size.\n RecordBatch scanBatch = new ScanBatch(new MockPhysicalOperator(), fragContext, getReaderListForJsonBatches(expectedJsonBatches, fragContext));\n Iterable<VectorAccessible> batches = new BatchIterator(scanBatch);\n\n long totalSize = 0;\n for (VectorAccessible batch : batches) {\n RecordBatchSizer sizer = new RecordBatchSizer(batch);\n totalSize += sizer.getNetBatchSize();\n }\n return totalSize;\n }", "private int numJunitFailures(\n Iterator<String> lineIterator, Status status, String qualifiedClassname, String javaCode) {\n Match failureCountMatch;\n try {\n failureCountMatch = readUntilMatch(lineIterator, FAILURE_MESSAGE_PATTERN);\n } catch (NotMatchedException e) {\n if (status.errorOutputLines.size() == 1) {\n String stderr = status.errorOutputLines.get(0);\n if (stderr.equals(\"Error: Could not find or load main class org.junit.runner.JUnitCore\")) {\n throw new RandoopUsageError(\n \"Classpath does not contain JUnit. \"\n + \"Please correct the classpath and re-run Randoop.\");\n }\n }\n StringBuilder errorMessage = new StringBuilder();\n if (status.exitStatus == 137) {\n errorMessage.append(\"Exit status 137. Probably interrupted or out of memory.\");\n errorMessage.append(Globals.lineSep);\n } else {\n errorMessage.append(\n String.format(\n \"Did not find \\\"%s\\\" in execution of %s%nstatus=%s%n\",\n FAILURE_MESSAGE_PATTERN.pattern(), qualifiedClassname, status));\n }\n errorMessage.append(\"Standard output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.standardOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of standard output.\");\n errorMessage.append(\"Error output:\");\n errorMessage.append(Globals.lineSep);\n for (String line : status.errorOutputLines) {\n errorMessage.append(line);\n errorMessage.append(Globals.lineSep);\n }\n errorMessage.append(\"... end of error output.\");\n errorMessage.append(Globals.lineSep);\n if (AbstractGenerator.dump_sequences) {\n errorMessage.append(Globals.lineSep);\n errorMessage.append(\"Generated tests:\");\n errorMessage.append(Globals.lineSep);\n errorMessage.append(javaCode);\n }\n if (status.exitStatus == 137) {\n throw new RandoopUsageError(errorMessage.toString(), e);\n } else {\n throw new RandoopBug(errorMessage.toString(), e);\n }\n }\n int totalFailures = Integer.parseInt(failureCountMatch.group);\n if (totalFailures <= 0) {\n throw new RandoopBug(\"JUnit has non-zero exit status, but no failure found\");\n }\n return totalFailures;\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "public int countTestCases() {\n return 1;\n }", "private int getFailCount() {\n\t\t\t\t\treturn record.getIntProperty(DatabasePasswordComposite.PASSWORD_FAILS, 0);\n\t\t\t\t}", "public Builder setExpectedFailures(int value) {\n\n expectedFailures_ = value;\n bitField0_ |= 0x00000020;\n onChanged();\n return this;\n }", "int getErrorCount();", "public int getHttpFailures() {\n return httpFailures.get();\n }", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Schema(required = true, description = \"Expected number of proxies\")\n public Integer getExpectedProxiesCount() {\n return expectedProxiesCount;\n }", "long getNumberOfComparisons();", "@Test\r\n\tpublic void countTeams() {\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countTeams();\r\n\t\t// TODO: JUnit - Add assertions to test outputs of operation: countTeams\r\n\t}", "public int numberOfResult() throws Exception;", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "public int failed() {\n return this.failed;\n }", "void assertTotalCntEquals(T key, int expected);", "@Test\n public void testInvokeCountErrorValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n Object result = CSJmxStats.invokeCountErrorValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "int getResponseCount();", "public Byte getNumChargedFail() {\n return numChargedFail;\n }", "public int numOfExpectedElements() {\n return config().getN();\n }", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "private String getInvalidCountReport(Node node, int expectedCount)\n\t{\n\t\tint argLength = node.jjtGetNumChildren();\n\t\tNode[] args = new Node[argLength];\n\t\tfor (int i = 0; i < argLength; i++)\n\t\t{\n\t\t\targs[i] = node.jjtGetChild(i);\n\t\t}\n\t\treturn \"Parse Error: Item of type \" + node.getClass().getName()\n\t\t\t+ \" had incorrect children from parse. Expected \" + expectedCount\n\t\t\t+ \" got \" + args.length + \" \" + Arrays.asList(args);\n\t}", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "UnsignedInteger getDeliveryFailures();", "@Test\n public void getNumberOfHoursTest() {\n int expected = 152;\n\n assertEquals(\"The expected value of hours worked does not match the actual: \"\n , expected, e1.getNumberOfHours());\n\n }", "public int countTestList(TestParam param) throws Exception {\r\n return this.testMapper.countByExample(param);\r\n }", "public int getProblemCount();", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "@Test(groups = \"heartbeat\", dataProvider = \"resourceNameProvider\")\n public void connectToCountResource(String resourceName, Integer expectedStatus) {\n String url = prefix + resourceName + \"/_count\";\n WebResource resource = client.resource(url);\n ClientResponse response = resource.get(ClientResponse.class);\n Integer status = response.getStatus();\n Assert.assertEquals(status, expectedStatus);\n }", "public Integer getErrorCnt() {\r\n return errorCnt;\r\n }", "public int getIndexExpected() {\n return indexExpected;\n }", "public int runCount() {\n return testCount;\n }", "public int getSuccessCount() {\r\n return root.getSuccessCount();\r\n }", "@Override\n public int getTestCaseTotal() {\n return parameters.length;\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "@java.lang.Override\n public int getSuccesses() {\n return successes_;\n }", "int getResponsesCount();", "@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }", "Integer getNumberOfNetworkFailure() {\n return daoInterface.getNumberOfNetworkFailure();\n }", "@Test\n void verifyMetrics() throws IOException, InterruptedException {\n HttpRequest req = HttpRequest.newBuilder()\n .GET()\n .uri(URI.create(\"https://5f6trv8063.execute-api.us-east-1.amazonaws.com/default/VespaDocSearchLambda/?jsoncallback=?&query=ranking&ranking=documentation&locale=en-US&hits=1\"))\n .build();\n HttpResponse<String> res = httpClient.send(req, HttpResponse.BodyHandlers.ofString());\n\n assertEquals(200, res.statusCode());\n\n String body = res.body();\n long hitCount = new ObjectMapper().readTree(body.substring(2, body.length()-2)) // Strip ?( ); from JSON-P response\n .get(\"root\").get(\"fields\").get(\"totalCount\").asLong();\n assert(hitCount > 50);\n }", "@Test\n public void countTest() {\n // TODO: test count\n }", "int getFieldViolationsCount();", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\t\n}", "Integer totalRetryAttempts();", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "int getStatusCount();", "public int getNumberOfFailedFiles() {\n return numberOfFailedFiles;\n }", "public void onTestFailedButWithinSuccessPercentage(ITestResult arg0) {\n\n }", "@Test(groups = \"wso2.das4esb.stats\", description = \"Test total faults count in per-second table\")\n public void testSecondTableTotalErrorCount() throws Exception {\n int count = getCounts(TestConstants.ESB_STAT_PER_SECOND_ALL_TABLE, TestConstants.FAULT_COUNT, \"ALL\");\n Assert.assertEquals(count, NUMBER_OF_FAULTS*NUMBER_OF_PROXIES, \"Total faults count is incorrect\" +\n \" in per-second table.\");\n }", "@Test(priority = 7, description=\"Check for remaining cards field, with bad value to Draw\", dependsOnGroups = \"StatusCheck\")\n public void drawUsingBadCountValue() throws IOException, URISyntaxException {\n response = DeckOfCardsApi.drawCardsFromDeckUsingGet(\"https://deckofcardsapi.com/api/deck/\", deckID, \"-1\");\n jsonObject = DeckOfCardsApi.getJsonData(response);\n\n Assert.assertEquals(DeckOfCardsApi.getJsonValue(jsonObject, jkey_remaining), \"50\", \"Expected to Fail, Seems like an error in the API; When given -n, n is a number, All Cards are deleted but only n card remains.\");\n }", "public String dlMaxFailures();", "@Test\r\n\tpublic void testGetNumGoalsForDivisionError() {\r\n\t\tint numGoalsDivError = -1;\r\n\t\tassertEquals(numGoalsDivError, stats.getNumGoalsForDivision(\"By Zero Division\"));\r\n\t}", "public String getSuspectedCount() {\n return suspectedCount;\n }", "String getLoginapisuccessfulhitcount();", "public static int count() {\n\treturn errorCount;\n }", "public int getMissedCallsCount();", "public int getSuccesses() {\n return successes.get();\n }", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "int getMockUpdatesCount();", "public int getNumberOfErrors() {\n return errors;\n }", "int getStudentResponseCount();", "public static long getTestCount() {\n return mTestCount;\n }", "@ManagedMetric(category=\"UDPOpRequests\", metricType=MetricType.COUNTER, description=\"total number of agent operations failed\")\n\tpublic long getRequestsFailed() {\n\t\treturn getMetricValue(\"RequestsFailed\");\n\t}", "@DisplayName(\"Get the number of edges that contains the graph and test if it is correct\")\n @Test\n public void testGetNumEdges() {\n Assertions.assertEquals(8, graph.getNumberEdges());\n }", "@ApiModelProperty(value = \"The number of invalid components in the NiFi.\")\r\n public Integer getInvalidCount() {\r\n return invalidCount;\r\n }", "public int getErrorCount()\r\n {\r\n \treturn errorCount;\r\n }", "@Test\r\n public void testTotalNumberOfQuestion() {\r\n Application.loadQuestions();\r\n assertEquals(Application.allQuestions.size(), 2126);\r\n }", "public int getErrorCount() {\r\n return root.getErrorCount();\r\n }", "int getConditionalResponsesCount();", "int countByExample(UploadStateRegDTOExample example);", "@Test\r\n\tpublic void countGames() {\r\n\t\t@SuppressWarnings(\"unused\")\r\n\t\tInteger response = null;\r\n\t\tresponse = service.countGames();\r\n\t\t// DO: JUnit - Add assertions to test outputs of operation: countGames\r\n\t}", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "@Override\n public void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\n }", "public byte getTestSuccessNum() {\r\n return testSuccessNum;\r\n }", "public Long getErrorCount() {\n return this.errorCount;\n }", "@Test\n public void TEST_UR_MAP_OBJECT_COUNT() {\n Map[] maps = new Map[3];\n maps[0] = new Map(\"Map1/Map1.tmx\", 1000, \"easy\");\n maps[1] = new Map(\"Map1/Map1.tmx\", 1000, \"medium\");\n maps[2] = new Map(\"Map1/Map1.tmx\", 1000, \"hard\");\n for (int i = 0; i <= 2; i++) {\n Map map = maps[i];\n map.createLanes();\n int obstacleCount = map.lanes[0].obstacles.length;\n int powerupCount = map.lanes[0].powerUps.length;\n for (int j = 1; j <= 3; j++) {\n assertEquals(map.lanes[j].obstacles.length, obstacleCount);\n assertEquals(map.lanes[j].powerUps.length, powerupCount);\n }\n }\n }", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }", "long getMisses();", "int getNumberOfSpecifiedExceptions();", "@Override\npublic void onTestFailedButWithinSuccessPercentage(ITestResult result) {\n\t\n}", "int getInvalidLoginCount();", "@ApiModelProperty(value = \"Count of skipped emails\")\r\n public Integer getSkippedCount() {\r\n return skippedCount;\r\n }", "public void testCount()\n\t{\n\t\tinfo.append(a1);\n\t\tinfo.append(a2);\n\t\tinfo.append(a3);\n\t\tassertEquals(3,info.getSynonymsCount());\n\t}", "public int errorCount() {\n\t\treturn errorCount;\n\t}", "@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }", "@Test\n public void testCount() throws Exception {\n System.out.println(\"count\");\n PrioridadRest instance = mokPrioridadRest;\n int expResult = 1;\n int result = instance.count();\n assertEquals(expResult, result);\n }", "public Long getErr_count() {\n return err_count;\n }", "@Test\n public void testRetryCountNoRetries() {\n assertEquals(0, rc.getAttempts());\n }" ]
[ "0.7410561", "0.73237133", "0.70196134", "0.69030106", "0.6860752", "0.6813732", "0.67123497", "0.66985357", "0.6651131", "0.6544155", "0.6529456", "0.65105903", "0.6409625", "0.6391093", "0.6350927", "0.6286969", "0.6199049", "0.61138594", "0.6056716", "0.6056016", "0.6049807", "0.6047966", "0.60347134", "0.6000461", "0.5997234", "0.5942172", "0.5929203", "0.5914648", "0.59028375", "0.58990175", "0.58954686", "0.58925164", "0.587798", "0.5871492", "0.5867732", "0.58522505", "0.5849325", "0.5844951", "0.5838994", "0.5837905", "0.5827185", "0.5822778", "0.5820074", "0.58109653", "0.58055127", "0.57904667", "0.57867855", "0.5783271", "0.5777854", "0.57764727", "0.5775016", "0.57720286", "0.57669884", "0.5765473", "0.57606936", "0.575985", "0.57502484", "0.57486516", "0.5748488", "0.573823", "0.5737999", "0.5728891", "0.57287794", "0.5690175", "0.5686683", "0.5685525", "0.56844735", "0.5682489", "0.56761557", "0.56710887", "0.5667864", "0.5648534", "0.56375414", "0.56263924", "0.5626065", "0.56180286", "0.56082964", "0.56044805", "0.55951464", "0.559234", "0.55912054", "0.5578847", "0.55752814", "0.5574851", "0.5574851", "0.55712134", "0.55626315", "0.5559801", "0.5556417", "0.55559456", "0.5552891", "0.5544412", "0.55423945", "0.55419934", "0.5535853", "0.5533098", "0.55317724", "0.5530865", "0.55276746", "0.55271477", "0.5522773" ]
0.0
-1
Initialize the contents of the frame.
private void initialize() { frame = new JFrame(); frame.getContentPane().setBackground(Color.GRAY); frame.setBounds(100, 100, 664, 483); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(null); JLabel lblNewLabel = new JLabel("BOOK YOUR TRAIN TICKET"); lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER); lblNewLabel.setForeground(Color.WHITE); lblNewLabel.setFont(new Font("Arial Black", Font.BOLD, 22)); lblNewLabel.setBackground(Color.GRAY); lblNewLabel.setBounds(134, 11, 381, 32); frame.getContentPane().add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel("FROM"); lblNewLabel_1.setForeground(new Color(0, 0, 128)); lblNewLabel_1.setFont(new Font("Times New Roman", Font.BOLD, 19)); lblNewLabel_1.setBounds(103, 80, 79, 22); frame.getContentPane().add(lblNewLabel_1); textField = new JTextField(); textField.setForeground(new Color(128, 0, 0)); textField.setBackground(new Color(255, 255, 224)); textField.setFont(new Font("Times New Roman", Font.PLAIN, 18)); textField.setBounds(328, 80, 225, 23); frame.getContentPane().add(textField); textField.setColumns(10); JLabel lblTo = new JLabel("TO"); lblTo.setForeground(new Color(0, 0, 128)); lblTo.setFont(new Font("Times New Roman", Font.BOLD, 19)); lblTo.setBounds(103, 125, 79, 22); frame.getContentPane().add(lblTo); textField_1 = new JTextField(); textField_1.setForeground(new Color(128, 0, 0)); textField_1.setFont(new Font("Times New Roman", Font.PLAIN, 18)); textField_1.setColumns(10); textField_1.setBackground(new Color(255, 255, 224)); textField_1.setBounds(328, 125, 225, 23); frame.getContentPane().add(textField_1); JLabel lblDate = new JLabel("DATE"); lblDate.setForeground(new Color(0, 0, 128)); lblDate.setFont(new Font("Times New Roman", Font.BOLD, 19)); lblDate.setBounds(103, 171, 79, 22); frame.getContentPane().add(lblDate); JLabel lblClass = new JLabel("CLASS"); lblClass.setForeground(new Color(0, 0, 128)); lblClass.setFont(new Font("Times New Roman", Font.BOLD, 19)); lblClass.setBounds(103, 215, 79, 22); frame.getContentPane().add(lblClass); JLabel lblNoOfPassenger = new JLabel("NO OF PASSENGER"); lblNoOfPassenger.setForeground(new Color(0, 0, 128)); lblNoOfPassenger.setFont(new Font("Times New Roman", Font.BOLD, 19)); lblNoOfPassenger.setBounds(103, 261, 182, 22); frame.getContentPane().add(lblNoOfPassenger); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public BreukFrame() {\n super();\n initialize();\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tthis.setSize(211, 449);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setTitle(\"JFrame\");\n\t}", "public SiscobanFrame() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1100, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tsetUIComponents();\n\t\tsetControllers();\n\n\t}", "private void initialize() {\r\n\t\tthis.setSize(530, 329);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\taddSampleData();\n\t\tsetDefaultSettings();\n\t\topenHomePage();\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"Media Inventory\");\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(0, 0, 1000, 700);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tframeContent = new JPanel();\n\t\tframe.getContentPane().add(frameContent);\n\t\tframeContent.setBounds(10, 10, 700, 640);\n\t\tframeContent.setLayout(null);\n\t\t\n\t\tinfoPane = new JPanel();\n\t\tframe.getContentPane().add(infoPane);\n\t\tinfoPane.setBounds(710, 10, 300, 640);\n\t\tinfoPane.setLayout(null);\n\t}", "private void initialize() {\n\t\tframe = new JFrame(\"BirdSong\");\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t\tframe.setBounds(100, 100, 400, 200);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tabc = new BirdPanel();\n\t\ttime = new TimePanel();\n\t\tgetContentPane().setLayout(new BoxLayout(frame, BoxLayout.Y_AXIS));\n\n\t\tframe.getContentPane().add(abc, BorderLayout.NORTH);\n\t\tframe.getContentPane().add(time, BorderLayout.CENTER);\n\t}", "private void initialize() {\r\n\t\tthis.setSize(311, 153);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tsetCancelButton( btnCancel );\r\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(497, 316);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JFrame\");\r\n\t\tthis.setExtendedState(JFrame.MAXIMIZED_BOTH);\r\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "protected HFrame(){\n\t\tinit();\n\t}", "private void initializeFields() {\r\n myFrame = new JFrame();\r\n myFrame.setSize(DEFAULT_SIZE);\r\n }", "private void initialize() {\n\t\tthis.setSize(329, 270);\n\t\tthis.setContentPane(getJContentPane());\n\t}", "private void initialize() {\r\n\t\t//setFrame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(125,175, 720, 512);\r\n\t\tframe.setTitle(\"Periodic Table\");\r\n\t\tframe.setResizable(false);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "private void initFrame() {\n setLayout(new BorderLayout());\n }", "private void initialize() {\n\t\tthis.setSize(300, 300);\n\t\tthis.setIconifiable(true);\n\t\tthis.setClosable(true);\n\t\tthis.setTitle(\"Sobre\");\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setFrameIcon(new ImageIcon(\"images/16x16/info16x16.gif\"));\n\t}", "public FrameControl() {\n initComponents();\n }", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t}", "public MainFrame() {\n initComponents();\n \n }", "private void init(Element frame) {\n\t\tthis.frameWidth = Integer.parseInt(frame.attributeValue(\"width\"));\n\t\tthis.frameHeight = Integer.parseInt(frame.attributeValue(\"height\"));\n\t\tthis.paddle = Integer.parseInt(frame.attributeValue(\"paddle\"));\n\t\tthis.size = Integer.parseInt(frame.attributeValue(\"size\"));\n\t}", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public internalFrame() {\r\n initComponents();\r\n }", "private void initialize() {\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setSize(810, 600);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);\n\t\tthis.setModal(true);\n\t\tthis.setResizable(false);\n\t\tthis.setName(\"FramePrincipalLR\");\n\t\tthis.setTitle(\"CR - Lista de Regalos\");\n\t\tthis.setLocale(new java.util.Locale(\"es\", \"VE\", \"\"));\n\t\tthis.setUndecorated(false);\n\t}", "public Mainframe() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(392, 496);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"Informações\");\r\n\t}", "private void initialize() {\n this.setSize(253, 175);\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setContentPane(getJContentPane());\n this.setTitle(\"Breuken vereenvoudigen\");\n }", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "private void initialize() {\r\n\t\t// this.setSize(271, 295);\r\n\t\tthis.setSize(495, 392);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(ResourceBundle.getBundle(\"Etiquetas\").getString(\"MainTitle\"));\r\n\t}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "private void initialize() {\n this.setSize(300, 200);\n this.setContentPane(getJContentPane());\n this.pack();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"DB Filler\");\n\t\tframe.setBounds(100, 100, 700, 500);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tdbc = new DataBaseConnector();\n\t\tcreateFileChooser();\n\n\t\taddTabbedPane();\n\t\tsl_panel = new SpringLayout();\n\t\taddAddFilePanel();\n\t}", "public mainframe() {\n initComponents();\n }", "public FrameDesign() {\n initComponents();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public JGSFrame() {\n\tsuper();\n\tinitialize();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void initialize() {\n this.setSize(495, 276);\n this.setTitle(\"Translate Frost\");\n this.setContentPane(getJContentPane());\n }", "private void initialize() {\r\n\t\t// set specific properties and add inner components.\r\n\t\tthis.setBorder(BorderFactory.createEtchedBorder());\r\n\t\tthis.setSize(300, 400);\r\n\t\tthis.setLayout(new BorderLayout());\r\n\t\taddComponents();\r\n\t}", "private void initialize() {\r\n\t\tthis.setBounds(new Rectangle(0, 0, 670, 576));\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setTitle(\"数据入库 \");\r\n\t\tthis.setLocationRelativeTo(getOwner());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void initialize() {\n this.setLayout(new BorderLayout());\n this.setSize(new java.awt.Dimension(564, 229));\n this.add(getMessagePanel(), java.awt.BorderLayout.NORTH);\n this.add(getBalloonSettingsListBox(), java.awt.BorderLayout.CENTER);\n this.add(getBalloonSettingsButtonPane(), java.awt.BorderLayout.SOUTH);\n\n editBalloonSettingsFrame = new EditBalloonSettingsFrame();\n\n }", "public SMFrame() {\n initComponents();\n updateComponents();\n }", "private void initialize() {\n m_frame = new JFrame(\"Video Recorder\");\n m_frame.setResizable(false);\n m_frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n m_frame.setLayout(new BorderLayout());\n m_frame.add(buildContentPanel(), BorderLayout.CENTER);\n\n JPanel buttonPanel = new JPanel(new FlowLayout(FlowLayout.CENTER, 5, 5));\n JButton startButton = new JButton(\"Start\");\n startButton.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent ae) {\n listen();\n }\n });\n buttonPanel.add(startButton);\n\n m_connectionLabel = new JLabel(\"Disconnected\");\n m_connectionLabel.setOpaque(true);\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));\n m_connectionLabel.setPreferredSize(new Dimension(100, 26));\n m_connectionLabel.setHorizontalAlignment(SwingConstants.CENTER);\n buttonPanel.add(m_connectionLabel);\n\n m_frame.add(buttonPanel, BorderLayout.PAGE_END);\n }", "public FirstNewFrame() {\n\t\tjbInit();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJButton btnNewButton = new JButton(\"Play\");\n\t\tbtnNewButton.setFont(new Font(\"Bodoni 72\", Font.BOLD, 13));\n\t\tbtnNewButton.setBounds(frame.getWidth() / 2 - 60, 195, 120, 30);\n\t\tframe.getContentPane().add(btnNewButton);\n\t\t\n\t\tJLabel lblNewLabel = new JLabel(\"Space Escape\");\n\t\tlblNewLabel.setForeground(Color.WHITE);\n\t\tlblNewLabel.setFont(new Font(\"Bodoni 72\", Font.BOLD, 24));\n\t\tlblNewLabel.setBounds(frame.getWidth() / 2 - 60, 30, 135, 25);\n\t\tframe.getContentPane().add(lblNewLabel);\n\t\t\n\t\tJLabel lblNewLabel_1 = new JLabel(\"New label\");\n\t\tlblNewLabel_1.setBounds(0, 0, frame.getWidth(), frame.getHeight());\n\t\tframe.getContentPane().add(lblNewLabel_1);\n\t}", "private void initializeFrame()\r\n\t{\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tsetSize(DIMENSIONS); // set the correct dimensions\r\n\t\tsetDefaultCloseOperation(EXIT_ON_CLOSE);\r\n\t\tsetLayout( new GridLayout(1,1) );\r\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public void init()\n {\n buildUI(getContentPane());\n }", "private void initialize()\n {\n this.setTitle( \"SerialComm\" ); // Generated\n this.setSize( 500, 300 );\n this.setContentPane( getJContentPane() );\n }", "public launchFrame() {\n \n initComponents();\n \n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "private void initialize() {\n\t\tthis.setSize(430, 280);\n\t\tthis.setContentPane(getJContentPane());\n\t\tthis.setUndecorated(true);\n\t\tthis.setModal(true);\n\t\tthis.setBackground(new java.awt.Color(226,226,222));\n\t\tthis.setTitle(\"Datos del Invitado\");\n\t\tthis.addComponentListener(this);\n\t}", "public PilaFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 900, 900);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tgame = new Game();\n\t\t\n\t\tGameTable puzzle = new GameTable(game.getPuzzle());\n\t\tpuzzle.setBounds(100, 100, 700, 700);\n\t\t\n\t\tframe.add(puzzle);\n\t\t\n\t\tSystem.out.println(\"SAD\");\n\t\t\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setResizable(false);\r\n\t\tframe.setBounds(100, 100, 450, 300);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tPanel mainFramePanel = new Panel();\r\n\t\tmainFramePanel.setBounds(10, 10, 412, 235);\r\n\t\tframe.getContentPane().add(mainFramePanel);\r\n\t\tmainFramePanel.setLayout(null);\r\n\t\t\r\n\t\tfinal TextField textField = new TextField();\r\n\t\ttextField.setBounds(165, 62, 79, 24);\r\n\t\tmainFramePanel.add(textField);\r\n\t\t\r\n\t\tButton changeTextButt = new Button(\"Change Text\");\r\n\t\tchangeTextButt.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\ttextField.setText(\"Domograf\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tchangeTextButt.setBounds(165, 103, 79, 24);\r\n\t\tmainFramePanel.add(changeTextButt);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setResizable(false);\n\t\tframe.setAlwaysOnTop(true);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t}", "StudentFrame() {\n \tgetContentPane().setFont(new Font(\"Times New Roman\", Font.PLAIN, 11));\n s1 = null; // setting to null\n initializeComponents(); // causes frame components to be initialized\n }", "private void initialize() {\r\n\t\tthis.setSize(300, 200);\r\n\t\tthis.setTitle(\"Error\");\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t}", "public NewFrame() {\n initComponents();\n }", "public SerialCommFrame()\n {\n super();\n initialize();\n }", "public LoginFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "public BaseFrame() {\n initComponents();\n }", "private void initialize() {\r\n\t\tthis.setSize(733, 427);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"jProxyChecker\");\r\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public MercadoFrame() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(X_FRAME, Y_FRAME, WIDTH_FRAME, HEIGHT_FRAME);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.getContentPane().setLayout(null);\r\n\t\t\r\n\t\tJButton btnAddSong = new JButton(\"Add song\");\r\n\t\tbtnAddSong.setBounds(X_BTN, Y_ADDSONG, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddSong);\r\n\t\t\r\n\t\tJTextPane txtpnBlancoYNegro = new JTextPane();\r\n\t\ttxtpnBlancoYNegro.setText(\"Blanco y negro\\r\\nThe Spectre\\r\\nGirasoles\\r\\nFaded\\r\\nTu Foto\\r\\nEsencial\");\r\n\t\ttxtpnBlancoYNegro.setBounds(X_TXT, Y_TXT, WIDTH_TXT, HEIGHT_TXT);\r\n\t\tframe.getContentPane().add(txtpnBlancoYNegro);\r\n\t\t\r\n\t\tJLabel lblSongs = new JLabel(\"Songs\");\r\n\t\tlblSongs.setBounds(X_LBL, Y_LBL, WIDTH_LBL, HEIGHT_LBL);\r\n\t\tframe.getContentPane().add(lblSongs);\r\n\t\t\r\n\t\tJButton btnAddAlbum = new JButton(\"Add album\");\r\n\t\tbtnAddAlbum.setBounds(X_BTN, Y_ADDALBUM, WIDTH_BTN, HEIGHT_BTN);\r\n\t\tframe.getContentPane().add(btnAddAlbum);\r\n\t}", "public holdersframe() {\n initComponents();\n }", "public void init() {\n\t\tsetSize(500,300);\n\t}", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public addStFrame() {\n initComponents();\n }", "public JFrame() {\n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "private void initialize() {\n\t\tframe = new JFrame(\"View Report\");\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\tJButton backButton = new JButton(\"Back\");\n\t\tbackButton.setBounds(176, 227, 89, 23);\n\t\tframe.getContentPane().add(backButton);\n\t\tbackButton.addActionListener(new ActionListener(){\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tframe.setVisible(false);\n\t\t\t}\n\t\t});\n\t\t\n\t\tJTextArea textArea = new JTextArea();\n\t\ttextArea.setBounds(50, 30, 298, 173);\n\t\tframe.getContentPane().add(textArea);\n\t\ttextArea.append(control.seeReport());\n\t\tframe.setVisible(true);\n\t}", "private void initialize() {\r\n this.setSize(new Dimension(666, 723));\r\n this.setContentPane(getJPanel());\r\n\t\t\t\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblSubmission = new JLabel(\"Submission\");\n\t\tlblSubmission.setForeground(Color.WHITE);\n\t\tlblSubmission.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 16));\n\t\tlblSubmission.setBounds(164, 40, 83, 14);\n\t\tframe.getContentPane().add(lblSubmission);\n\t\t\n\t\tJLabel lblTitle = new JLabel(\"Title:\");\n\t\tlblTitle.setForeground(Color.WHITE);\n\t\tlblTitle.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblTitle.setBounds(77, 117, 41, 14);\n\t\tframe.getContentPane().add(lblTitle);\n\t\t\n\t\tJLabel lblPath = new JLabel(\"Path:\");\n\t\tlblPath.setForeground(Color.WHITE);\n\t\tlblPath.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tlblPath.setBounds(85, 155, 33, 14);\n\t\tframe.getContentPane().add(lblPath);\n\t\t\n\t\ttitle = new JTextField();\n\t\ttitle.setBounds(128, 116, 197, 20);\n\t\tframe.getContentPane().add(title);\n\t\ttitle.setColumns(10);\n\t\t\n\t\tpath = new JTextField();\n\t\tpath.setBounds(128, 154, 197, 20);\n\t\tframe.getContentPane().add(path);\n\t\tpath.setColumns(10);\n\t\t\n\t\tbtnSubmit = new JButton(\"Submit\");\n\t\tbtnSubmit.setBackground(Color.BLACK);\n\t\tbtnSubmit.setForeground(Color.WHITE);\n\t\tbtnSubmit.setFont(new Font(\"Comic Sans MS\", Font.PLAIN, 14));\n\t\tbtnSubmit.setBounds(158, 210, 89, 23);\n\t\tframe.getContentPane().add(btnSubmit);\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public void init() {\r\n\t\t\r\n\t\tsetSize(WIDTH, HEIGHT);\r\n\t\tColor backgroundColor = new Color(60, 0, 60);\r\n\t\tsetBackground(backgroundColor);\r\n\t\tintro = new GImage(\"EvilMehranIntroGraphic.png\");\r\n\t\tintro.setLocation(0,0);\r\n\t\tadd(intro);\r\n\t\tplayMusic(new File(\"EvilMehransLairThemeMusic.wav\"));\r\n\t\tinitAnimationArray();\r\n\t\taddKeyListeners();\r\n\t\taddMouseListeners();\r\n\t\twaitForClick();\r\n\t\tbuildWorld();\r\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void initialize() {\n\t\tthis.setBounds(100, 100, 950, 740);\n\t\tthis.setLayout(null);\n\n\t\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 450, 300);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t\n\t\tJLabel lblCoisa = new JLabel(\"Coisa\");\n\t\tlblCoisa.setBounds(10, 11, 46, 14);\n\t\tframe.getContentPane().add(lblCoisa);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(39, 8, 86, 20);\n\t\tframe.getContentPane().add(textField);\n\t\ttextField.setColumns(10);\n\t}", "private void initialize() {\n\t\tthis.setExtendedState(Frame.MAXIMIZED_BOTH);\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(true);\n\t\tthis.screenDimensions = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tthis.getContentPane().setLayout(new BorderLayout());\n\t\t// Initialize SubComponents and GUI Commands\n\t\tthis.initializeSplitPane();\n\t\tthis.initializeExplorer();\n\t\tthis.initializeConsole();\n\t\tthis.initializeMenuBar();\n\t\tthis.pack();\n\t\tthis.hydraExplorer.refreshExplorer();\n\t}" ]
[ "0.77704835", "0.75652915", "0.7442664", "0.7369101", "0.7366378", "0.7358479", "0.73146075", "0.73096764", "0.72987294", "0.72978777", "0.7278321", "0.72729623", "0.7269468", "0.7269468", "0.7215727", "0.7180792", "0.71682984", "0.7140954", "0.7140953", "0.7126852", "0.7107974", "0.7100368", "0.7092515", "0.708178", "0.70652425", "0.70630395", "0.70621413", "0.7060283", "0.70517516", "0.7043992", "0.6996167", "0.6978269", "0.6971387", "0.6956391", "0.6938475", "0.6929829", "0.6929629", "0.69251114", "0.6921989", "0.6920365", "0.6914633", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.6911002", "0.69020075", "0.68911743", "0.6886017", "0.6873457", "0.6870402", "0.68686837", "0.68669385", "0.686311", "0.68616706", "0.68552315", "0.68537515", "0.681551", "0.68141145", "0.68094325", "0.67992085", "0.67930394", "0.6782133", "0.6765297", "0.6748138", "0.6731745", "0.6716807", "0.6711878", "0.6706194", "0.6697453", "0.6692831", "0.66927665", "0.6689213", "0.66724384", "0.66606426", "0.664954", "0.6642464", "0.6640775", "0.6638488", "0.663824", "0.663545", "0.66264987", "0.6625419", "0.6611392", "0.6608291", "0.6600817", "0.66005784", "0.6591052", "0.65869486", "0.65862876", "0.65753394", "0.6575285", "0.6570335", "0.655961" ]
0.0
-1
Uses reflection in order to extract a local configuration.
private static String getLocalConfigString(String name) { try { return (String) LOCAL_CONFIG_CLASS.getField(name).get(null); } catch (Exception e) { Log.e(LOG_TAG, "No local configuration found with key " + name); return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void GetConfig()\n {\n boolean useClassPath = false;\n if(configFile_ == null)\n {\n useClassPath = true;\n configFile_ = \"data.config.lvg\";\n }\n // read in configuration file\n if(conf_ == null)\n {\n conf_ = new Configuration(configFile_, useClassPath);\n }\n }", "private void loadLocalConfig()\n {\n try\n {\n // Load the system config file.\n URL fUrl = Config.class.getClassLoader().getResource( PROP_FILE );\n config.setDelimiterParsingDisabled( true );\n if ( fUrl == null )\n {\n String error = \"static init: Error, null cfg file: \" + PROP_FILE;\n LOG.warn( error );\n }\n else\n {\n LOG.info( \"static init: found from: {} path: {}\", PROP_FILE, fUrl.getPath() );\n config.load( fUrl );\n LOG.info( \"static init: loading from: {}\", PROP_FILE );\n }\n\n URL fUserUrl = Config.class.getClassLoader().getResource( USER_PROP_FILE );\n if ( fUserUrl != null )\n {\n LOG.info( \"static init: found user properties from: {} path: {}\", USER_PROP_FILE, fUserUrl.getPath() );\n config.load( fUserUrl );\n }\n }\n catch ( org.apache.commons.configuration.ConfigurationException ex )\n {\n String error = \"static init: Error loading from cfg file: [\" + PROP_FILE\n + \"] ConfigurationException=\" + ex;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_BOOTSTRAP_FAILED, error, ex );\n }\n }", "private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "Configuration getConfiguration();", "public LocalConfiguration getConfiguration() {\n return configuration;\n }", "public static void configureLocal() {\r\n configure(getProperties(true));\r\n }", "private static void processLocalConfig() {\n String localConfigFile = getConfigValue(SYSPROP_LOCAL_CONFIG_FILE);\n if (localConfigFile == null || localConfigFile.isEmpty()) {\n log.log(Level.FINE, \"No local configuration defined, skipping associated processing\");\n return;\n }\n\n log.log(Level.FINE, \"Processing configuration file {0}\", localConfigFile);\n Path p = Paths.get(localConfigFile);\n if (!Files.exists(p)) {\n log.log(Level.WARNING, \"Path {0} does not exist\", p.toString());\n return;\n } else if (!Files.isRegularFile(p)) {\n log.log(Level.WARNING, \"Path {0} is not a file\", p.toString());\n return;\n } else if (!Files.isReadable(p)) {\n log.log(Level.WARNING, \"File {0} is not readable\", p.toString());\n return;\n }\n\n Properties prop = new Properties();\n try (BufferedReader reader = Files.newBufferedReader(p, StandardCharsets.UTF_8)) {\n prop.load(reader);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Error occurred while reading \" + p.toString(), e);\n }\n CONFIG_VALUES.putAll(prop);\n }", "private Config()\n {\n // Load from properties file:\n loadLocalConfig();\n // load the system property overrides:\n getExternalConfig();\n }", "public static ConfigSupplier reflective(ConfigDescription description) {\n return new ReflectiveConfigSupplier(description);\n }", "public Config getConfig();", "private <T> UnmarshalledObject<T> getConfig(NewPortalConfig config, String owner, String fileName, Class<T> type)\n throws Exception {\n log.debug(\"About to load config=\" + config + \" owner=\" + owner + \" fileName=\" + fileName);\n \n //\n String ownerType = config.getOwnerType();\n \n // Get XML\n String path = \"/\" + ownerType + \"/\" + owner + \"/\" + fileName + \".xml\";\n String xml = getDefaultConfig(config.getTemplateLocation(), path);\n \n //\n if (xml == null) {\n String templateName = config.getTemplateName() != null ? config.getTemplateName() : fileName;\n path = \"/\" + ownerType + \"/template/\" + templateName + \"/\" + fileName + \".xml\";\n xml = getDefaultConfig(config.getTemplateLocation(), path);\n if (xml != null) {\n xml = OWNER_PATTERN.matcher(xml).replaceAll(StringEscapeUtils.escapeXml(owner));\n }\n }\n \n //\n if (xml != null) {\n boolean ok = false;\n try {\n final UnmarshalledObject<T> o = fromXML(config.getOwnerType(), owner, xml, type);\n ok = true;\n return o;\n } catch (JiBXException e) {\n log.error(e.getMessage() + \" file: \" + path, e);\n throw e;\n } finally {\n if (!ok) {\n log.error(\"Could not load file: \" + path);\n }\n }\n }\n \n //\n return null;\n }", "GeneralConfiguration getGeneralConfiguration();", "private void parseConfigurations() {\n\t\ttry {\n\t\t\tJsonNode propertiesNode = rawConfig.getProperties();\n\t\t\t\n\t\t\tif(propertiesNode != null && propertiesNode.size() > 0) {\n\t\t\t\tBeanInfoWrapper wrapper = new BeanInfoWrapper(this.beanClazz);\n\t\t\t\tIterator<Map.Entry<String, JsonNode>> it = propertiesNode.fields();\n\n\t\t\t\twhile(it.hasNext()) {\n\t\t\t\t\tMap.Entry<String, JsonNode> entry = it.next();\n\t\t\t\t\tString propName = entry.getKey();\n\t\t\t\t\tPropertyDescriptor propDesc = wrapper.getPropertyDesc(propName);\n\t\t\t\t\tif(propDesc == null) {\n\t\t\t\t\t\tthrow new ConfigException(\"Failed to found the property name='\" + propName + \", in class '\" + beanClazz + \"'\");\n\t\t\t\t\t}\n\t\t\t\t\tProperty prop = new Property(this.beanClazz, propDesc);\n\t\t\t\t\tValueNode valueNode = getNodeValue(prop.getType(), entry.getValue(), prop.getContentParamType(), prop.getKeyParamType());\n\t\t\t\t\t\n\t\t\t\t\tproperties.put(prop, valueNode);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ValueUtils.notEmpty(rawConfig.getDestroyMethod())) {\n\t\t\t\tdestroyMethod = beanClazz.getMethod(rawConfig.getDestroyMethod());\n\t\t\t}\n\t\t\t\n\t\t\tif(ValueUtils.notEmpty(rawConfig.getInitMethod())) {\n\t\t\t\tinitMethod = beanClazz.getMethod( rawConfig.getInitMethod());\n\t\t\t}\n\t\t} catch (NoSuchMethodException e) {\n\t\t\tthrow new ConfigException(\"Failed to found the method in the class '\" + beanClazz.getClass() + \"'\", e);\n\t\t\t\n\t\t} catch (SecurityException e) {\n\t\t\tthrow new ConfigException(\"Failed to access the method in the class '\" + beanClazz.getClass() + \"'\", e);\n\t\t}\n\t\t\n\t}", "ClassLoaderConfigType createClassLoaderConfigType();", "private ConfigurationEntity getPartiallyLoadedConfigEntity() {\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\tString line;\n\t\ttry(BufferedReader br = new BufferedReader(new FileReader(new ClassPathResource(\"./static/config/config.json\").getFile()))) {\n\t\t\twhile((line = br.readLine())!=null) {\n\t\t\t\tbuilder.append(line);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn new Gson().fromJson(builder.toString(), ConfigurationEntity.class);\n\t}", "public void read() {\n\t\tconfigfic = new Properties();\n\t\tInputStream input = ConfigReader.class.getClassLoader().getResourceAsStream(\"source/config.properties\");\n\t\t// on peut remplacer ConfigReader.class par getClass()\n\t\ttry {\n\t\t\tconfigfic.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public interface IConfigurationProvider {\r\n String get(String path);\r\n}", "private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }", "private static Config loadConfig(String name) {\n\n\t\tString path;\n\t\tif (name == null) {\n\t\t\tpath = \"application.json\";\n\t\t} else {\n\t\t\tpath = \"src/\"+extensionsPackage+\"/\" + name + \"/config.json\";\n\t\t}\n\n\t\tGson gson = new Gson();\n\t\tConfig config = null;\n\n\t\ttry {\n\t\t\tconfig = gson.fromJson(new FileReader(path), Config.class);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn config;\n\t}", "public void load(boolean use_local_config) {\n \t lLogger = Logger.getLogger(\"SFSSOServiceConfig\");\n \t\t\n \t if (use_local_config) {\n \t\t lLogger.info(DEBUG_PREFIX + \"Running in local dev env, using configuration file = \" + config_file_name);\n \t\t loadPropertiesFromFile(config_file_name);\n \t } else {\n \t\t lLogger.info(DEBUG_PREFIX+\"Running in Bluemix, using VCAP config\");\n \t\t loadPropertiesFromBluemixVcap();\n \t }\n }", "C getConfiguration();", "public abstract Configuration configuration();", "public T getConfig() throws InvalidConfigFormatException {\n try {\n Reader settingsFile = new FileReader( getSettingsFileName() );\n T result = gsonObject.fromJson(settingsFile, settingsClass);\n settingsFile.close();\n\n return result;\n } catch (Exception e) {\n throw new InvalidConfigFormatException(\"Can't read config file: \" + e.getMessage() );\n }\n\n }", "protected abstract T decodeConfig(ModularConfigurationEntry<T> entry);", "public String readConfiguration(String path);", "private void LoadConfigFromClasspath() throws IOException \n {\n InputStream is = this.getClass().getClassLoader().getResourceAsStream(\"lrs.properties\");\n config.load(is);\n is.close();\n\t}", "private void loadRemoteConfig()\n {\n try\n {\n if ( Config.getInstance().getProperty( GlobalIds.CONFIG_REALM ) == null )\n {\n LOG.warn( \"Config realm not enabled\" );\n return;\n }\n // Retrieve parameters from the config node stored in target LDAP DIT:\n String realmName = config.getString( GlobalIds.CONFIG_REALM, \"DEFAULT\" );\n if ( realmName != null && realmName.length() > 0 )\n {\n LOG.info( \"static init: load config realm [{}]\", realmName );\n Properties props = getRemoteConfig( realmName );\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n config.setProperty( key, val );\n }\n }\n\n //init ldap util vals since config is stored on server\n boolean ldapfilterSizeFound = ( getProperty( GlobalIds.LDAP_FILTER_SIZE_PROP ) != null );\n LdapUtil.getInstance().setLdapfilterSizeFound(ldapfilterSizeFound);\n LdapUtil.getInstance().setLdapMetaChars( loadLdapEscapeChars() );\n LdapUtil.getInstance().setLdapReplVals( loadValidLdapVals() );\n try\n {\n String lenProp = getProperty( GlobalIds.LDAP_FILTER_SIZE_PROP );\n if ( ldapfilterSizeFound )\n {\n LdapUtil.getInstance().setLdapFilterSize(Integer.valueOf( lenProp ));\n }\n }\n catch ( java.lang.NumberFormatException nfe )\n {\n String error = \"loadRemoteConfig caught NumberFormatException=\" + nfe;\n LOG.warn( error );\n }\n remoteConfigLoaded = true;\n }\n else\n {\n LOG.info( \"static init: config realm not setup\" );\n }\n }\n catch ( SecurityException se )\n {\n String error = \"static init: Error loading from remote config: SecurityException=\"\n + se;\n LOG.error( error );\n throw new CfgRuntimeException( GlobalErrIds.FT_CONFIG_INITIALIZE_FAILED, error, se );\n }\n }", "public Object lookupConfigurationEntry(String key);", "public interface Config {\n\t/**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tstring value.\n */\n String getString(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tString value.\n */\n String getString(String key, String defaultValue);\n\n /**\n * Get value to corresponding to the key.\n *\n * @param key\n * @return\n * \tint value.\n */\n int getInt(String key);\n\n /**\n * Get value to corresponding to the key.\n * Specified value is returned if not contains key to config file.\n *\n * @param key\n * @param defaultValue\n * @return\n * \tint value.\n */\n int getInt(String key, int defaultValue);\n\n /**\n * Return with string in contents of config file.\n *\n * @return\n * \tContents of config file.\n */\n String getContents();\n\n /**\n * Return with Configuration object in contents of config file.\n *\n * @return\n * \tContents of Configuration object.\n */\n Configuration getConfiguration();\n\n List<Object> getList(String key);\n}", "public abstract CONFIG build();", "public abstract Optional<FileConfiguration> getConfiguration(String name);", "private static void processIncludedConfig() {\n String configName = \"config.\" + getRunMode() + \".properties\";\n\n //relative path cannot be recognized and not figure out the reason, so here use absolute path instead\n InputStream configStream = Configuration.class.getResourceAsStream(\"/\" + configName);\n if (configStream == null) {\n log.log(Level.WARNING, \"configuration resource {0} is missing\", configName);\n return;\n }\n\n try (InputStreamReader reader = new InputStreamReader(configStream, StandardCharsets.UTF_8)) {\n Properties props = new Properties();\n props.load(reader);\n CONFIG_VALUES.putAll(props);\n } catch (IOException e) {\n log.log(Level.WARNING, \"Unable to process configuration {0}\", configName);\n }\n\n }", "@Override\n public PlaygroundConfig getPlaygroundConfig(){\n outObject = \"getPlaygroundConfig\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n try {\n inObject = (PlaygroundConfig) in.readObject();\n } catch (IOException | ClassNotFoundException ex) {\n }\n return (PlaygroundConfig) inObject;\n }", "static Properties getConfig()\n {\n return(config);\n }", "public org.apache.axis2.context.xsd.ConfigurationContext getConfigurationContext(){\n return localConfigurationContext;\n }", "ConfigurationPackage getConfigurationPackage();", "Properties readConfigurationAsProperties(String moduleName) throws Exception;", "public interface ConfigReader {\n\n /**\n * Checks if the config contains the given Path\n *\n * @return boolean\n */\n boolean contains();\n\n /**\n * Returns the requested value as int\n *\n * @return int\n */\n int getInt();\n\n /**\n * Returns the requested value as boolean\n *\n * @return boolean\n */\n boolean getBoolean();\n\n /**\n * Returns the requested value as String\n *\n * @return String\n */\n String getString();\n\n /**\n * Returns a list as string\n *\n * @return String\n */\n String getStringList();\n\n /**\n * Returns the requested value as List\n *\n * @return List\n */\n List<?> getList();\n\n /**\n * Returns the requested value as Object\n *\n * @return Object\n */\n Object getObject();\n\n}", "protected abstract Class<C> getConfigClass();", "PackageConfiguration getPackageConfiguration();", "public abstract String getConfig();", "public Config() {\n this(System.getProperties());\n\n }", "private RemoteConfigElement getRemoteConfig()\r\n {\r\n if (this.config == null)\r\n {\r\n // retrieve the remote configuration\r\n this.config = (RemoteConfigElement)this.configService.getConfig(\"Remote\").getConfigElement(\"remote\");\r\n }\r\n \r\n return this.config;\r\n }", "public static Configuration get(String fileName) {\n String confLocation = PathUtils.getProjectPath();\n try {\n URL url;\n File file = new File(confLocation, fileName);\n if (confLocation == null || !file.exists()) {\n LOG.info(\"Looking for {} in classpath\", fileName);\n url = ApplicationProperties.class.getClassLoader().getResource(fileName);\n if (url == null) {\n LOG.info(\"Looking for /{} in classpath\", fileName);\n url = ApplicationProperties.class.getClassLoader().getResource(\"/\" + fileName);\n }\n } else {\n url = file.toURI().toURL();\n }\n LOG.info(\"Loading {} from {}\", fileName, url);\n Parameters params = new Parameters();\n FileBasedConfigurationBuilder<FileBasedConfiguration> builder =\n new FileBasedConfigurationBuilder<FileBasedConfiguration>(PropertiesConfiguration.class)\n .configure(params.properties()\n .setURL(url));\n FileBasedConfiguration configuration = builder.getConfiguration();\n logConfiguration(configuration);\n return configuration;\n } catch (Exception e) {\n throw new HiveHookException(\"Failed to load application properties\", e);\n }\n }", "public Object\tgetConfiguration();", "RootConfig getConfig();", "public void loadConfig() {\n\t}", "@Nullable\n RemoteConfiguration getSystemConfiguration();", "ImportConfig createImportConfig();", "public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}", "private DynamicConfiguration getPropertiesConfiguration() throws ConfigurationException,\n MalformedURLException {\n String userHome = System.getProperty(\"user.home\");\n Path properties = Paths.get(userHome, \"config-root\", \"address\", \"address.properties\");\n PolledConfigurationSource polledSource = new URLConfigurationSource(properties.toUri().toURL());\n return new DynamicConfiguration(polledSource, new FixedDelayPollingScheduler());\n }", "private final static void getProp() {\n try(InputStream fis = ConnectionBDD.class.getClassLoader().getResourceAsStream(\"conf.properties\")){\n \n props.load(fis);\n \n Class.forName(props.getProperty(\"jdbc.driver.class\"));\n \n url = props.getProperty(\"jdbc.url\");\n login = props.getProperty(\"jdbc.login\");\n password = props.getProperty(\"jdbc.password\");\n \n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n } catch (FileNotFoundException e1) {\n e1.printStackTrace();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n }", "public Object getConfig() {\n return config;\n }", "private static void loadConfig()\n\t{\n\t\ttry\n\t\t{\n\t\t\tfinal Properties props = ManagerServer.loadProperties(ManagerServer.class, \"/resources/conf.properties\");\n\t\t\tasteriskIP = props.getProperty(\"asteriskIP\");\n\t\t\tloginName = props.getProperty(\"userName\");\n\t\t\tloginPwd = props.getProperty(\"password\");\n\t\t\toutboundproxy = props.getProperty(\"outBoundProxy\");\n\t\t\tasteriskPort = Integer.parseInt(props.getProperty(\"asteriskPort\"));\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tLOG.error(\"IO Exception while reading the configuration file.\", ex);\n\t\t}\n\t}", "public String configurationInfo();", "private void read() {\n // Read the properties from the project\n EditableProperties sharedProps = antProjectHelper.getProperties(AntProjectHelper.PROJECT_PROPERTIES_PATH);\n EditableProperties privateProps = antProjectHelper.getProperties(AntProjectHelper.PRIVATE_PROPERTIES_PATH);\n final ProjectConfiguration cfgs[] = configHelper.getConfigurations().toArray(new ProjectConfiguration[0]);\n final ProjectConfiguration confs[] = new ProjectConfiguration[cfgs.length];\n System.arraycopy(cfgs, 0, confs, 0, cfgs.length);\n setConfigurations(confs);\n // Initialize the property map with objects\n properties.put(J2ME_PROJECT_NAME, new PropertyInfo(new PropertyDescriptor(J2ME_PROJECT_NAME, true, DefaultPropertyParsers.STRING_PARSER), ProjectUtils.getInformation(project).getDisplayName()));\n for (PropertyDescriptor pd:PROPERTY_DESCRIPTORS) {\n EditableProperties ep = pd.isShared() ? sharedProps : privateProps;\n String raw = ep.getProperty( pd.getName());\n properties.put( pd.getName(), new PropertyInfo( pd, raw == null ? pd.getDefaultValue() : raw));\n for (int j=0; j<devConfigs.length; j++) {\n final PropertyDescriptor clone = pd.clone(CONFIG_PREFIX + devConfigs[j].getDisplayName() + '.' + pd.getName());\n raw = ep.getProperty(clone.getName());\n if (raw != null) {\n properties.put(clone.getName(), new PropertyInfo(clone, raw));\n }\n }\n }\n }", "public static void readConfiguration() throws IOException {\n synchronized (Configuration.class) {\n Properties props = new Properties();\n InputStream is = new FileInputStream(Constants.ROOT_PATH + \"/opencraft.properties\");\n try {\n props.load(is);\n configuration = new Configuration(props);\n } finally {\n is.close();\n }\n }\n }", "ParameterConfiguration getParameterConfiguration(String name);", "public interface Configuration {\n\n}", "private Configuration getConfiguration() {\n return getPackageData().getConfiguration();\n }", "public PerWorldConfig getConfig(World world){\n \t\treturn config.get(world);\n \t}", "public void initialConfig() {\n }", "public abstract void loaded() throws ConfigurationException;", "public static void initConfig()\r\n {\r\n try\r\n {\r\n ip = ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_IP\");\r\n localIP = ConfigProperties.getKey(ConfigList.BASIC, \"Local_IP\");\r\n port = Integer.parseInt(ConfigProperties.getKey(ConfigList.BASIC, \"AgentGateway_PORT\"));\r\n }\r\n catch (NumberFormatException e)\r\n {\r\n log.error(\"read properties failed --\", e);\r\n }\r\n }", "public C getConfig()\n {\n return config;\n }", "@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }", "public String getConfig();", "Configuration getConfigByKey(String configKey);", "public ReadConfigProperty() {\n\n\t\ttry {\n\t\t\tString filename = \"com/unitedcloud/resources/config.properties\";\n\t\t\tinput = ReadConfigProperty.class.getClassLoader().getResourceAsStream(filename);\n\t\t\tif (input == null) {\n\t\t\t\tSystem.out.println(\"Sorry, unable to find \" + filename);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tprop = new Properties();\n\t\t\tprop.load(input);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Object readResolve() {\n if (config == null) {\n config = new Configuration();\n\n migrateScriptFileList(genericScriptFileList, ScriptType.GENERIC);\n migrateScriptFileList(groovyScriptFileList, ScriptType.GROOVY);\n migrateGroovyScriptContentList();\n migrateBuildSteps();\n\n if (markBuildUnstable != null) {\n config.setMarkBuildUnstable(markBuildUnstable);\n }\n }\n // needed for migration (JENKINS-53691)\n // TODO Remove, if there are no 0.18.x installations left\n if (executeOn != null) {\n applyExecuteOn(getGenericScriptFiles());\n applyExecuteOn(getGroovyScriptFiles());\n applyExecuteOn(getGroovyScripts());\n applyExecuteOn(getBuildSteps());\n }\n return this;\n }", "Map<String, Object> readConfig(Request request, String id);", "private static ConfigurationObject getConfig() throws Exception {\n\t\tXMLFilePersistence persistence = new XMLFilePersistence();\n\n\t\t// Get configuration\n\t\tConfigurationObject obj = persistence.loadFile(\n\t\t\t\t\"com.topcoder.management.reviewfeedback.stress\", new File(\n\t\t\t\t\t\t\"test_files/stress/config.xml\"));\n\n\t\treturn obj;\n\t}", "public static Config getConfig(){\n return _Config;\n }", "private Config() {\n }", "private static synchronized void init() {\n if (CONFIG_VALUES != null) {\n return;\n }\n\n CONFIG_VALUES = new Properties();\n processLocalConfig();\n processIncludedConfig();\n }", "public static Config getConfig() {\r\n\t\treturn cfg;\r\n\t}", "protected T getConfigurationByCommandline() {\n\t\t\n\t\tT result = null;\n\t\t\n\t\tString[] args = this.commandLineArguments; \n\t\t\n\t\tif (args == null) {\n\t\t\tthrow new NullPointerException(\"Command line arguments have not been set in factory!\");\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tresult = (T) CliFactory.parseArguments(\n\t\t\t\tthis.configurationInterface, args\n\t\t\t);\n\t\t} catch (ArgumentValidationException e) {\n\t\t\tthrow new ConfigurationException(e.getMessage());\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "String readConfig(String parameter, SignedObject accessToken) throws RemoteException, rmi.AuthenticationException;", "public static AppTransformConfig readAppTransformConfig() {\n\t\tif(triedLoadingTransformConfig){\n\t\t\treturn config;\n\t\t}\n\t\ttriedLoadingTransformConfig = true;\n\t\ttry {\n\t\t\tObjectMapper mapper = new ObjectMapper();\n\t\t\tInputStream in = new FileInputStream(\"transform.json\");\n\t\t\tconfig = mapper.readValue(in, AppTransformConfig.class);\n\t\t\treturn config;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tlogger.error(\"Error in reading transform.json\", e);\n\t\t} catch (JsonParseException e) {\n\t\t\tlogger.error(\"Error in parsing transform.json\", e);\n\t\t} catch (JsonMappingException e) {\n\t\t\tlogger.error(\"Error in parsing transform.json\", e);\n\t\t} catch (IOException e) {\n\t\t\tlogger.error(\"Error in reading transform.json\", e);\n\t\t}\n\t\treturn null;\n\n\t}", "public MapConfiguration getConfiguration() throws IOException,\n\t\t\tInstantiationException, IllegalAccessException {\n\n\t\tMapContext context = (MapContext) modelRepository\n\t\t\t\t.loadObject(new ResourceKey(\"Form@12\"));\n\n\t\tif (context != null) {\n\t\t\tMapConfiguration configuration = mapFactory\n\t\t\t\t\t.getConfiguration(context);\n\n\t\t\t// Retrieve context instance from configuration.\n\t\t\tcontext = configuration.getContext();\n\n\t\t\t// Reset layers\n\t\t\tfor (FeatureMapLayer layer : context.getFeatureLayers()) {\n\t\t\t\tlayer.setFilter(null);\n\t\t\t\tlayer.setHidden(true);\n\t\t\t\tlayer.setSelection(Collections.EMPTY_LIST);\n\t\t\t}\n\n\t\t\t// Add edit layer to context\n\t\t\tmapFactory.createGeometryLayer(context, GEOMETRY_LAYER_NAME, null,\n\t\t\t\t\tPoint.class, null, true, \"single\", null, null);\n\n\t\t\t// Start configuratie zoomt naar Provincie OVL\n\t\t\tFeatureMapLayer provincieLayer = (FeatureMapLayer) context\n\t\t\t\t\t.getLayer(\"provincie\");\n\t\t\tprovincieLayer.setHidden(false);\n\t\t\tProvincie provincie = (Provincie) modelRepository\n\t\t\t\t\t.getUniqueResult(modelRepository.searchObjects(\n\t\t\t\t\t\t\tnew DefaultQuery(\"Provincie\"), true, true));\n\t\t\tEnvelope envelope = GeometryUtils.getEnvelope(provincie.getGeom());\n\t\t\tcontext.setBoundingBox(envelope);\n\t\t\tsetBaseLayerName(\"tms\");\n\t\t\treturn configuration;\n\t\t}\n\n\t\treturn null;\n\t}", "public interface Config {\n\n /**\n * Converts the config into a Map\n *\n * @param deep If true, instead of putting Maps for subconfigs,\n * use the full path using the separator character to split\n * @return This config as a Map\n */\n Map<String, Object> getValues(boolean deep);\n\n /**\n * @param path The path to check\n * @return If the config contains an item at path\n */\n boolean contains(String path);\n\n /**\n * Load the values from the map into this config.\n *\n * @param values The map to load in.\n */\n default void setAll(Map<String, Object> values) {\n for (String path : values.keySet()) {\n set(path, values.get(path));\n }\n }\n\n /**\n * Sets the value at path to value\n *\n * @param path The path to put the value\n * @param value The value\n * @return The modified config object, to allow for chain calls\n */\n Config set(String path, Object value);\n\n default void setAll(Config values) {\n for (String path : values.getKeys(true)) {\n set(path, values.get(path));\n }\n }\n\n /**\n * @param deep Should full paths be returned for keys in subconfigs, separated by the separator character?\n * @return The keys that have values in this config\n */\n Set<String> getKeys(boolean deep);\n\n /**\n * Finds and retrieves the object at the given path. If the path is empty, returns this object.\n *\n * @param path The path of the object\n * @return The object at the given path, or null if not found\n */\n default Object get(String path) {\n return get(path, null);\n }\n\n /**\n * Gets the raw value this config contains at path, returning the placeholder def is nothing is found.\n *\n * @param path The path to get the value at\n * @param def The placeholder if no value is found at path, e.g. {@code null}\n * @return The raw object contained at path, or def if nothing is there.\n */\n Object get(String path, Object def);\n\n /**\n * @return The separator character.\n */\n char getSeparator();\n\n /**\n *\n * @return toString() of the object at the path, or null if there is none\n */\n default String getString(String path) {\n return getString(path, null);\n }\n\n /**\n *\n * @return toString() of the object at the path, or def if there is none\n */\n default String getString(String path, String def) {\n Object obj = get(path);\n\n if (obj != null) return obj.toString();\n else return def;\n }\n\n /**\n *\n * @return If there is a String stored at the given path\n */\n default boolean isString(String path) {\n return get(path) instanceof String;\n }\n\n /**\n *\n * @return The int value of the number stored at the path, or 0 if there is none\n */\n default int getInt(String path) {\n return getInt(path, 0);\n }\n\n /**\n * @return The int value of the number stored at the path, or def if there is none\n */\n default int getInt(String path, int def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).intValue();\n else return def;\n }\n\n /**\n *\n * @return If the object at the path is an instance of Integer\n */\n default boolean isInt(String path) {\n return get(path) instanceof Integer;\n }\n\n /**\n *\n * @return The short value of the number stored at the path, or 0 if there is none\n */\n default short getShort(String path) {\n return getShort(path, 0);\n }\n\n /**\n * @return The short value of the number stored at the path, or def if there is none\n */\n default short getShort(String path, int def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).shortValue();\n else return (short) def;\n }\n\n /**\n *\n * @return If the object at the path is an instance of Short\n */\n default boolean isShort(String path) {\n return get(path) instanceof Short;\n }\n\n /**\n *\n * @return True if the boolean true is stored at path, otherwise false\n */\n default boolean getBoolean(String path) {\n return getBoolean(path, false);\n }\n\n /**\n * @return The boolean value stored at path, or def is there is none\n */\n default boolean getBoolean(String path, boolean def) {\n Object obj = get(path);\n\n if (obj instanceof Boolean) return (Boolean) obj;\n else return def;\n }\n\n /**\n * @return If there is a boolean stored at path\n */\n default boolean isBoolean(String path) {\n return get(path) instanceof Boolean;\n }\n\n default boolean isNumber(String path) {\n return get(path) instanceof Number;\n }\n\n default double getDouble(String path) {\n return getDouble(path, 0.0d);\n }\n\n default double getDouble(String path, double def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).doubleValue();\n else return def;\n }\n\n default boolean isDouble(String path) {\n return get(path) instanceof Double;\n }\n\n default BigDecimal getBigDecimal(String path) {\n return getBigDecimal(path, BigDecimal.ZERO);\n }\n\n default BigDecimal getBigDecimal(String path, BigDecimal def) {\n Object obj = get(path);\n\n if (obj instanceof Number) {\n if (obj instanceof BigDecimal) {\n return (BigDecimal) obj;\n } else if (obj instanceof BigInteger) {\n return new BigDecimal((BigInteger) obj);\n } else {\n return BigDecimal.valueOf(((Number) obj).doubleValue());\n }\n } else return def;\n }\n\n default boolean isBigDecimal(String path) {\n return get(path) instanceof BigDecimal;\n }\n\n default long getLong(String path) {\n return getLong(path, 0L);\n }\n\n default long getLong(String path, long def) {\n Object obj = get(path);\n\n if (obj instanceof Number) return ((Number) obj).longValue();\n else return def;\n }\n\n default boolean isLong(String path) {\n return get(path) instanceof Long;\n }\n\n default byte[] getByteArray(String path) {\n return getByteArray(path, new byte[0]);\n }\n\n default byte[] getByteArray(String path, byte[] def) {\n Object obj = get(path);\n\n if (obj instanceof byte[]) return (byte[]) obj;\n else return def;\n }\n\n default boolean isByteArray(String path) {\n return get(path) instanceof byte[];\n }\n\n default List<String> getStringList(String path) {\n return getList(path, String.class);\n }\n\n default <T> List<T> getList(String path, Class<T> clazz) {\n return getList(path, new ArrayList<>(), clazz);\n }\n\n @SuppressWarnings(\"unchecked\")\n default <T> List<T> getList(String path, List<T> def, Class<T> clazz) {\n Object obj = get(path);\n\n if (!(obj instanceof Collection<?>)) return def;\n\n Collection<?> input = (Collection<?>) obj;\n List<T> result = new ArrayList<>();\n\n for (Object o : input) {\n if (!clazz.isInstance(o)) continue;\n\n result.add((T) o);\n }\n\n return result;\n }\n\n default List<Config> getConfigList(String path) {\n return getList(path, Config.class);\n }\n\n default boolean isList(String path) {\n return get(path) instanceof List<?>;\n }\n\n /**\n * @param path The path to check for a list\n * @param type The type that the list should contain\n * @return If there is a list at this path and it contains an object with the type {@code type}\n */\n default boolean isList(String path, Class<?> type) {\n if (!isList(path)) return false;\n\n List<?> list = getList(path, null, type);\n\n return list != null && !list.isEmpty();\n }\n\n default Config getConfigOrNull(String path) {\n Object obj = get(path);\n\n if (!(obj instanceof Config)) return null;\n else return (Config) obj;\n }\n\n Config getConfigOrEmpty(String path);\n\n default boolean isConfig(String path) {\n return get(path) instanceof Config;\n }\n\n /**\n * Modifies the fields of the object passed in to the values specified in this config.\n *\n * @param object The object to modify the fields of.\n * @param <T> The type of the object\n * @return The (now modified) object\n */\n default <T> T getAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers())) continue;\n if (Modifier.isTransient(field.getModifiers())) continue;\n\n if (!contains(field.getName())) continue;\n\n try {\n if (field.getType().equals(double.class)) {\n if (!isNumber(field.getName())) continue;\n field.setDouble(object, getDouble(field.getName()));\n } else if (field.getType().equals(float.class)) {\n if (!isNumber(field.getName())) continue;\n field.setFloat(object, (float) getDouble(field.getName()));\n } else if (field.getType().equals(int.class)) {\n if (!isNumber(field.getName())) continue;\n field.setInt(object, getInt(field.getName()));\n } else if (field.getType().equals(boolean.class)) {\n if (!isBoolean(field.getName())) continue;\n field.setBoolean(object, getBoolean(field.getName()));\n } else if (field.getType().equals(long.class)) {\n if (!isNumber(field.getName())) continue;\n field.setLong(object, getLong(field.getName()));\n } else if (field.getType().equals(short.class)) {\n if (!isNumber(field.getName())) continue;\n field.setShort(object, (short) getInt(field.getName()));\n } else if (field.getType().equals(byte.class)) {\n if (!isNumber(field.getName())) continue;\n field.setByte(object, (byte) getInt(field.getName()));\n } else {\n Object newValue = getType(field.getName(), field.getType());\n if (newValue == null) continue;\n\n field.set(object, newValue);\n }\n\n } catch (IllegalAccessException e) {\n //This should not happen hopefully.\n e.printStackTrace();\n }\n }\n\n return object;\n }\n\n /**\n * Loads the fields of the object into this config.\n *\n * @param object The object itself\n * @param <T> The type of object\n * @return The object, again\n */\n default <T> T setAllFields(T object) {\n Field[] fields = object.getClass().getDeclaredFields();\n\n for (Field field : fields) {\n field.setAccessible(true);\n\n if (Modifier.isStatic(field.getModifiers()) || Modifier.isTransient(field.getModifiers())) continue;\n\n try {\n set(field.getName(), field.get(object));\n } catch (IllegalAccessException e) {\n //hopefully we will be fine\n e.printStackTrace();\n }\n }\n\n return object;\n }\n\n default <T> T getType(String path, Class<T> type) {\n return getType(path, null, type);\n }\n\n @SuppressWarnings(\"unchecked\")\n default <T> T getType(String path, T def, Class<T> type) {\n Object obj = get(path);\n\n if (!type.isInstance(obj)) return def;\n return (T) obj;\n }\n}", "public Properties loadConfig(){\n\t\tprintln(\"Begin loadConfig \");\n\t\tProperties prop = null;\n\t\t prop = new Properties();\n\t\ttry {\n\t\t\t\n\t\t\tprop.load(new FileInputStream(APIConstant.configFullPath));\n\n\t } catch (Exception ex) {\n\t ex.printStackTrace();\n\t println(\"Exception \"+ex.toString());\n\t \n\t }\n\t\tprintln(\"End loadConfig \");\n\t\treturn prop;\n\t\t\n\t}", "public Configuration parse() {\n final CommandLineParser parser = new BasicParser();\n final CommandLine cmd;\n\n try {\n cmd = parser.parse(options, args);\n\n if (cmd.hasOption(\"h\"))\n return help();\n\n if (cmd.hasOption(\"f\")) {\n return configurationFromFile(cmd.getOptionValue(\"f\"));\n } else if (cmd.hasOption(\"u\")) {\n return configurationFromUrl(cmd.getOptionValue(\"u\"));\n } else if (0 < args.length) {\n logback.warn(\"Unknown parameter: \" + args[0]);\n return help();\n } else {\n return configurationFromResource();\n }\n\n } catch (final ParseException e) {\n logback.error(\"Failed to parse command line properties\", e);\n return help();\n }\n }", "public static KapConfig getInstanceFromEnv() {\n return wrap(KylinConfig.getInstanceFromEnv());\n }", "@Test\n public void testDetectConfigurationSimpleClassName() throws Exception {\n\n Config testConfig = ConfigFactory.parseResourcesAnySyntax(\"simpleClassName.conf\");\n\n StreamsConfigurator.setConfig(testConfig);\n\n ComponentConfigurator<ComponentConfiguration> configurator = new ComponentConfigurator<>(ComponentConfiguration.class);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration();\n\n Assert.assertThat(configuredPojo, is(notNullValue()));\n\n Assert.assertThat(configuredPojo.getInClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getInClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getInClasses().get(0), equalTo(\"java.lang.Object\"));\n\n Assert.assertThat(configuredPojo.getOutClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getOutClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getOutClasses().get(0), equalTo(\"java.lang.Object\"));\n\n }", "public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }", "public interface ModuleConfigurationProvider {\n ModuleConfiguration getConfiguration(Module module);\n}", "public LocalServerConfig getConfig() {\n return serverConfig;\n }", "public interface ConfigurationManager {\n\n String loadRunAsUser();\n\n void storeRunAsUser(String username);\n\n List<String> loadEnabledProjects();\n\n void storeEnabledProjects(List<String> projectKeys);\n\n Map<String, String> loadBranchFilters();\n \n void storeBranchFilters(Map<String, String> branchFilters);\n \n /**\n * @since v1.2\n */\n Collection<String> loadCrucibleUserNames();\n\n /**\n * @since v1.2\n */\n void storeCrucibleUserNames(Collection<String> usernames);\n\n /**\n * @since v1.3\n */\n Collection<String> loadCrucibleGroups();\n\n /**\n * @since v1.3\n */\n void storeCrucibleGroups(Collection<String> groupnames);\n\n CreateMode loadCreateMode();\n\n void storeCreateMode(CreateMode mode);\n\n /**\n * @since v1.4.1\n */\n boolean loadIterative();\n\n /**\n * @since v1.4.1\n */\n void storeIterative(boolean iterative);\n}", "protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }", "protected Configuration getConfiguration(){\n return configuration;\n }", "public interface ConfigService {\n\n ConfigDto getImplementationConfig();\n\n}", "private Configuration(String location) {\n this.location = location;\n }", "private static final Map<String,String> collectAttrs(final JavaConfig jc)\n {\n final Map<String,String> values = new HashMap<String,String>();\n values.put( \"JavaHome\", jc.getJavaHome() );\n values.put( \"DebugEnabled\", jc.getDebugEnabled() );\n values.put( \"DebugOptions\", jc.getDebugOptions() );\n values.put( \"RmicOptions\", jc.getRmicOptions() );\n values.put( \"JavacOptions\", jc.getJavacOptions() );\n values.put( \"ClasspathPrefix\", jc.getClasspathPrefix() );\n values.put( \"ClasspathSuffix\", jc.getClasspathSuffix() );\n values.put( \"ServerClasspath\", jc.getServerClasspath() );\n values.put( \"SystemClasspath\", jc.getSystemClasspath() );\n values.put( \"NativeLibraryPathPrefix\", jc.getNativeLibraryPathPrefix() );\n values.put( \"NativeLibraryPathSuffix\", jc.getNativeLibraryPathSuffix() );\n values.put( \"BytecodePreprocessors\", jc.getBytecodePreprocessors() );\n values.put( \"EnvClasspathIgnored\", jc.getEnvClasspathIgnored() );\n \n return values;\n }", "void setup(Map<String, Object> cfg);", "public ConfigurationSet getConfiguration(String root) {\r\n\t\treturn configuration.getChild(root);\r\n\t}", "IElementDef parse(ConfigSource configSource);" ]
[ "0.608036", "0.59120244", "0.5878753", "0.58757883", "0.58757883", "0.58757883", "0.58757883", "0.5859264", "0.58590156", "0.5743134", "0.5599241", "0.5587811", "0.5519481", "0.55118215", "0.55100447", "0.54870945", "0.5452056", "0.5391021", "0.5375524", "0.53338957", "0.5326193", "0.5308362", "0.5304168", "0.52998984", "0.52664787", "0.5266376", "0.52620703", "0.5215395", "0.52040476", "0.5187614", "0.5182649", "0.51799756", "0.5164625", "0.516183", "0.5154274", "0.513216", "0.5127895", "0.5109126", "0.51087725", "0.50907284", "0.5080849", "0.50751257", "0.5066429", "0.5065784", "0.5065284", "0.50624174", "0.50362647", "0.50323755", "0.50179446", "0.50171804", "0.5015018", "0.49993384", "0.49909705", "0.4977408", "0.49758023", "0.49739152", "0.49713683", "0.49667463", "0.4960736", "0.49567375", "0.49540636", "0.49530813", "0.4952256", "0.49451503", "0.49400628", "0.4934265", "0.4933236", "0.49269798", "0.4911251", "0.49103713", "0.48990545", "0.48923004", "0.48894867", "0.48730516", "0.48719987", "0.48692384", "0.4857998", "0.4857509", "0.48536083", "0.4852427", "0.4847215", "0.4846135", "0.4840429", "0.48395085", "0.48358577", "0.48324436", "0.48254818", "0.48185393", "0.4813173", "0.47997132", "0.47986597", "0.47852147", "0.47801733", "0.47793558", "0.47764271", "0.47758684", "0.47734064", "0.47710937", "0.47703913", "0.47681415" ]
0.6125901
0
Validates and parses payments from a file and sends them to a payment receiver.
boolean processFile(Path file, PaymentReceiver paymentReceiver) throws IOException, ParseException;
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static List<Models.Payment> parseFile(Models.Buyer buyerInfo) {\r\n\t\t\r\n BufferedReader br = null;\r\n String line = \"\";\r\n\t\tString[] columns;\r\n\t\tList<Models.Payment> payments = null;\t\t\r\n\r\n\t\tBoolean headerRow = true;\r\n\t\t\r\n \t//Get all possible files in the configured directory that match our file mask and iterate, parse and send json payload for each\r\n\t\theaderOrdinals = new ArrayList<Map.Entry<String, Integer>>();\r\n \ttry {\r\n \t\theaderRow = true;\r\n \t\tpayments = new ArrayList<Models.Payment>();\r\n \tString[] columnHeaders = null;\r\n \t\r\n \tFile file = findFileByMask(buyerInfo)[0];\r\n br = new BufferedReader(new FileReader(file.getPath()));\r\n csvParser parser = new csvParser();\r\n while ((line = br.readLine()) != null) {\r\n //split each line utilizing the RegEx pattern which will perfectly split CSV's and ignore commas within quotes or tics for a string field\r\n \tcolumns = parser.parse(line);\r\n \t\r\n //for the first row, grab the column header names and match against our container object, each iteration thereafter, just stuff values in our object[] which will become a json payload\r\n if (!headerRow) { \r\n \tModels.Payment invoice = new Models.Payment();\r\n \t\r\n \ttry {\r\n \t\t//match the column header key string in map to the property in our container object. Then use ordinal in map to snatch correct value from the String[]\r\n \t\tfor (Map.Entry<String, Integer> colMap:headerOrdinals) {\r\n \t\t\tMethod methodProperty = invoice.getClass().getMethod(String.format(\"set%s\", colMap.getKey()), new Class[] {String.class});\r\n \t\t\t\r\n \t\t\t//dynamically set the matching property in our payment container object by matching the previously fetched column headers\r\n \t\t\tif (methodProperty != null) methodProperty.invoke(invoice, columns[colMap.getValue()]);\r\n \t\t}\r\n \t\t\t//Our payment object should now be populated from the parsed line, now add to the collection that we shall POST to API as JSON.\r\n \t\t\tpayments.add(invoice); \t\r\n \t} catch (Exception ex) {\r\n \t\t//log any exception mapping fields\r\n \t\t\t\t//log any problems locally as well as remotely. Need to make an object to hold all needed fields to POST to our API for logging all\r\n \t\t\t\t// of this activity out in the field\r\n \t\t\t\t//This here will be a log of a failure to stuff the column value into the property data type, which shouldn't happen at all really. \t\t\r\n \t}\t \t\r\n }\r\n else {\r\n \t//we will take the 1st row in the csv file and do a sanity check of header column names against our container object utilizing reflection. This will make for\r\n \t// only clean and matching data to be sent to our API via json. \r\n \tcolumnHeaders = columns;\r\n \tif (!matchHeadersAgainstModel(columnHeaders, file.getName())) {\r\n \t\t\t\t\tlogger.log(Level.WARNING, String.format(\"No columns matched. It would appear there is no column header row in file %s.\", file.getName()), Thread.currentThread().getStackTrace());\t \r\n \t\t\t\t\t//send this message to us via api\r\n \t\t\t\t\t//we could proceed with a generic JObject push here if we really wanted to still see the data and just dump it to us.\r\n \t}\r\n \theaderRow = false;\r\n } \r\n \t}\r\n \t\t\t \t\t \t\r\n\t } catch (FileNotFoundException e) {\r\n\t\t\t\tlogger.log(Level.WARNING, String.format(\"No file found to process : %s\", e.getMessage()), Thread.currentThread().getStackTrace());\r\n\t e.printStackTrace();\r\n\t //Log this locally in custom event log and send\r\n\t } catch (IOException e) {\r\n\t\t\t\tlogger.log(Level.WARNING, String.format(\"IOException when attempting to access payment file for processing : %s\", e.getMessage()), Thread.currentThread().getStackTrace());\r\n\t e.printStackTrace();\r\n\t //log both locally and send log to us via API call\r\n\t } finally {\r\n\t if (br != null) {\r\n\t try { \r\n\t br.close();\r\n\t } catch (IOException e) {\r\n\t e.printStackTrace();\r\n\t //again, log locally and to us via API any problems here\r\n\t }\r\n\t }\r\n\t }\r\n\t\r\n\t String json = new Gson().toJson(payments);\r\n\t //the above payload is the payload to send the payment batch to our API\t\r\n\t\t\tlogger.log(Level.INFO, \"Json Payload to send: \" + json, new Object[] {});\r\n\t\t\t\r\n\t\t\t//POST our beautifully constructed invoice[] as JSON to our API\r\n\t try {\r\n\t \t//We want the payment batch to be processed as a batch for good batch logging, so each file's payload should be posted to the API separately as json for adequate batch processing\r\n\t \t\r\n\t \t//HttpClient httpClient = HttpClientBuilder.create().build();\r\n\t \t//HttpPost post = new HttpPost(buyerInfo.getApiLogUrl()); \t\r\n\t \t// post.invoke(new Gson().toJson(payments));\r\n\t } catch (HTTPException ex) {\r\n\t \t\r\n\t }\r\n \r\n \r\n\t return payments;\r\n\t}", "public void newFile(String fileName) throws IOException, ParseException {\n Payment payments = new Payment();\n BufferedReader file = new BufferedReader(new FileReader(fileName));\n List<String> paymentRows = shouldReadFile(file);\n if(fileName.contains(FILE_FROM_INBET)){\n payments = setPaymentFromInbetalningstjansten(paymentRows);\n }\n else if(fileName.contains(FILE_FROM_BETTJANST)){\n payments = setPaymentFromBetalningsservice(paymentRows);\n }\n runPayment(payments);\n }", "void runPayment(Payment payments) {\n paymentReceiver.startPaymentBundle(payments.getAccountNumber(), payments.getPaymentDate(), payments.getCurrency());\n for (PaymentLine paymentLine: payments.getPaymentLines()) {\n paymentReceiver.payment(paymentLine.getAmount(), paymentLine.getReference());\n }\n paymentReceiver.endPaymentBundle();\n }", "List<String> shouldReadFile(BufferedReader file) throws IOException {\n List<String> payments = new ArrayList<>();\n while (true){\n String paymentLine = file.readLine();\n if(paymentLine == null){\n break;\n }\n payments.add(paymentLine);\n }\n file.close();\n return payments;\n }", "public PaymentFile() {\n\t\t\n\t\tString data = \"\";\n String str;\n \tint i = 0 ;\n \tpaymentArr = new Payment[6];\n \t try {\n FileReader fr = new FileReader(jsonFile);\n BufferedReader br = new BufferedReader(fr);\n while ((str=br.readLine())!=null) {\n data = data + str + \"\\n\";\n }\n Data = new JSONObject(data);\n \n items = Data.getJSONArray(\"payments\");\n paymentNum = items.length();\n for (i = 0; i < items.length(); i++) {\n JSONObject obj = items.getJSONObject(i);\n Payment payment = new Payment(obj.getString(\"name\"),obj.getString(\"availability\"));\n item[i] = obj.getString(\"name\");\n availability[i] = obj.getString(\"availability\");\n paymentArr[i] = payment;\n }\n\n for(; i<5; i++) {\n \t Payment paymentObj = new Payment ();\n paymentArr[i] = paymentObj;\n }\n br.close();\n fr.close();\n } catch (FileNotFoundException fe) {\n fe.printStackTrace();\n } catch (IOException ie) {\n ie.printStackTrace();\n }\n\t}", "@RabbitListener(queues = \"fulfillment.payment\")\n public void processPaymentMessage(Object message) {\n\t\tLOG.info(\"Message is of type: \" + message.getClass().getName());\n\t\tif(!(message instanceof byte[])) message = ((Message) message).getBody();\n\t\tString content = new String((byte[])message, StandardCharsets.UTF_8);\n \tLOG.info(\"Received on payment: \" + content);\n\t\ttry {\n\t HashMap payment = mapper.readValue(content, HashMap.class);\n\t\t\tLOG.info(\"Payment [\" +payment.toString()+ \"] received.\");\n\t String orderID = payment.get(\"orderUUID\").toString();\n\t boolean paymentReceived = ((Boolean) payment.get(\"paymentReceived\")).booleanValue();\n\t Orderr orderr = this.orderRepository.findOne(UUID.fromString(orderID));\n\t if(orderr != null){\n\t\t orderr.setPaymentReceived(paymentReceived);\n\t\t this.orderRepository.save(orderr);\n\t\t if(paymentReceived){\n\t\t \tShipment shipment = this.shipmentRepository.findByOrderr(orderr);\n\t\t \tshipment.setStatus(Shipment.SHIPPABLE);\n\t\t \tthis.shipmentRepository.save(shipment);\n\t\t \tLOG.info(\"Shipment updated to status:\" + shipment.getStatus());\n\t\t }\n\t }\n\t else{\n\t \tLOG.info(\"Could not find order with ID: \" + orderID);\n\t }\n\t\t} \n\t\tcatch (Exception e) {\n\t\t\tLOG.error(\"Error: \" + e.getMessage());\n\t\t}\n\t\tlatch.countDown();\n }", "@Override\n\tpublic void run() {\n\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(file)));\n\t\t\tString line = null;\n\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] record = line.trim().split(\"@\");\n\t\t\t\tif (record.length != 2)\n\t\t\t\t\tcontinue;\n\t\t\t\tparse(record[0], record[1]);\n\n\t\t\t}\n\t\t\t// close buffer reader\n\t\t\tbr.close();\n\t\t\t// Debug catch An exception\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t}\n\t}", "public void parse(String fileName, InvoiceHandler invoiceHandler) throws InvoiceFileParseException, InvoiceFileWriterException {\n\t\tPath file = FileSystems.getDefault().getPath(fileName);\n\t\ttry (BufferedReader reader = Files.newBufferedReader(file, charset)) {\n\t\t\tString line = null;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tString[] spLine = line.split(\";\");\n\t\t\t\tif (spLine.length != 3) {\n\t\t\t\t\tthrow new InvoiceFileParseException(\"Invalid number of element for file line [\" + line + \"], expected 3 but found \" + spLine.length);\n\t\t\t\t}\n\n\t\t\t\t// Invoice model is built and invoice handler is invoked\n\t\t\t\tString invoiceId = spLine[0].trim();\n\t\t\t\tCalendar invoiceDate = parseDate(spLine[1].trim());\n\t\t\t\tPaymentMode paymentMode = parsePaymentMode(spLine[2].trim());\n\t\t\t\tInvoiceModel model = new InvoiceModel(invoiceId, invoiceDate, paymentMode);\n\t\t\t\tinvoiceHandler.handle(model);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tthrow new InvoiceFileParseException(\"An error occurred during parsing file [\" + fileName + \"]\", e);\n\t\t}\n\n\t\t// Communicate to invoice handler that file parsing is finished\n\t\tinvoiceHandler.close();\n\t}", "CarPaymentMethod processPayPal();", "private void verifyPaymentOnServer(final String paymentId,\n\t\t\tfinal String payment_client) {\n\t\t// Showing progress dialog before making request\n\t\tpDialog.setMessage(\"Verifying payment...\");\n\t\tshowpDialog();\n\n\t\tStringRequest verifyReq = new StringRequest(Method.POST,\n\t\t\t\tConfig.URL_VERIFY_PAYMENT, new Response.Listener<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onResponse(String response) {\n\t\t\t\t\t\tLog.d(TAG, \"verify payment: \" + response.toString());\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tJSONObject res = new JSONObject(response);\n\t\t\t\t\t\t\tboolean error = res.getBoolean(\"error\");\n\t\t\t\t\t\t\tString message = res.getString(\"message\");\n\n\t\t\t\t\t\t\t// user error boolean flag to check for errors\n\n\t\t\t\t\t\t\tToast.makeText(getApplicationContext(), message,\n\t\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\t\t\t\t\t\tif (!error) {\n\t\t\t\t\t\t\t\t// empty the cart\n\t\t\t\t\t\t\t\tproductsInCart.clear();\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (JSONException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t// hiding the progress dialog\n\t\t\t\t\t\thidepDialog();\n\n\t\t\t\t\t}\n\t\t\t\t}, new Response.ErrorListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onErrorResponse(VolleyError error) {\n\t\t\t\t\t\tLog.e(TAG, \"Verify Error: \" + error.getMessage());\n\t\t\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\t\terror.getMessage(), Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t// hiding the progress dialog\n\t\t\t\t\t\thidepDialog();\n\t\t\t\t\t}\n\t\t\t\t}) {\n\n\t\t\t@Override\n\t\t\tprotected Map<String, String> getParams() {\n\n\t\t\t\tMap<String, String> params = new HashMap<String, String>();\n\t\t\t\tparams.put(\"paymentId\", paymentId);\n\t\t\t\tparams.put(\"paymentClientJson\", payment_client);\n\n\t\t\t\treturn params;\n\t\t\t}\n\t\t};\n\n\t\t// Setting timeout to volley request as verification request takes sometime\n\t\tint socketTimeout = 60000;\n\t\tRetryPolicy policy = new DefaultRetryPolicy(socketTimeout,\n\t\t\t\tDefaultRetryPolicy.DEFAULT_MAX_RETRIES,\n\t\t\t\tDefaultRetryPolicy.DEFAULT_BACKOFF_MULT);\n\t\tverifyReq.setRetryPolicy(policy);\n\n\t\t// Adding request to request queue\n\t\tAppController.getInstance().addToRequestQueue(verifyReq);\n\t}", "public void parseFile(){\n try{\n BufferedReader br = new BufferedReader(new FileReader(\"ElevatorConfig.txt\"));\n \n String fileRead;\n \n totalSimulatedTime = 1000;\n Integer.parseInt(br.readLine());\n simulatedSecondRate = 30;\n Integer.parseInt(br.readLine());\n \n for (int onFloor = 0; onFloor< 5; onFloor++){\n \n fileRead = br.readLine(); \n String[] tokenize = fileRead.split(\";\");\n for (int i = 0; i < tokenize.length; i++){\n String[] floorArrayContent = tokenize[i].split(\" \");\n \n int destinationFloor = Integer.parseInt(floorArrayContent[1]);\n int numPassengers = Integer.parseInt(floorArrayContent[0]);\n int timePeriod = Integer.parseInt(floorArrayContent[2]);\n passengerArrivals.get(onFloor).add(new PassengerArrival(numPassengers, destinationFloor, timePeriod));\n }\n }\n \n br.close();\n \n } catch(FileNotFoundException e){ \n System.out.println(e);\n } catch(IOException ioe){\n ioe.printStackTrace();\n }\n\n }", "public void setPaymentFileService(PaymentFileService paymentFileService) {\r\n this.paymentFileService = paymentFileService;\r\n }", "private void runTestDataFile(String fileName) throws Exception, IOException {\n\n ObjectMapper objectMapper = new ObjectMapper();\n Person[] people = objectMapper.readValue(new File(fileName), Person[].class);\n\n // fetch the payment plan\n TripResponse plan =\n restTemplate.postForObject(\"http://localhost:8080/trip\", people, TripResponse.class);\n\n logger.info(\"response plan with {} reimbursements\", plan.getReimbursements().length);\n\n // check the payment plan\n checkPlan(plan, people);\n }", "public void runPaymentRules(Address addr, CreditCard cc) throws RuleException, BusinessException;", "static Sbpayment newInstance(String filePath) {\n return new DefaultSbpayment(filePath);\n }", "private void fileHandler(String line) {\n var splited = line.split(\" \");\n if (splited.length < 3) {\n System.err.println(\"usage: /file login filename\");\n return;\n }\n String receiver = splited[1];\n String filename = splited[2];\n Path filePath = Path.of(directoryPath.toAbsolutePath().toString(), filename);\n\n if (!Files.exists(filePath)) {\n System.err.println(splited[2] + \" file does not exist.\");\n return;\n }\n\n readFile(filePath).ifPresent(fileContent ->\n {\n if (fileContent.limit() > Helper.LIMIT_FILE_CONTENT_SIZE) {\n System.err.println(\"file is too big. It must be under \" + Helper.LIMIT_SIZE_MSG);\n return;\n }\n\n var fileMsg = new FileMessage(filename, login, fileContent);\n if (!existPrivateConnection(receiver)) {\n sendPrivateConnectionRequest(receiver);\n privateConnectionMap.get(receiver).pendingDirectMessages.add(fileMsg.toBuffer());\n return;\n }\n handlerPrivateFrameSending(fileMsg, receiver);\n });\n }", "public void payment(double total_sales_of_transaction) {\n String payment_typ = \"\";\n Scanner scan = new Scanner(System.in);\n\n System.out.printf(\"Which payment type do you wish to use?\\n\");\n System.out.printf(\"1. Cash\\n\");\n System.out.printf(\"2. Card\\n\");\n \n\n do {\n System.out.printf(\"Please enter your choice :\");\n try {\n choice = scan.nextInt();\n } catch (InputMismatchException e) {\n scan.next();\n System.out.println(\"Something went wrong.\\n\");\n }\n } while (choice<1 || choice >2);\n\n \n\n\n if (choice == 2) {\n boolean valid_ccN = false;\n cerdit_card_ID = scan.nextLine();\n while (valid_ccN == false) {\n valid_ccN = verifiying_payment(cerdit_card_ID);\n if(valid_ccN == true){break;}\n scan.next();\n System.out.println(\"Please enter a valid CC number :\");\n cerdit_card_ID = scan.nextLine();\n }\n\n System.out.println(\"Your payment has been accpeted.\\n\");\n payment_typ = \"CC\";\n payment_used = \"CARD\";\n\n } else {\n verifiying_payment();\n payment_typ = \"C\";\n payment_used = \"CASH\";\n\n }\n\n payment_id = generate_payment_ID(payment_typ);\n printPaymentSummary();\n }", "@Test\n public void testTaxpayerInfoFromTxt() throws FileNotFoundException {\n\n Database.processTaxpayersDataFromFilesIntoDatabase(databaseInstance.getTaxpayersInfoFilesPath(), txtTestFilenameList);\n\n // Get the taxpayer from the Database\n Taxpayer actualTaxpayerInfoTxt = databaseInstance.getTaxpayerFromArrayList(0);\n\n // Test user info from txt file\n Taxpayer expectedTaxpayerInfoTxt = new Taxpayer(\"Apostolos Zarras\", \"130456093\",\n ApplicationConstants.MARRIED_FILING_JOINTLY, \"22570\");\n\n Receipt expectedTaxpayerReceiptFromTxt =\n new Receipt(ApplicationConstants.BASIC_RECEIPT, \"1\", \"25/2/2014\", \"2000\",\n \"Hand Made Clothes\", \"Greece\", \"Ioannina\", \"Kaloudi\", \"10\");\n\n expectedTaxpayerInfoTxt.setReceipts(new ArrayList<>( Collections.singletonList(expectedTaxpayerReceiptFromTxt)));\n expectedTaxpayerInfoTxt.calculateTaxpayerTaxIncreaseOrDecreaseBasedOnReceipts();\n\n assertEquals(expectedTaxpayerReceiptFromTxt.toString(), actualTaxpayerInfoTxt.getReceipts().get(0).toString());\n assertEquals(expectedTaxpayerInfoTxt.toString(), actualTaxpayerInfoTxt.toString());\n\n }", "private void loadTransactions(String transactionFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(transactionFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n int transactionId = Integer.parseInt(splitLine[0]);\n\n String accountTypeChar = splitLine[1];\n TransactionType transactionType = null;\n switch (accountTypeChar)\n {\n case \"D\":\n transactionType = TransactionType.DEBIT;\n break;\n\n case \"C\":\n transactionType = TransactionType.CREDIT;\n break;\n\n case \"T\":\n transactionType = TransactionType.TRANSFER;\n }\n\n String description = splitLine[2];\n Date date = dateFormat.parse(splitLine[3]);\n double amount = Double.parseDouble(splitLine[4]);\n int accountId = Integer.parseInt(splitLine[5]);\n\n Transaction transaction = new Transaction(transactionId,\n transactionType,\n description,\n date,\n amount,\n accountId);\n\n transactionHashMap.putIfAbsent(accountId, new ArrayList<>());\n transactionHashMap.get(accountId).add(transaction);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private void loadCreditCardAccounts(String creditCardAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(creditCardAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parsing out on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data.\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n Date dueDate = dateFormat.parse(splitLine[5]);\n Date dateNotified = dateFormat.parse(splitLine[6]);\n double currentPaymentDue = Double.parseDouble(splitLine[7]);\n Date lastPaymentDate = dateFormat.parse(splitLine[8]);\n boolean missedPayment = Boolean.parseBoolean(splitLine[9]);\n double limit = Double.parseDouble(splitLine[10]);\n String creditCardNumber = splitLine[11];\n int cvv = Integer.parseInt(splitLine[12]);\n\n CreditCard creditCardAccount = new CreditCard(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n dueDate,\n dateNotified,\n currentPaymentDue,\n lastPaymentDate,\n missedPayment,\n limit,\n creditCardNumber,\n cvv);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n creditCardAccount.setTransactions(accountTransactions);\n\n //add credit cards\n accounts.add(creditCardAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "@Test\r\n\tpublic void calculateTotalFromFileValid() {\r\n\t\tMap<String, Object> headers = new HashMap<String, Object>();\r\n\t\theaders.put(\"file_name\", \"abc.txt\");\r\n\t\tMessageHeaders messageHeaders = new MessageHeaders(headers);\r\n\t\tMessage<String> message = MessageBuilder.createMessage(\"2500\\n2500\\n1000\", messageHeaders);\r\n\t\tString output = processFile.calculateTotal(message);\r\n\t\tassertEquals(\"Calculating Total \", \"6000\", output);\r\n\t}", "public static List<Contract> readFromFile(String filename) {\n List<Contract> contracts = new ArrayList<>();\n\n InputStreamReader inputStreamReader = null;\n try {\n inputStreamReader = new InputStreamReader(new FileInputStream(new File(filename)),\"cp1251\");\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n BufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n String [] lines = null;\n String line = null;\n try{\n while ((line = bufferedReader.readLine()) != null) {\n\n lines= line.split(\",\");\n\n\n LocalDate conc = LocalDate.parse(lines[1], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate start = LocalDate.parse(lines[2], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n LocalDate end = LocalDate.parse(lines[3], DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n\n Client client=new Client(ClientType.valueOf(lines[4]),lines[5],lines[6]);\n\n ArrayList<InsuredPerson>insuredPeople=new ArrayList<>();\n for(int i=7; i<lines.length; i+=4 ){\n LocalDate d=LocalDate.parse(lines[i+2],DateTimeFormatter.ofPattern(\"dd.MM.yyyy\"));\n InsuredPerson person = new InsuredPerson(Integer.valueOf(lines[i]),lines[i+1],d,Double.valueOf(lines[i+3]));\n insuredPeople.add(person);\n\n\n }\n Contract contract=new Contract(Integer.valueOf(lines[0]),conc,start,end,client,insuredPeople);\n contracts.add(contract);\n }\n bufferedReader.close();}\n catch (IOException e){\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n return contracts;\n\n }", "public static void loadReceipt(String receiptFile)\r\n\t{\r\n\t\tScanner inputStream = null;\r\n\t\ttry\r\n\t\t{\r\n\t\t\tinputStream = new Scanner(new File(RECEIPT_PATH + receiptFile));\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null,\"File Not Found\");\r\n\t\t}\r\n\t\tclearReceipt();\r\n\t\twhile(inputStream.hasNextLine())\r\n\t\t\tlistModel.addElement(inputStream.nextLine());\r\n\t\tinputStream.close();\r\n\t}", "static void processFile(File xmlFile) {\n Document doc = null;\n try {\n doc = builder.parse(xmlFile);\n }\n catch (IOException e) {\n e.printStackTrace();\n System.exit(3);\n }\n catch (SAXException e) {\n System.out.println(\"Parsing error on file \" + xmlFile);\n System.out.println(\" (not supposed to happen with supplied XML files)\");\n e.printStackTrace();\n System.exit(3);\n }\n \n /* At this point 'doc' contains a DOM representation of an 'Items' XML\n * file. Use doc.getDocumentElement() to get the root Element. */\n System.out.println(\"Successfully parsed - \" + xmlFile);\n \n /* Fill in code here (you will probably need to write auxiliary\n methods). */\n \n Element[] elems = getElementsByTagNameNR(doc.getDocumentElement(), \"Item\");\n for(Element e : elems) {\n\n String itemId = e.getAttribute(\"ItemID\");\n String name = getElementTextByTagNameNR(e, \"Name\");\n String currently = strip(getElementTextByTagNameNR(e, \"Currently\"));\n String buy_price = strip(getElementTextByTagNameNR(e, \"Buy_Price\"));\n String first_bid = strip(getElementTextByTagNameNR(e, \"First_Bid\"));\n String number_of_bids = getElementTextByTagNameNR(e, \"Number_of_Bids\");\n String country = getElementTextByTagNameNR(e, \"Country\");\n String started = changeTime(getElementTextByTagNameNR(e, \"Started\"));\n String ends = changeTime(getElementTextByTagNameNR(e, \"Ends\"));\n Element seller = getElementByTagNameNR(e, \"Seller\");\n String sellerId = seller.getAttribute(\"UserID\");\n String sellerRatings = seller.getAttribute(\"Rating\");\n String location = getElementTextByTagNameNR(e, \"Location\");\n Element locate = getElementByTagNameNR(e, \"Location\");\n String latitude = locate.getAttribute(\"Latitude\");\n String longitude = locate.getAttribute(\"Longitude\");\n String description = getElementTextByTagNameNR(e, \"Description\");\n if(description.length() > 4000)\n description = description.substring(0, 4001);\n\n // add the record to the list\n items.add(itemRecord(itemId, name, currently, buy_price, first_bid, number_of_bids, country,\n started, ends, sellerId, location, latitude, longitude, description));\n\n // add the category infomation and belongsTo information\n Element[] cates = getElementsByTagNameNR(e, \"Category\");\n for(Element c : cates) {\n String cate = getElementText(c);\n if(category.containsKey(cate) == false) {\n int cnt = category.size();\n category.put(cate, cnt);\n }\n int index = category.get(cate);\n String caterecord = itemId + columnSeparator + index;\n belongsTo.add(caterecord);\n }\n\n // add the user information\n if(users.containsKey(sellerId)) {\n users.get(sellerId).sellRating = sellerRatings;\n }\n else {\n User u = new User(sellerId);\n u.sellRating = sellerRatings;\n users.put(sellerId, u);\n }\n\n // add the bid infromation and bider inforamtion\n Element[] ebids = getElementsByTagNameNR(getElementByTagNameNR(e, \"Bids\"), \"Bid\");\n for(Element b : ebids) {\n Element bidder = getElementByTagNameNR(b, \"Bidder\");\n String bidderId = bidder.getAttribute(\"UserID\");\n String bidderRating = bidder.getAttribute(\"Rating\");\n String bidderloc = getElementTextByTagNameNR(bidder, \"Location\");\n String biddercoun = getElementTextByTagNameNR(bidder, \"Country\");\n String amount = strip(getElementTextByTagNameNR(b, \"Amount\"));\n String time = changeTime(getElementTextByTagNameNR(b, \"Time\"));\n\n\n if(users.containsKey(bidderId) == false) {\n User u = new User(bidderId);\n users.put(bidderId, u);\n }\n users.get(bidderId).location = bidderloc;\n users.get(bidderId).country = biddercoun;\n users.get(bidderId).bidRating = bidderRating;\n bids.add(bidRecord(itemId, bidderId, time, amount));\n }\n\n }\n \n \n /**************************************************************/\n \n }", "protected void parseValues(File file){\r\n\t\ttry {\r\n\t\t\tScanner scanner = new Scanner(file);\r\n\t\t\tString line;\r\n\t\t\tif(scanner.hasNext()) \r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\twhile (scanner.hasNextLine()) {\r\n\t\t\t\tline = scanner.nextLine();\r\n\t\t\t\taddToSupplyValues(line);\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void parseFile(String fileName) {\n Set<String> inputs = new HashSet<String>();\n Set<String> outputs = new HashSet<String>();\n double[] qos = new double[4];\n\n Properties p = new Properties(inputs, outputs, qos);\n\n try {\n Scanner scan = new Scanner(new File(fileName));\n while(scan.hasNext()) {\n\t\t\t\tString name = scan.next();\n\t\t\t\tString inputBlock = scan.next();\n\t\t\t\tString outputBlock = scan.next();\n\n\t\t\t\tqos[TIME] = scan.nextDouble();\n\t\t\t\tqos[COST] = scan.nextDouble();\n\t\t\t\tqos[AVAILABILITY] = scan.nextDouble()/100;\n\t\t\t\tqos[RELIABILITY] = scan.nextDouble()/100;\n\t\t\t\t// Throw the other two away;\n\t\t\t\tscan.nextDouble();\n\t\t\t\tscan.nextDouble();\n\n\t\t\t\tfor (String s :inputBlock.split(\",\"))\n\t\t\t\t\tinputs.add(s);\n\t\t\t\tfor (String s :outputBlock.split(\",\"))\n\t\t\t\toutputs.add(s);\n\n p = new Properties(inputs, outputs, qos);\n\n ServiceNode ws = new ServiceNode(name, p);\n serviceMap.put(name, ws);\n inputs = new HashSet<String>();\n outputs = new HashSet<String>();\n qos = new double[4];\n }\n scan.close();\n }\n catch(IOException ioe) {\n System.out.println(\"File parsing failed...\");\n }\n\t\tnumServices = serviceMap.size();\n }", "public void calculatePayment() {}", "private void makePayment(User user, Scanner sc, Payment payment) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nPayment Processing\\n\");\n\t\t\tlog.info(\"Current Payment: \" + payment + \"\\n\");\n\n\t\t\tMap<String, Object> makePaymentArgs = new HashMap<>();\n\t\t\tmakePaymentArgs.put(\"offer\", payment.getOffer());\n\t\t\tmakePaymentArgs.put(\"user\", user);\n\t\t\tmakePaymentArgs.put(\"amount\", payment.getOffer().getBalance());\n\t\t\tcService.makePayment(makePaymentArgs);\n\n\t\t\tlog.info(\"\\nPayment is complete:\");\n\t\t\tlog.info(\"\t\tPress anything else to exit\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the PAYMENTS DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\t}", "UserPayment validate(String cardHolderName,String cardType,String securityCode,String paymentType);", "public void pay(InternalAccountOwner from, InternalAccountOwner to, BigDecimal amount) {\n PerformPaymentData data;\n try {\n data = transactionService.getPaymentData(from, to, null);\n } catch (EntityNotFoundException e) {\n System.out.println(\"Some of the users were not found. Transaction aborted.\");\n return;\n }\n\n // try to figure out the type of payment (for some reason)\n List<TransferTypeWithCurrencyVO> types = data.getPaymentTypes();\n TransferTypeWithCurrencyVO paymentType = CollectionHelper.first(types);\n if (paymentType == null) {\n System.out.println(\"There is no possible payment type.\");\n }\n\n // set up payment to be made\n PerformPaymentDTO payment = new PerformPaymentDTO();\n payment.setType(paymentType);\n payment.setFrom(from);\n payment.setTo(to);\n payment.setAmount(amount);\n\n try {\n PaymentVO result = paymentService.perform(payment);\n TransactionAuthorizationStatus authStatus = result.getAuthorizationStatus();\n if (authStatus == TransactionAuthorizationStatus.PENDING_AUTHORIZATION) {\n System.out.println(\"The payment is pending authorization.\");\n } else {\n System.out.println(\"The payment has been processed.\");\n }\n } catch (InsufficientBalanceException e) {\n System.out.println(\"Insufficient balance\");\n } catch (MaxPaymentsPerDayExceededException e) {\n System.out.println(\"Maximum daily amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MaxPaymentsPerWeekExceededException e) {\n System.out.println(\"Maximum weekly amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MaxPaymentsPerMonthExceededException e) {\n System.out.println(\"Maximum monthly amount of transfers \"\n + e.getMaxPayments() + \" has been reached\");\n } catch (MinTimeBetweenPaymentsException e) {\n System.out.println(\"A minimum period of time should be awaited to make \"\n + \"a payment of this type\");\n } catch (MaxAmountPerDayExceededException e) {\n System.out.println(\"Maximum daily amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (MaxAmountPerWeekExceededException e) {\n System.out.println(\"Maximum weekly amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (MaxAmountPerMonthExceededException e) {\n System.out.println(\"Maximum monthly amount of \"\n + e.getMaxAmount() + \" has been reached\");\n } catch (Exception e) {\n System.out.println(\"The payment couldn't be performed\");\n }\n\n }", "public void process(PurchaseOrder po)\n {\n File file = new File(path + \"/\" + ORDERS_XML);\n \n try\n {\n DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\n DocumentBuilder db = dbf.newDocumentBuilder();\n InputSource is = new InputSource();\n is.setCharacterStream(new FileReader(file));\n\n Document doc = db.parse(is);\n\n Element root = doc.getDocumentElement();\n Element e = doc.createElement(\"order\");\n\n // Convert the purchase order to an XML format\n String keys[] = {\"orderNum\",\"customerRef\",\"product\",\"quantity\",\"unitPrice\"};\n String values[] = {Integer.toString(po.getOrderNum()), po.getCustomerRef(), po.getProduct().getProductType(), Integer.toString(po.getQuantity()), Float.toString(po.getUnitPrice())};\n \n for(int i=0;i<keys.length;i++)\n {\n Element tmp = doc.createElement(keys[i]);\n tmp.setTextContent(values[i]);\n e.appendChild(tmp);\n }\n \n // Set the status to submitted\n Element status = doc.createElement(\"status\");\n status.setTextContent(\"submitted\");\n e.appendChild(status);\n\n // Set the order total\n Element total = doc.createElement(\"orderTotal\");\n float orderTotal = po.getQuantity() * po.getUnitPrice();\n total.setTextContent(Float.toString(orderTotal));\n e.appendChild(total);\n\n // Write the content all as a new element in the root\n root.appendChild(e);\n TransformerFactory tf = TransformerFactory.newInstance();\n Transformer m = tf.newTransformer();\n DOMSource source = new DOMSource(root);\n StreamResult result = new StreamResult(file);\n m.transform(source, result);\n\n }\n catch(Exception e)\n {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public void parseFileForInput(emailValidator sortingObject){\n File fileObj;\n try {\n fileObj = new File(sortingObject.getPath());\n Scanner scannerObj = new Scanner(fileObj);\n \n while(scannerObj.hasNextLine()){\n String currentEmail = scannerObj.nextLine();\n\n //for each email, call validate method on it\n if(isEmailValid(currentEmail) && !currentEmail.equals(\"end\")){\n String domainEnding = extractEmailEnding(currentEmail);\n sortingObject.allEmails.put(currentEmail, domainEnding);\n\n }\n else if(currentEmail.equals(\"end\")){\n scannerObj.close();\n break;\n }\n }\n scannerObj.close();\n } \n catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n}", "private void loadSavingsAccounts(String savingsAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(savingsAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //read...\n String currentLine = input.nextLine();\n\n //parse on commas...\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftAccountId = Integer.parseInt(splitLine[5]);\n\n Savings savingsAccount = new Savings(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftAccountId);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n savingsAccount.setTransactions(accountTransactions);\n\n //add savings account...\n accounts.add(savingsAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "private boolean readFile(String fileName) {\n Message msg = new Message();\n FileInputStream fis;\n InputStreamReader isr;\n BufferedReader br;\n int depCount = 0;\n int depIndex = 0;\n float xIndex = 0;\n float yIndex = 0;\n int dist = 0;\n int capacity = 0;\n File file = new File(fileName);\n\n try {\n //open the requested file\n fis = new FileInputStream(file);\n isr = new InputStreamReader(fis);\n br = new BufferedReader(isr);\n } catch (Exception e) {\n System.err.println(\"File is not present \" + file);\n\n return false;\n }\n\n String line;\n StringTokenizer st = null;\n\n try {\n br.readLine(); // skip text labels\n line = br.readLine(); // depot constraints\n st = new StringTokenizer(line);\n\n // skip text labels\n br.readLine();\n } catch (IOException ex) {\n System.err.println(\"Error reading depot file: \" + fileName + \": \" +\n ex);\n }\n\n try {\n depCount = Integer.parseInt(st.nextToken().trim());\n dist = Integer.parseInt(st.nextToken().trim());\n capacity = Integer.parseInt(st.nextToken().trim());\n } catch (NumberFormatException ex) {\n System.err.println(\"Error processing depot constraint info: \" + ex);\n }\n\n //process depots\n for (int i = 0; i < depCount; i++) {\n try {\n line = br.readLine();\n st = new StringTokenizer(line);\n } catch (IOException ex) {\n System.err.println(\"Error reading depot file: \" + fileName +\n \": \" + ex);\n }\n\n //read the depot information\n try {\n depIndex = Integer.parseInt(st.nextToken().trim());\n xIndex = Float.parseFloat(st.nextToken().trim());\n yIndex = Float.parseFloat(st.nextToken().trim());\n } catch (NumberFormatException ex) {\n System.err.println(\"Error processing depot coordinate info: \" +\n ex);\n }\n\n // build the message\n msg.addArgument(IndexTag, \"\" + depIndex);\n msg.addArgument(XCoordTag, \"\" + xIndex);\n msg.addArgument(YCoordTag, \"\" + yIndex);\n }\n\n //save max distance and capacity\n if (dist == 0) { //if no max distance, set to a large number...\n dist = 999999999;\n }\n\n if (capacity == 0) { //if there is no maximum capacity, set it to a very large number\n capacity = 999999999;\n }\n\n // build the message\n msg.addArgument(NumberOfDepotsTag, \"\" + depCount);\n msg.addArgument(MaxCapacityTag, \"\" + capacity);\n msg.addArgument(MaxDistanceTag, \"\" + dist);\n msg.addArgument(FileNameTag, fileName);\n\n zAdapt.setProblemConstraints(msg);\n\n return true;\n }", "public void readCustomerReceipt()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tScanner reader = new Scanner(new FileReader(\"customerReceipt.txt\"));\r\n\t\t\twhile (reader.hasNext())\r\n\t\t\t{\r\n\t\t\t\tSystem.out.println(reader.nextLine());\r\n\t\t\t}\r\n\t\t\treader.close();\r\n\t\t}\r\n\t\tcatch(FileNotFoundException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"FileNotFoundException\");\r\n\t\t}\r\n\t}", "Payment setPaymentFromBetalningsservice(List<String> paymentrows) throws ParseException {\n Payment payment = new Payment();\n List<PaymentLine> paymentLines = new ArrayList<>();\n for (String line: paymentrows) {\n String firstLetter = String.valueOf(line.charAt(0));\n if(firstLetter.equals(POST_TYPE_O)){\n payment.setOpeningType(firstLetter);\n payment.setAccountNumber(line.substring(1,16));\n String kd = line.substring(16,30).trim().replaceAll(\",\",\".\");\n BigDecimal bd = new BigDecimal(kd);\n payment.setTotalAmount(bd);\n payment.setNumberOfPaymentRows(Integer.valueOf(line.substring(30,40).trim()));\n Date date = dateform.parse(line.substring(40,48));\n payment.setPaymentDate(date);\n payment.setCurrency(line.substring(48,51));\n }else if(firstLetter.equals(POST_TYPE_B)){\n PaymentLine paymentLine = new PaymentLine();\n String kd = line.substring(1,15).trim().replaceAll(\",\",\".\");\n BigDecimal bd = new BigDecimal(kd);\n paymentLine.setAmount(bd);\n paymentLine.setReference(line.substring(15,50).trim());\n paymentLines.add(paymentLine);\n }\n }\n payment.setPaymentLines(paymentLines);\n return payment;\n }", "public static void main(String[] args) {\n\t\tThread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {\r\n\t\t public void uncaughtException(Thread t, Throwable e) {\r\n\t\t logger.log(Level.SEVERE, t + \" RemoteFileParse threw an exception: \", e);\r\n\t\t };\r\n\t\t });\r\n\t\t\r\n\t\tif (args != null && args.length >= 3) {\r\n\t\t\t//Set the Buyer object Model with the incoming args provided in the command line args IE. IPRemoteParse.exe \r\n\t\t\tModels.Buyer buyerInfo = new Models.Buyer(Integer.parseInt(args[0]), args[1], args[2], args[3]);\r\n\t\t\t\r\n\t\t\t//check for a file. Haven't decided how to engage the scheduling as of yet.\r\n\t\t\tparseFiles(buyerInfo);\r\n\t\t}\r\n\t\telse { //just for testing stubbing out the buyer object. args would normally be sent in on a command line call or .bat file which will be created on install with all user options (or xml config file)\r\n\t\t\tModels.Buyer buyerInfo = new Models.Buyer(1926420, \"intelligentpay-api.inworks.com\", \"C:\\\\Users\\\\grichter.EVIL_EMPIRE\\\\Desktop\\\\ParseTesting\", \"Payments_\");\r\n\t\t\tparseFiles(buyerInfo);\r\n\t\t}\r\n\t}", "public void loadMembers(String filename) {\n try {\r\n Scanner input = new Scanner(new File(filename));\r\n // keep going until the end \r\n while (input.hasNext()) {\r\n String name = input.nextLine();\r\n String address = input.nextLine();\r\n String onLoan = input.nextLine();\r\n // add the member \r\n addMember(name, address);\r\n \r\n if (!onLoan.equals(\"NONE\")) {\r\n \r\n }\r\n }\r\n } catch (FileNotFoundException e) {\r\n // print an error message \r\n System.err.println(\"File not found\");\r\n }\r\n }", "private void managePayments(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nThe Following are your Purchases\\n\");\n\t\t\tList<Offer> offers = cService.seeAllOwnedOffers(user);\n\t\t\toffers.stream().filter(offer -> offer.getStatus().getStatus_name().equals(\"pending\"))\n\t\t\t\t\t.forEach(offer -> log.info(offer.toString()));\n\n\t\t\tlog.info(\"\\nChoose an option:\");\n\t\t\tlog.info(\"\t\tPress 1 to See Payments for an Item\");\n\t\t\tlog.info(\"\t\tPress anything else to return to the CUSTOMER DASHBOARD\");\n\t\t\tString choice = sc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase \"1\":\n\t\t\t\tseePayments(user, sc);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tlog.info(\"\\nGoing back to the CUSTOMER DASHBOARD\\n\");\n\t\t\t\trun = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} while (run);\n\n\t}", "public void file(OrderReceipt r) {\r\n\t\tthis.receiptissued.add(r);\r\n\t}", "private ImportCommand parseLinesFromFile(BufferedReader br) {\n boolean hasContactWithInvalidField = false;\n boolean hasContactWithoutName = false;\n try {\n String line = br.readLine();\n while (line != null) {\n String[] attributes = line.split(\",\", -1);\n int numAttributes = attributes.length;\n\n if (attributes[NAME_FIELD].equalsIgnoreCase(\"Name\")\n || attributes[NAME_FIELD].equalsIgnoreCase(\"Name:\")) { // ignore headers\n line = br.readLine();\n continue;\n }\n\n if (contactHasNoName(attributes, numAttributes)) {\n hasContactWithoutName = true;\n line = br.readLine();\n continue;\n }\n\n Name name = null;\n Optional<Phone> phone = Optional.empty();\n Optional<Email> email = Optional.empty();\n Optional<Address> address = Optional.empty();\n Meeting meeting = null;\n\n try {\n name = ParserUtil.parseName(attributes[NAME_FIELD]);\n if (!attributes[PHONE_FIELD].matches(\"\")) {\n phone = Optional.of(ParserUtil.parsePhone(attributes[PHONE_FIELD]));\n }\n if (!attributes[EMAIL_FIELD].matches(\"\")) {\n email = Optional.of(ParserUtil.parseEmail(attributes[EMAIL_FIELD]));\n }\n if (!attributes[ADDRESS_FIELD].matches(\"\")) {\n address = Optional.of(ParserUtil.parseAddress(attributes[ADDRESS_FIELD]));\n }\n if (!attributes[MEETING_FIELD].matches(\"\")) {\n meeting = ParserUtil.parseMeeting(attributes[MEETING_FIELD]);\n }\n } catch (ParseException pe) {\n hasContactWithInvalidField = true;\n line = br.readLine();\n continue;\n }\n\n ArrayList<String> tags = new ArrayList<>();\n //Check for tags\n if (numAttributes > TAG_FIELD_START) {\n for (int i = TAG_FIELD_START; i < numAttributes; i++) {\n if (!attributes[i].matches(\"\")) {\n tags.add(attributes[i]);\n }\n }\n }\n\n Set<Tag> tagList = null;\n try {\n tagList = ParserUtil.parseTags(tags);\n } catch (ParseException e) {\n line = br.readLine();\n continue;\n }\n if (meeting == null) {\n persons.add(new Person(name, phone, email, address, tagList));\n } else {\n persons.add(new Person(name, phone, email, address, tagList, meeting));\n }\n line = br.readLine();\n }\n br.close();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n return new ImportCommand(persons, hasContactWithInvalidField, hasContactWithoutName);\n }", "private void processPayment(ProcessPaymentEvent event) {\n try {\r\n message.setInt(\"invoiceId\", event.getInvoiceId());\r\n message.setInt(\"processId\", (event.getProcessId() == null) ? -1 : event.getProcessId());\r\n message.setInt(\"runId\", (event.getRunId() == null) ? -1 : event.getRunId());\r\n message.setStringProperty(\"type\", \"payment\");\r\n \r\n // add additional fields from the associated plug-in\r\n IAsyncPaymentParameters task = getPluggableTask(entityId, \r\n Constants.PLUGGABLE_TASK_ASYNC_PAYMENT_PARAMS);\r\n task.addParameters(message);\r\n } catch (Exception e) {\r\n throw new SessionInternalError(\"Error transforming message \", \r\n this.getClass(), e);\r\n }\r\n }", "private static String sendPayment(String name, String numberCard, YearMonth dateValidCard, int numParcel, double value, BufferedReader in, PrintWriter out) throws IOException {\n\t\t//formatando a string de retorno dos dados\n\t\tout.println(String.format(\"%s;%s;%s;%d;%s\", name, numberCard, dateValidCard.format(DateTimeFormatter.ofPattern(\"MM/yyyy\")), numParcel, String.valueOf(value)));\n\t\t\n\t\tString status = in.readLine();\n\t\t\n\t\tif (status.equals(\"OK\")) {\n\t\t\treturn null;\n\t\t}else {\n\t\t\treturn status;\n\t\t}\n\t}", "Payment setPaymentFromInbetalningstjansten(List<String> paymentrows) throws ParseException {\n Payment payment = new Payment();\n List<PaymentLine> paymentLines = new ArrayList<>();\n for (String line: paymentrows) {\n String firstLetter = String.valueOf(line.charAt(0));\n if(firstLetter.equals(POST_TYPE_ZERO)){\n payment.setOpeningType(firstLetter+0);\n payment.setAccountNumber(line.substring(10,24));\n }\n else if(firstLetter.equals(POST_TYPE_THREE)){\n PaymentLine paymentLine = new PaymentLine();\n String kd = line.substring(2,22).trim().replaceAll(\",\",\".\");\n BigDecimal bd = new BigDecimal(kd);\n paymentLine.setAmount(bd);\n paymentLine.setReference(line.substring(40,65).trim());\n paymentLines.add(paymentLine);\n }\n else if(firstLetter.equals(POST_TYPE_NINE)){\n String amount = line.substring(2,22).trim().replaceAll(\",\",\".\");\n BigDecimal bd = new BigDecimal(amount);\n payment.setTotalAmount(bd);\n payment.setNumberOfPaymentRows(Integer.valueOf(line.substring(30,38).trim()));\n }\n }\n payment.setPaymentLines(paymentLines);\n return payment;\n }", "private void seePayments(User user, Scanner sc) {\n\t\tboolean run = true;\n\t\tdo {\n\t\t\tlog.info(\"\\nPayments Dashboard\\n\");\n\n\t\t\tOffer offer;\n\t\t\ttry {\n\t\t\t\tlog.info(\"Select an Offer by typing in the id:\\n\");\n\t\t\t\tlog.info(\"\t\tOr press ENTER to quit\\n\");\n\t\t\t\tInteger offer_id = Integer.parseInt(sc.nextLine());\n\t\t\t\toffer = cService.getOfferById(offer_id);\n\t\t\t\tlog.info(\"Current Offer: \" + offer + \"\\n\");\n\t\t\t\tList<Payment> payments = cService.viewUnPaidPayments(user, offer);\n\t\t\t\tpayments.stream().forEach(p -> log.info(p.toString()));\n\n\t\t\t\tlog.info(\"\\nChoose an option:\");\n\t\t\t\tlog.info(\"\t\tPress 1 to Make a Payment on an Item\");\n\t\t\t\tlog.info(\"\t\tPress anything else to return to the PURCHASES DASHBOARD\");\n\t\t\t\tString choice = sc.nextLine();\n\t\t\t\tswitch (choice) {\n\t\t\t\tcase \"1\":\n\t\t\t\t\tif (payments.size() > 0) {\n\t\t\t\t\t\tmakePayment(user, sc, payments.get(0));\n\t\t\t\t\t} else {\n\t\t\t\t\t\tlog.info(\"\\nSorry, payments can't be made on this offer!\\n\");\n\t\t\t\t\t\trun = false;\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tlog.info(\"\\nGoing back to the PURCHASES DASHBOARD\\n\");\n\t\t\t\t\trun = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t} catch (NumberFormatException n) {\n\t\t\t\tlog.info(\"\\nPlease type in a valid number. Start all over again.\\n\");\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t} while (run);\n\n\t}", "@Override\n\tpublic void processPayment() {\n\t\t\n\t\tsetIsSuccessful();\n\t}", "private void payment_pay(){\r\n\r\n // only pay if all fields are filled out\r\n\r\n // values to test if there are no input errors\r\n boolean noEmptyFields = true, noIllegalFields = true;\r\n\r\n //UIManager.put(\"OptionPane.minimumSize\",new Dimension(500,300));\r\n String errorMessage = \"Must Enter\";\r\n if (String.valueOf(payment_nameField.getText()).equals(\"\")) {\r\n errorMessage += \" Cardholder Name,\";\r\n noEmptyFields = false;\r\n }\r\n if (String.valueOf(payment_cardNumberField.getText()).equals(\"\")) {\r\n errorMessage += \" Card Number,\";\r\n noEmptyFields = false;\r\n }\r\n if (String.valueOf(payment_cardCodeField.getText()).equals(\"\")) {\r\n errorMessage += \" Card Security Code,\";\r\n noEmptyFields = false;\r\n }\r\n if (String.valueOf(payment_monthCB.getSelectedItem()).equals(\"\")) {\r\n errorMessage += \" Expiration Month,\";\r\n noEmptyFields = false;\r\n }\r\n if (String.valueOf(payment_yearCB.getSelectedItem()).equals(\"\")) {\r\n errorMessage += \" Expiration YEar,\";\r\n noEmptyFields = false;\r\n }\r\n\r\n // throws error if card number has characters other than numbers, or has less/more than 16 digits\r\n if (payment_cardNumberField.getText().length() > 0 && payment_cardNumberField.getText().length() != 16) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Card Number Must Have 16 Characters\");\r\n noIllegalFields = false;\r\n } else if (payment_cardNumberField.getText().length() == 16) {\r\n for (int i = 0; i < 16; i++) {\r\n if (!Character.isDigit(payment_cardNumberField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Card Number Must Have Only Numbers\");\r\n noIllegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n // throws error if card security code has characters other than numbers, or has less/more than 3 digits\r\n if (payment_cardCodeField.getText().length() > 0 && payment_cardCodeField.getText().length() != 3) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Card Security Code Must Have 3 Characters\");\r\n noIllegalFields = false;\r\n } else if (payment_cardCodeField.getText().length() == 3) {\r\n for (int i = 0; i < 3; i++) {\r\n if (!Character.isDigit(payment_cardCodeField.getText().charAt(i))) {\r\n JOptionPane.showMessageDialog\r\n (null, \"Card Security Code Must Have Only Numbers\");\r\n noIllegalFields = false;\r\n break;\r\n }\r\n }\r\n }\r\n\r\n\r\n // checks if there are no input errors\r\n if (noEmptyFields && noIllegalFields) {\r\n\r\n JOptionPane.showMessageDialog\r\n (null, \"Payment Successful\");\r\n\r\n clearHistory();\r\n MainGUI.pimsSystem.recordApptPayment(currentPatient, billing_amtDueField.getText());\r\n printHistory(currentPatient);\r\n\r\n paymentDialog.setVisible(false);\r\n\r\n payment_nameField.setText(\"\");\r\n payment_cardCodeField.setText(\"\");\r\n payment_cardNumberField.setText(\"\");\r\n payment_monthCB.setSelectedItem(1);\r\n payment_yearCB.setSelectedItem(1);\r\n } else if (!String.valueOf(errorMessage).equals(\"Must Enter\")) {\r\n JOptionPane.showMessageDialog(null, errorMessage);\r\n }\r\n\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString username, password, payee;\n\t\tUser user;\n\t\tBank bank = new Bank();\n\t\tObjectOutputStream oos = null;\n\t\tString outputFile = \"resource/Bank.txt\";\n\t\tObjectInputStream ois = null;\n\t\tString inputFile = \"resource/Bank.txt\";\n\t\tString trInputFile = \"resource/Transactions.txt\";\n\t\tFile f = new File(outputFile);\n\n\t\tdouble amount;\n\n\t\tint choice;\n\t\tdashbord: while (true) {\n\t\t\tSystem.out.println(\"\\n-------------------\");\n\t\t\tSystem.out.println(\"BANK OF MyBank\");\n\t\t\tSystem.out.println(\"-------------------\\n\");\n\t\t\tSystem.out.println(\"1. Register account.\");\n\t\t\tSystem.out.println(\"2. Login.\");\n\t\t\tSystem.out.println(\"3. Update accounts.\");\n\t\t\tSystem.out.println(\"4. Exit.\");\n\t\t\tSystem.out.print(\"\\nEnter your choice : \");\n\t\t\tchoice = sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tswitch (choice) {\n\t\t\tcase 1:\n\t\t\t\tSystem.out.print(\"Enter name : \");\n\t\t\t\tString name = sc.nextLine();\n\t\t\t\tSystem.out.print(\"Enter address : \");\n\t\t\t\tString address = sc.nextLine();\n\t\t\t\tSystem.out.print(\"Enter contact number : \");\n\t\t\t\tString phone = sc.nextLine();\n\t\t\t\tSystem.out.println(\"Set username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\t// -------------------------------------------------------\n\n\t\t\t\ttry {\n\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\t\t\t\t\tif (f.length() != 0) {\n\n\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n\t\t\t\t\t}\n\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t}\n\n\t\t\t\tcatch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t} finally {\n\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t// --------------------------------------------------------\n\n\t\t\t\twhile (bank.userMap.containsKey(username)) {\n\t\t\t\t\tSystem.out.println(\"Username already exists. Set again : \");\n\t\t\t\t\tusername = sc.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"Set a password (minimum 8 chars; minimum 1 digit, 1 lowercase, 1 uppercase, 1 special character[!@#$%^&*_]) :\");\n\t\t\t\tpassword = sc.next();\n\t\t\t\tsc.nextLine();\n\t\t\t\twhile (!password.matches(((\"(?=.*\\\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*_]).{8,}\")))) {\n\t\t\t\t\tSystem.out.println(\"Invalid password . Set again :\");\n\t\t\t\t\tpassword = sc.next();\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"Enter initial deposit :10000 \");\n\t\t\t\tamount = sc.nextDouble();\n//\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\tamount=sc.nextDouble();\n//\t\t\t\t}\n\n//\t\t\t\tsc.nextLine();\n\t\t\t\tuser = new User(name, address, phone, username, password, amount, new Date());\n\t\t\t\ttry {\n\t\t\t\t\toos = new ObjectOutputStream(new FileOutputStream(outputFile));\n//\t\t\t\t\tif(f.length()==0)\n\t\t\t\t\tbank.userMap.put(username, user);\n\t\t\t\t\tfor (Entry<String, User> entry : bank.userMap.entrySet())\n\t\t\t\t\t\toos.writeObject(bank.userMap);\n\t\t\t\t\toos.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (oos != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tSystem.out.println(\"Enter username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\tsc.nextLine();\n\t\t\t\tSystem.out.println(\"Enter password : \");\n\t\t\t\tpassword = sc.next();\n\t\t\t\tsc.nextLine();\n\n\t\t\t\ttry {\n\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n\t\t\t\t\t\tSystem.out.println(bank.userMap);\n\t\t\t\t\t\t// System.out.println(bank.userMap);\n\t\t\t\t\t\tif (bank.userMap.containsKey(username)) {\n\t\t\t\t\t\t\tuser = bank.userMap.get(username);\n\t\t\t\t\t\t\tif (bank.userMap.get(username).getPassword().equals(password)) {\n//\t\t\t\t\t\t\tSystem.out.println(\"hi\");\n\t\t\t\t\t\t\t\twhile (true) {\n\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"\\n---------------------------------\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"W E L C O M E, \" + username.toUpperCase());\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"-----------------------------------\\n\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"1. Deposit.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"2. Transfer.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"3. Last 5 transactions.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"4. User information.\");\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"5. Log out.\");\n\t\t\t\t\t\t\t\t\tSystem.out.print(\"\\nEnter your choice : \");\n\t\t\t\t\t\t\t\t\tchoice = sc.nextInt();\n\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\tswitch (choice) {\n\t\t\t\t\t\t\t\t\tcase 1:\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter amount : \");\n//\t\t\t\t\t\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tamount = sc.nextDouble();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(amount);\n\n\t\t\t\t\t\t\t\t\t\tdeposit(amount, new Date(), bank, username, user, payee = null);\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 2:\n\t\t\t\t\t\t\t\t\t\tSystem.out.print(\"Enter payee username : \");\n\t\t\t\t\t\t\t\t\t\tpayee = sc.next();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Enter amount : \");\n//\t\t\t\t\t\t\t\t\twhile (!sc.hasNextDouble()) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Invalid amount. Enter again :\");\n//\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tamount = sc.nextDouble();\n\t\t\t\t\t\t\t\t\t\tsc.nextLine();\n//\t\t\t\t\t\t\t\t\tif (amount > 300000) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Transfer limit exceeded. Contact bank manager.\");\n//\t\t\t\t\t\t\t\t\t\tbreak;\n//\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\ttry {\n\t\t\t\t\t\t\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(inputFile));\n\n//\t\t\t\t\t\t\t\t\t while(true) {\n\t\t\t\t\t\t\t\t\t\t\tbank.userMap = (Map<String, User>) ois.readObject();\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"whil\");\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(bank.userMap);\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(bank.userMap.get(username).getPassword().equals(password));\n\t\t\t\t\t\t\t\t\t\t\tif (bank.userMap.containsKey(payee)) {\n\t\t\t\t\t\t\t\t\t\t\t\twithdraw(amount, new Date(), bank, username, user);\n\t\t\t\t\t\t\t\t\t\t\t\tdeposit(amount, new Date(), bank, username, bank.userMap.get(payee),\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tpayee);\n\n\t\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Username doesn't exist.\");\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 3:\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tois = new ObjectInputStream(new FileInputStream(trInputFile));\n\n\t\t\t\t\t\t\t\t\t\t\twhile (true) {\n\t\t\t\t\t\t\t\t\t\t\t\tbank.transactions = (ArrayList<String>) ois.readObject();\n\t\t\t\t\t\t\t\t\t\t\t\tfor (String tr : bank.transactions)\n\t\t\t\t\t\t\t\t\t\t\t\t\tif (tr.contains(username))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(tr);\n\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"its end of the record\");\n\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\tcatch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\te.printStackTrace();\n\n\t\t\t\t\t\t\t\t\t\t} finally {\n\t\t\t\t\t\t\t\t\t\t\tif (ois != null)\n\t\t\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\t\t\tois.close();\n\t\t\t\t\t\t\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t}\n\n//\t\t\t\t\t\t\t\t\tSet set = bank.transactions.entrySet();\n//\t\t\t\t\t\t\t Iterator iterator = set.iterator();\n//\t\t\t\t\t\t\t \n//\t\t\t\t\t\t\t while (iterator.hasNext()) {\n//\t\t\t\t\t\t\t Map.Entry entry = (Map.Entry)iterator.next();\n//\t\t\t\t\t\t\t System.out.println();\n//\t\t\t\t\t\t\t }\n//\t\t\t\t\t\t\t\t\tfor (String transactions : user.transactions) {\n//\t\t\t\t\t\t\t\t\t\tSystem.out.println(transactions);\n//\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 4:\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder name : \" + user.getName());\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder address : \" + user.getAddress());\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Accountholder contact : \" + user.getPhone());\n\t\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t\tcase 5:\n\t\t\t\t\t\t\t\t\t\tcontinue dashbord;\n\t\t\t\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\t\t\t\tSystem.out.println(\"Wrong choice !\");\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\"wrong password\");\n\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"user name dosnt exist\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t} catch (OptionalDataException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} catch (EOFException e) {\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} finally {\n\t\t\t\t\tif (oos != null)\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\toos.close();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tSystem.out.println(\"Enter username : \");\n\t\t\t\tusername = sc.next();\n\t\t\t\tuser = bank.userMap.get(username);\n\t\t\t\tif (bank.userMap.containsKey(username)) {\n\t\t\t\t\tbank.userMap.replace(username, new User(user.getName(), user.getAddress(), user.getPhone(),\n\t\t\t\t\t\t\tuser.getName(), user.getPassword(), user.getAmount(), new Date()));\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Username doesn't exist.\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tSystem.out.println(\"\\nThank you for choosing Bank Of MyBank.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Wrong choice !\");\n\t\t\t}\n\n\t\t}\n\t}", "public OrderList(String fileName, CustomerArrayHolder customerArrayHolder) throws FileNotFoundException\n\t{\n\t\t//decides the arrays to be used for customer data for these orders NOTE: the preferredArray may contain null if it hasn't been created yet\n\t\tthis.customerArrayHolder = customerArrayHolder;\n\t\t\n\t\t//creates a scanner to traverse the file\n\t\tScanner scanner = new Scanner(new File(fileName));\n\t\t\n\t\t//Scans through entire file, appending good orders to the order list.\n\t\tboolean endOfFile = !scanner.hasNextLine();\n\t\t\n\t\twhile(!endOfFile) //scans until the file ends\n\t\t{\n\t\t\t//creates an list of strings to hold each line of the order\n\t\t\tLinkedList<String> orderLines = new LinkedList<String>();\n\t\t\t\n\t\t\t//We are at the start of an order\n\t\t\tboolean endOfOrder = false;\n\t\t\t\n\t\t\twhile(!endOfOrder && !endOfFile) //scans until the order ends or file ends\n\t\t\t{\n\t\t\t\t//file hasn't ended so grab the next line\n\t\t\t\tString currentLine = scanner.nextLine();\n\t\t\t\t\n\t\t\t\t//if the line is blank then the order is over\n\t\t\t\tif(0 == currentLine.length())\n\t\t\t\t{\n\t\t\t\t\tendOfOrder = true; //inner loop will end\n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//order isn't over, so add the current line to orderLines\n\t\t\t\t\torderLines.add(currentLine);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//checks to see if the file has ended or the order is over, in which case both loops should end\n\t\t\t\tendOfFile = !scanner.hasNextLine();\n\t\t\t}\n\t\t\t\n\t\t\t//validates the current order (orderLines) to see if each line is as expected.\n\t\t\tboolean isValid = validatePotentialOrder(orderLines);\n\t\t\t\n\t\t\tif(isValid) \n\t\t\t{\n\t\t\t\t//converts each of the fields stored as a string into the proper type to pass as parameters\n\t\t\t\tString guestID = orderLines.get(GUEST_ID_LINE_INDEX);\n\t\t\t\tchar size = Character.toUpperCase(orderLines.get(SIZE_LINE_INDEX).charAt(0)); // makes sure the char is passed as the uppercase version, if the program is not supposed to accept lowercase letters for the size, then remove the .toUpperCase conversion and edit isSizeValid()\n\t\t\t\tString drinkType = orderLines.get(DRINK_TYPE_LINE_INDEX);\n//\t\t\t\tfloat squareInchPrice = Float.parseFloat(orderLines.get(SQUARE_INCH_PRICE_LINE_INDEX));\n\t\t\t\tint quantity = Integer.parseInt(orderLines.get(QUANTITY_LINE_INDEX));\n\t\t\t\t\n\t\t\t\t//creates an order and appends it to the order list\n\t\t\t\torderList.add(new Order(guestID, size, drinkType, /*squareInchPrice,*/ quantity));\n\t\t\t}\n\t\t}\n\t\t//file should have been processed\n\t\tscanner.close();\n\t}", "CarPaymentMethod processCreditCard();", "public void startPayment() {\n double ruppes = Double.parseDouble(price);\n final Activity activity = this;\n final Checkout co = new Checkout();\n try {\n JSONObject options = new JSONObject();\n options.put(\"name\", getResources().getString(R.string.application_name));\n options.put(\"description\", \"\");\n //You can omit the image option to fetch the image from dashboard\n options.put(\"image\", getResources().getDrawable(R.mipmap.ic_app_logo));\n options.put(\"currency\", \"INR\");\n options.put(\"amount\", ruppes * 100);\n JSONObject preFill = new JSONObject();\n preFill.put(\"email\", \"multipz.paresh@gmail.com\");\n preFill.put(\"contact\", \"8758689113\");\n options.put(\"prefill\", preFill);\n co.open(activity, options);\n } catch (Exception e) {\n Toast.makeText(activity, \"Error in payment: \" + e.getMessage(), Toast.LENGTH_SHORT)\n .show();\n e.printStackTrace();\n }\n }", "String makePayment(String userName, String teamName, Payment payment) throws RemoteException, InterruptedException;", "private void parseFile(String fileName) {\n\t\ttry {\n\t\t\tBufferedReader bufferedReader = new BufferedReader(new FileReader(fileName));\n\t\t\tString line;\n\t\t\tint counter = 0;\n\t\t\tString lastMethod = null;\n\t\t\t\n\t\t\twhile ((line = bufferedReader.readLine()) != null) {\n\t\t\t\t\n\t\t\t\t// Logic for method consolidation\n\t\t\t\tif (line.contains(\"Method Call\")) {\n\t\t\t\t\tlastMethod = line.substring(line.indexOf(\"target=\")+7);\n\t\t\t\t\tlastMethod = lastMethod.substring(lastMethod.indexOf('#')+1).replace(\"\\\"\",\"\").trim();\n\t\t\t\t\tlastMethod = lastMethod + \":\" + counter++;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif (line.contains(\"Field Write\")) {\n\t\t\t\t\tString[] tokens = line.split(\",\");\n\t\t\t\t\t\n\t\t\t\t\tString object = tokens[4].substring(tokens[4].indexOf(\"=\") + 1).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString field = tokens[5].substring(0, tokens[5].indexOf(\"=\")).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString value = tokens[5].substring(tokens[5].indexOf(\"=\") + 1).replace(\"\\\"\", \"\").trim();\n\t\t\t\t\tString fld = object.replace(\"/\", \".\") + \".\" + field;\n\t\t\t\t\tevents.add(new Event(fld, value, lastMethod));\n\t\t\t\t\t\n\t\t\t\t\tallFields.add(fld);\n\t\t\t\t}\n//\t\t\t\tif (line.contains(\"Method Returned\")) {\n//\t\t\t\t\t//operations for this method ended\n//\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tbufferedReader.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void performPayment() {\n payment.executePayment(amount);\n }", "private void pay() {\r\n System.out.println(\"Customer sent payment\");\r\n }", "public Payroll(File fp,PrintWriter pwArg)throws IOException{\n pw=pwArg;\n payroll=new ObjectList();\n readFile(fp);\n }", "public Receiver(String file) {\n\t\ttry {\n\t\t\tinput = new InputDriver(file, true);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"The file, \" + file + \", isn't existed on the server.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\timg = new ImageDriver(input);\n\t\t//initialize list as a new linked list\n\t\tlist = new PacketLinkedList<SimplePacket>();\n\t}", "void fileReader(String filename) \r\n\t\t{\r\n\r\n\t\ttry (Scanner s = new Scanner(new FileReader(filename))) { \r\n\t\t while (s.hasNext()) { \r\n\t\t \tString name = s.nextLine(); // read name untill space\r\n\t\t \tString str[] = name.split(\",\");\r\n\t\t \tString nam = str[0]; \r\n\t\t \tint number = Integer.parseInt(str[1]); // read number untill space\r\n\t\t this.addContact(nam, number);\r\n\t\t\r\n\t\t }\t\t \r\n\t\t \r\n\t\t} \r\n\t\tcatch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t}", "public static void processFilesForValidation() {\r\n\t\t// Process each file one at a time.\r\n\t\tfor (int i = 0; i < inScanners.length; i++) {\r\n\t\t\tScanner sc = inScanners[i];\r\n\t\t\tint articleCount = 1;\r\n\t\t\t// Read the input file.\r\n\t\t\ttry {\r\n\t\t\t\twhile(sc.hasNextLine()) {\r\n\t\t\t\t\tString s = sc.nextLine();\r\n\t\t\t\t\t// If we come across an article, read its contents and add it to the file.\r\n\t\t\t\t\tif(s.startsWith(\"@ARTICLE{\")) {\r\n\t\t\t\t\t\tauthor = journal = title = year = volume = number = pages = doi = ISSN = month = \"\";\r\n\t\t\t\t\t\twhile (!s.equals(\"}\")) {\r\n\t\t\t\t\t\t\ts = sc.nextLine();\r\n\t\t\t\t\t\t\tparseValue(s);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Throw an exception if a field is missing.\r\n\t\t\t\t\t\tif (author.isEmpty() || journal.isEmpty() || title.isEmpty() || year.isEmpty() || volume.isEmpty() \r\n\t\t\t\t\t\t\t\t|| number.isEmpty() || pages.isEmpty() || doi.isEmpty() || ISSN.isEmpty() || month.isEmpty()) {\r\n\t\t\t\t\t\t\tthrow new FileInvalidException(\"One or more fields are missing.\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// Add the article to the file if valid.\r\n\t\t\t\t\t\tString author1 = author.replaceAll(\" and\", \",\");\r\n\t\t\t\t\t\tint andIndex = author.indexOf(\"and\");\r\n\t\t\t\t\t\tString author2 = andIndex != -1 ? author.replaceAll(author.substring(andIndex,author.length()), \"et al\") : author;\r\n\t\t\t\t\t\tString author3 = author.replaceAll(\"and\", \"&\");\r\n\t\t\t\t\r\n\t\t\t\t\t\t// IEEE\r\n\t\t\t\t\t\toutWriters[i][0].println(author1+\". \\\"\"+title+\"\\\", \"+journal+\", vol. \"+volume+\", no. \"+number+\", p. \"+pages+\", \"+month+\" \"+year+\".\\r\\n\");\r\n\t\t\t\t\t\t// ACM\r\n\t\t\t\t\t\toutWriters[i][1].println(\"[\"+articleCount+\"]\\t\"+author2+\". \"+year+\". \"+title+\". \"+journal+\". \"+volume+\", \"+number+\" (\"+year+\"), \"+pages+\". DOI:https://doi.org/\"+doi+\".\\r\\n\");\r\n\t\t\t\t\t\t// NJ\r\n\t\t\t\t\t\toutWriters[i][2].println(author3+\". \"+title+\". \"+journal+\". \"+volume+\", \"+pages+\"(\"+year+\").\\r\\n\");\r\n\t\t\t\t\t\tarticleCount++;\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\t// Close output writers once file has been read.\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t}\r\n\t\t\t\tnumValidFiles++;\r\n\t\t\t}\r\n\t\t\t// If file is invalid, close and delete the output files.\r\n\t\t\tcatch (FileInvalidException e) {\r\n\t\t\t\tSystem.out.println(\"Error: Detected Empty Field!\" \r\n\t\t\t\t\t\t + \"\\n============================\"\r\n\t\t\t + \"\\nProblem detected with input file: Latex\" + (i + 1) + \".bib\"\r\n\t\t\t\t\t\t + \"\\nFile is invalid: \" + e.getMessage() + \" Processing stopped at this point. \"\r\n\t\t\t\t\t\t + \"Other empty/missing fields may be present as well.\\n\");\r\n\t\t\t\tfor (int j = 0; j < 3; j++) {\r\n\t\t\t\t\toutWriters[i][j].close();\r\n\t\t\t\t\toutFiles[i][j].delete();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Close input file after reading.\r\n\t\t\tsc.close();\r\n\t\t}\r\n\t}", "public static void doProcessPayment(FIN_Payment payment, String strAction, String paymentDate,\n String comingFrom) throws OBException {\n FIN_PaymentProcess fpp = WeldUtils.getInstanceFromStaticBeanManager(FIN_PaymentProcess.class);\n fpp.processPayment(payment, strAction, paymentDate, comingFrom, null, true);\n }", "void pay(Payment payment) {\n\n\t}", "private void ccprocess() {\n\t\tProgramGUI.this.dispose();\n\t\tframe.dispose();\n\t\ttry {\n\t\t\tif(isTillOpen) {\n\t\t\t\tframe = new JFrame(\"Process Payment: Credit Card\");\n\t\t\t\tframe.setSize(390, 175);\n\t\t\t\tframe.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\t\t\tframe.setLocationRelativeTo(null);\n\t\t\t\tJPanel panel = new JPanel();\n\t\t\t\tpanel.setLayout(new GridLayout(4, 2));\n\t\t\t\tpanel.add(new JLabel(\"Purchase amount: \"));\n\t\t\t\tpurch = new JTextField();\n\t\t\t\tpanel.add(purch);\n\t\t\t\tpanel.add(new JLabel(\"Enter card number: \"));\n\t\t\t\tcard = new JTextField();\n\t\t\t\tpanel.add(card);\n\t\t\t\tpanel.add(new JLabel(\"Enter the expiry (MM/YYYY): \"));\n\t\t\t\texpiry = new JTextField();\n\t\t\t\tpanel.add(expiry);\n\t\t\t\tpanel.add(new JLabel(\"Enter the CVV: \"));\n\t\t\t\tcvv = new JTextField();\n\t\t\t\tpanel.add(cvv);\n\t\t\t\tpanel.setBorder(BorderFactory.createEmptyBorder(10, 10, 0, 10));\n\t\t\t\tframe.add(panel, BorderLayout.NORTH);\n\t\t\t\tJPanel button = new JPanel();\n\t\t\t\tJButton confirm = new JButton(\"Confirm Payment\");\n\t\t\t\tJButton cancel = new JButton(\"Cancel\");\n\t\t\t\tcancel.addActionListener(new ButtonListener());\n\t\t\t\tconfirm.addActionListener(new ccListener());\n\t\t\t\tbutton.add(confirm);\n\t\t\t\tbutton.add(cancel);\n\t\t\t\tframe.add(button, BorderLayout.SOUTH);\n\t\t\t\tframe.setVisible(true);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new TillNotOpenException();\n\t\t\t}\n\t\t} catch(TillNotOpenException e) {\n\t\t\tnew ProgramGUI();\n\t\t}\n\t}", "public static void fileRead(String fileName) {\n //System.out.println(\"in file read\");\n String typeProduct, idProduct, nameProduct, priceProduct, yearProduct, authorsProduct, publisherProduct, makerProduct;\n\n Scanner inputStream = null;\n try {\n inputStream = new Scanner(new FileInputStream(fileName));\n } catch (FileNotFoundException e) {\n System.out.println(\"the file was not there\");\n }\n String fileLine = null;\n while (inputStream.hasNextLine()) {\n fileLine = inputStream.nextLine();\n //System.out.println(fileLine);\n\n if (fileLine.contains(\"type\") && fileLine.length() != 0) {\n //System.out.println(\"Type statement\");\n typeProduct = fileLine.substring(8, fileLine.length() - 1); //this creates a substring from the file that has the product type. it lets you have the product type without quotes.\n //System.out.println(typeProduct);\n\n //parse productId\n fileLine = inputStream.nextLine();\n idProduct = fileLine.substring(13, fileLine.length() - 1);\n //System.out.println(\"id product\");\n //System.out.println(idProduct);\n\n //now parsing name\n fileLine = inputStream.nextLine();\n //System.out.println(\"now parsing name\");\n nameProduct = fileLine.substring(8, fileLine.length() - 1);\n //System.out.println(\"name Product\");\n //System.out.println(nameProduct);\n\n //now parsing price\n fileLine = inputStream.nextLine();\n priceProduct = fileLine.substring(9, fileLine.length() - 1);\n //System.out.println(priceProduct);\n Double priceProductDouble = 0.0;\n try {\n priceProductDouble = Double.parseDouble(priceProduct);\n } catch (NumberFormatException e) {\n System.out.println(\"invalid price format\");\n }\n //System.out.println(priceProductDouble);\n\n //now parsing year\n fileLine = inputStream.nextLine();\n yearProduct = fileLine.substring(8, fileLine.length() - 1);\n //System.out.println(yearProduct);\n int yearProductInt = 0;\n try {\n yearProductInt = Integer.parseInt(yearProduct);\n } catch (NumberFormatException e) {\n System.out.println(\"invalid year in the file\");\n }\n\n if (typeProduct.equalsIgnoreCase(\"book\")) {\n //System.out.println(\"this is book\");\n\n //now parsing authors\n fileLine = inputStream.nextLine();\n authorsProduct = fileLine.substring(11, fileLine.length() - 1);\n //System.out.println(priceProduct);\n\n //now parsing publlishers\n fileLine = inputStream.nextLine();\n publisherProduct = fileLine.substring(13, fileLine.length() - 1);\n //System.out.println(publisherProduct);\n try{\n Product addProduct = new Book(idProduct, nameProduct, yearProductInt, priceProductDouble, authorsProduct, publisherProduct);\n \n productList.add(addProduct);\n \n nameProduct = nameProduct.toLowerCase();\n \n addToMap(nameProduct);\n \n } catch (Exception error){\n System.out.println(error.getMessage());\n ProductGUI.Display(error.getMessage() + \"\\n\");\n }\n \n\n } else if (typeProduct.equalsIgnoreCase(\"electronics\")) {\n //System.out.println(\"electronic\");\n //now parsing publlishers\n fileLine = inputStream.nextLine();\n makerProduct = fileLine.substring(9, fileLine.length() - 1);\n //System.out.println(makerProduct);\n \n try{\n Product addProduct = new Electronics(idProduct, nameProduct, yearProductInt, priceProductDouble, makerProduct);\n productList.add(addProduct);\n nameProduct = nameProduct.toLowerCase();\n addToMap(nameProduct);\n }catch(Exception error){\n System.out.println(error.getMessage());\n ProductGUI.Display(error.getMessage() + \"\\n\");\n }\n \n }\n\n }\n\n }\n System.out.println(\"Reading File: Successful\");\n }", "String process(File file) throws LocalizedSignatureException;", "public void setPaymentFileEmailService(PdpEmailService paymentFileEmailService) {\r\n this.paymentFileEmailService = paymentFileEmailService;\r\n }", "public CheckingMails(String proportyFile) {\n\t\tthis.propertyFile = proportyFile;\n\t\tloadProperties(this.propertyFile);\n\t\tsc = new Scanner(System.in);\n\t}", "public void validateLicense()\n{\n\n getMACAddress(); //debug mks -- just displays for testing\n\n File license = new File(licenseFilename);\n\n //if the license file does not exist then, request renewal code\n // the program will be aborted if proper renewal code is not supplied\n if (!license.exists()) {requestLicenseRenewal(true);}\n\n //if the license file is invalid or the date has expired, request renewal\n //code the program will be aborted if proper renewal code is not supplied\n if (!validateLicenseFile()) {requestLicenseRenewal(true);}\n\n}", "public void readRecord() {\n\t\ttry {\n\t\t\tScanner scan = new Scanner(recordFile);\n\t\t\tString temp = \"\";\n\t\t\tboolean foundAddress = false;\n\t\t\twhile(scan.hasNextLine()) {\n\t\t\t\tString member = scan.nextLine();\n\t\t\t\tScanner sc = new Scanner(member);\n\t\t\t\tString keyword, param;\n\t\t\t\tif(sc.hasNext()) {\n\t\t\t\t\tkeyword = sc.next();\n\t\t\t\t\t\n\t\t\t\t\tif(keyword.equalsIgnoreCase(\"address\")) {\n\t\t\t\t\t\tfoundAddress = true;\n\t\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\t\tparam = sc.nextLine();\n\t\t\t\t\t\t\ttemp = temp + \"; \" + keyword.toLowerCase() + \" \" + param;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\telse if(keyword.equalsIgnoreCase(\"name\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"birthday\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"postcode\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"phone\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"recipient\")\n\t\t\t\t\t\t\t|| keyword.equalsIgnoreCase(\"donation\")) {\n\t\t\t\t\t\tfoundAddress = false;\n\t\t\t\t\t\tif(sc.hasNextLine()) {\n\t\t\t\t\t\t\tparam = sc.nextLine();\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttemp = temp + \"; \" + keyword.toLowerCase() + \" \" + param;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// if found extended address in a new line\n\t\t\t\t\tif(!keyword.equalsIgnoreCase(\"address\") \n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"name\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"birthday\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"postcode\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"phone\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"recipient\")\n\t\t\t\t\t\t\t&& !keyword.equalsIgnoreCase(\"donation\")\n\t\t\t\t\t\t\t&& foundAddress) {\n\t\t\t\t\t\ttemp = temp + \" \" + keyword;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(member.equals(\"\") || !scan.hasNextLine()) {\n\t\t\t\t\trecord.addDonator(temp);\n\t\t\t\t\ttemp = \"\";\n\t\t\t\t}\n\t\t\t\tsc.close();\n\t\t\t} \n\t\t\tscan.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic static void readUserFile() {\n\t\ttry {\n\t\t\tObjectInputStream readFile = new ObjectInputStream(new FileInputStream(userFile));\n\t\t\tVerify.userList = (ArrayList<User>) readFile.readObject();\n\t\t\treadFile.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t//add contents of file to separate lists\n\t\tfor (int i=0; i<Verify.userList.size(); i++) {\n\t\t\tVerify.userIds.add(Verify.userList.get(i).getUserId());\n\t\t\tVerify.usernames.add(Verify.userList.get(i).getUsername());\n\t\t\tif (Verify.userList.get(i).getAccounts() != null) {\n\t\t\t\tVerify.accountList.addAll(Verify.userList.get(i).getAccounts());\n\t\t\t}\n\t\t\tif (Verify.userList.get(i).getRequests() != null) {\n\t\t\t\tVerify.requestList.addAll(Verify.userList.get(i).getRequests());\t\n\t\t\t}\n\t\t}\n\t\tfor (Account account: Verify.accountList) {\n\t\t\tVerify.accountIds.add(account.getAccountId());\n\t\t}\n\t}", "private void processXMLFile( File xmlFile ) throws SAXException, IOException, ParserConfigurationException {\r\n\t\t\r\n\t\t//parse the uploaded xml file\r\n\t\tDocumentBuilderFactory domFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\r\n\t\tdomFactory.setValidating(false);\r\n\t\tdomFactory.setIgnoringComments(true);\r\n\t\t\r\n\t\tDocumentBuilder docBuilder = domFactory.newDocumentBuilder();\r\n\t\t\t\r\n\t\tDocument doc = docBuilder.parse(xmlFile);\r\n\t\t\t\t\r\n\t\tElement employeesNode = doc.getDocumentElement();\r\n\t\t\r\n\t\tNodeList employees = employeesNode.getElementsByTagName(\"Employee\");\r\n\t\t\r\n\t\tLogger.debug(\"found \" + employees.getLength() + \" employees in xml document\");\r\n\t\t\r\n\t\tfor (int i=0; i<employees.getLength(); i++ ) {\r\n\t\t\t\r\n\t\t\tHashMap<String,String> contactObject = new HashMap<String,String>();\r\n\t\t\t\r\n\t\t\tElement employee = (Element) employees.item(i);\r\n\t\t\t\r\n\t\t\tcontactObject.put( \"id\", employee.getAttribute(\"id\") );\r\n\t\t\tcontactObject.put( \"givenname\", ContactsImport.getXmlChildNodeValue( employee, \"GivenName\") );\r\n\t\t\tcontactObject.put( \"sn\", ContactsImport.getXmlChildNodeValue( employee, \"SurName\") );\r\n\t\t\tcontactObject.put( \"title\", ContactsImport.getXmlChildNodeValue( employee, \"JobTitle\") );\r\n\t\t\tcontactObject.put( \"mail\", ContactsImport.getXmlChildNodeValue( employee, \"EmailAddress\") );\r\n\t\t\tcontactObject.put( \"telephonenumber\", ContactsImport.getXmlChildNodeValue( employee, \"PhoneNumber\") );\r\n\t\t\t\r\n\t\t\tcreateContact(contactObject);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tpublic List<PlanItem> validateUploadFile(String filePath,\n\t\t\tBigDecimal oneMoney, int multiple, BigDecimal totalMoney)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "private void parseXMLResult(String respFile, ProcureLineItem pli,\r\n\t\t\tApprovalRequest ar, BaseVector lineItems, Approvable lic)\r\n\t\t\tthrows SAXException, ParserConfigurationException, IOException {\r\n\t\tLog.customer.debug(\"After calling getVertexTaxResponse()...: %s\",\r\n\t\t\t\t\"CatTaxCustomApprover response file before parsing : - %s\",\r\n\t\t\t\tclassName, respFile);\r\n\t\t// Parsing XML and populating field in Ariba.....\r\n\t\tlic = ar.getApprovable();\r\n\t\tLog.customer.debug(\" Parsing XML file ...........: %s\", className);\r\n\t\tFile file1 = new File(respFile);\r\n\t\tDocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();\r\n\t\tDocumentBuilder db = dbf.newDocumentBuilder();\r\n\t\tDocument doc = db.parse(file1);\r\n\t\t// if(respFile!=null){\r\n\t\tdoc.getDocumentElement().normalize();\r\n\t\tNodeList nodeList = doc.getElementsByTagName(\"LineItem\");\r\n\t\tLog.customer.debug(\"%s Information of all Line Item nodeList %s\",\r\n\t\t\t\tclassName, nodeList.getLength());\r\n\r\n\t\tfor (int s = 0; s < nodeList.getLength(); s++) {\r\n\t\t\tNode fstNode = nodeList.item(s);\r\n\t\t\tElement fstElmntlnm = (Element) fstNode;\r\n\t\t\tString lineItemNumber = fstElmntlnm.getAttribute(\"lineItemNumber\");\r\n\t\t\tint index = Integer.parseInt(lineItemNumber);\r\n\t\t\ttry {\r\n\t\t\t\tint plinumber = index - 1;\r\n\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\"%s *** lineItemNumber plinumber after: %s\",\r\n\t\t\t\t\t\tclassName, plinumber);\r\n\t\t\t\tpli = (ProcureLineItem) lineItems.get(plinumber);\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tLog.customer.debug(\"%s *** in catch of pli : %s\", className,\r\n\t\t\t\t\t\tlineItemNumber + \" ******** \" + e.toString());\r\n\t\t\t\tLog.customer.debug(pli.toString());\r\n\t\t\t\tLog.customer.debug(e.getClass());\r\n\t\t\t}\r\n\t\t\tif (fstNode.getNodeType() == Node.ELEMENT_NODE) {\r\n\r\n\t\t\t\tElement fstElmnt = (Element) fstNode;\r\n\t\t\t\tNodeList countryElmntLst = fstElmnt\r\n\t\t\t\t\t\t.getElementsByTagName(\"Country\");\r\n\t\t\t\tElement lstNmElmnt = (Element) countryElmntLst.item(0);\r\n\t\t\t\tNodeList lstNm = lstNmElmnt.getChildNodes();\r\n\t\t\t\tLog.customer.debug(\"%s *** Country : %s\", className,\r\n\t\t\t\t\t\t((Node) lstNm.item(0)).getNodeValue());\r\n\r\n\t\t\t\t// Total Tax\r\n\t\t\t\tNodeList totaltaxElmntLst = fstElmnt\r\n\t\t\t\t\t\t.getElementsByTagName(\"TotalTax\");\r\n\t\t\t\tElement lstNmElmnt1 = (Element) totaltaxElmntLst.item(0);\r\n\t\t\t\tNodeList lstNm1 = lstNmElmnt1.getChildNodes();\r\n\t\t\t\tString totalTax = ((Node) lstNm1.item(0)).getNodeValue();\r\n\t\t\t\tBigDecimal taxAmount = new BigDecimal(totalTax);\r\n\t\t\t\tMoney taxTotal = new Money(taxAmount, pli.getAmount()\r\n\t\t\t\t\t\t.getCurrency());\r\n\t\t\t\tpli.setFieldValue(\"TaxAmount\", taxTotal);\r\n\t\t\t\tLog.customer.debug(\"%s *** Tax Amount : %s\", className,\r\n\t\t\t\t\t\ttotalTax);\r\n\r\n\t\t\t\t// Reason code\r\n\t\t\t\tElement fstElmntRC = (Element) fstNode;\r\n\t\t\t\tNodeList lstNmElmntLstRC = fstElmntRC\r\n\t\t\t\t\t\t.getElementsByTagName(\"AssistedParameter\");\r\n\t\t\t\tString ReasonCode = \" \";\r\n\t\t\t\tfor (int b = 0; b < lstNmElmntLstRC.getLength(); b++) {\r\n\t\t\t\t\tNode fstNodeRC = lstNmElmntLstRC.item(b);\r\n\t\t\t\t\tif (fstNodeRC.getNodeType() == Node.ELEMENT_NODE) {\r\n\t\t\t\t\t\tElement fstElmntRC1 = (Element) fstNodeRC;\r\n\t\t\t\t\t\tString fieldIdRC = fstElmntRC1.getAttribute(\"phase\");\r\n\t\t\t\t\t\tLog.customer.debug(\"%s *** ReasonCode in loop : \"\r\n\t\t\t\t\t\t\t\t+ fieldIdRC);\r\n\t\t\t\t\t\tif (\"POST\".equalsIgnoreCase(fieldIdRC)) {\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tElement lstNmElmntRC = (Element) lstNmElmntLstRC\r\n\t\t\t\t\t\t\t\t\t\t.item(0);\r\n\t\t\t\t\t\t\t\tif (lstNmElmntRC.equals(null)\r\n\t\t\t\t\t\t\t\t\t\t|| lstNmElmntRC.equals(\"\")) {\r\n\t\t\t\t\t\t\t\t\tReasonCode = \"\";\r\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\t\t\t\t\t\"%s *** ReasonCode in if : %s\",\r\n\t\t\t\t\t\t\t\t\t\t\tclassName, ReasonCode);\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tNodeList lstNmRC = lstNmElmntRC\r\n\t\t\t\t\t\t\t\t\t\t\t.getChildNodes();\r\n\t\t\t\t\t\t\t\t\tReasonCode = ((Node) lstNmRC.item(0))\r\n\t\t\t\t\t\t\t\t\t\t\t.getNodeValue();\r\n\t\t\t\t\t\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\t\t\t\t\t\"%s *** ReasonCode in else : %s\",\r\n\t\t\t\t\t\t\t\t\t\t\tclassName, ReasonCode);\r\n\t\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\t} catch (NullPointerException e) {\r\n\t\t\t\t\t\t\t\tLog.customer.debug(\r\n\t\t\t\t\t\t\t\t\t\t\"%s *** inside exception : %s\",\r\n\t\t\t\t\t\t\t\t\t\tclassName);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t/*****************************************/\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tLog.customer.debug(\"inside loop still....\");\r\n\t\t\t\t}\r\n\t\t\t\tLog.customer.debug(\"outside loop .....\");\r\n\t\t\t\t// *********************************************************************************\r\n\t\t\t\t// TaxAmount = 0 and Reason code = Null then exempt Reason code\r\n\t\t\t\t// is E0.\r\n\r\n\t\t\t\t// Start : RSD 111 (FRD4.0/TD 1.2)\r\n\r\n\t\t\t\tString sapsource = null;\r\n\t\t\t\tsapsource = (String)pli.getLineItemCollection().getDottedFieldValue(\"CompanyCode.SAPSource\");\r\n\r\n\t\t\t\tLog.customer.debug(\"*** ReasonCode logic RSD111 SAPSource is: %s\",sapsource);\r\n\r\n\t\t\t\tif((sapsource.equals(\"MACH1\")) && ((ReasonCode != null) && (!\"\"\r\n\t\t\t\t\t\t.equals(ReasonCode))))\r\n\t\t\t\t{\r\n\t\t\t\t\t/** Fetching Description from Table. */\r\n\t\t\t\t\tLog.customer.debug(\"*** ReasonCode logic RSD111: \" + ReasonCode);\r\n\t\t\t\t\tString taxCodeForLookup = ReasonCode; // Please Replace with\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the Actual value\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from Web Service\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Response.\r\n\t\t\t\t\tString qryStringrc = \"Select TaxExemptDescription from cat.core.TaxExemptReasonCode where TaxExemptUniqueName = '\"\r\n\t\t\t\t\t\t\t+ taxCodeForLookup + \"'\";\r\n\t\t\t\t\tLog.customer.debug(\"%s TaxExemptReasonCode : qryString \"\r\n\t\t\t\t\t\t\t+ qryStringrc);\r\n\t\t\t\t\t// Replace the cntrctrequest - Invoice Reconciliation Object\r\n\t\t\t\t\tAQLOptions queryOptionsrc = new AQLOptions(ar\r\n\t\t\t\t\t\t\t.getPartition());\r\n\t\t\t\t\tAQLResultCollection queryResultsrc = Base.getService()\r\n\t\t\t\t\t\t\t.executeQuery(qryStringrc, queryOptionsrc);\r\n\t\t\t\t\tif (queryResultsrc != null) {\r\n\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t.debug(\" RSD111 -- TaxExemptReasonCode: Query Results not null\");\r\n\t\t\t\t\t\twhile (queryResultsrc.next()) {\r\n\t\t\t\t\t\t\tString taxdescfromLookupvalue = (String) queryResultsrc\r\n\t\t\t\t\t\t\t\t\t.getString(0);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" RSD111 TaxExemptReasonCode: taxdescfromLookupvalue = \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t\t// Change the rli to appropriate Carrier Holding\r\n\t\t\t\t\t\t\t// object, i.e. IR Line object\r\n\t\t\t\t\t\t\tif (\"\".equals(taxdescfromLookupvalue)\r\n\t\t\t\t\t\t\t\t\t|| taxdescfromLookupvalue == null\r\n\t\t\t\t\t\t\t\t\t|| \"null\".equals(taxdescfromLookupvalue)) {\r\n\t\t\t\t\t\t\t\t// if(taxdescfromLookupvalue.equals(\"\")||taxdescfromLookupvalue\r\n\t\t\t\t\t\t\t\t// ==\r\n\t\t\t\t\t\t\t\t// null||taxdescfromLookupvalue.equals(\"null\")\r\n\t\t\t\t\t\t\t\t// ){\r\n\t\t\t\t\t\t\t\ttaxdescfromLookupvalue = \"\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tpli\r\n\t\t\t\t\t\t\t\t\t.setFieldValue(\"Carrier\",\r\n\t\t\t\t\t\t\t\t\t\t\ttaxdescfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" RSD111 -- TaxExemptReasonCode Applied on Carrier: \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// End : RSD 111 (FRD4.0/TD 1.2)\r\n\r\n\r\n\t\t\t\t} else if ((\"0.0\".equals(totalTax) && ((ReasonCode == null) || (\"\"\r\n\t\t\t\t\t\t.equals(ReasonCode))))) {\r\n\t\t\t\t\tReasonCode = \"E0\";\r\n\t\t\t\t\tLog.customer.debug(\"*** ReasonCode in condition : %s\",\r\n\t\t\t\t\t\t\tclassName, ReasonCode);\r\n\t\t\t\t} else if ((\"0.0\".equals(totalTax) && ((ReasonCode != null) || (!\"\"\r\n\t\t\t\t\t\t.equals(ReasonCode))))) {\r\n\r\n\t\t\t\t\t// End Exempt Reason code logic.\r\n\t\t\t\t\t/** Fetching Description from Table. */\r\n\t\t\t\t\tLog.customer.debug(\"*** ReasonCode after : \" + ReasonCode);\r\n\t\t\t\t\tString taxCodeForLookup = ReasonCode; // Please Replace with\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// the Actual value\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// from Web Service\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Response.\r\n\t\t\t\t\tString qryStringrc = \"Select TaxExemptDescription from cat.core.TaxExemptReasonCode where TaxExemptUniqueName = '\"\r\n\t\t\t\t\t\t\t+ taxCodeForLookup + \"'\";\r\n\t\t\t\t\tLog.customer.debug(\"%s TaxExemptReasonCode : qryString \"\r\n\t\t\t\t\t\t\t+ qryStringrc);\r\n\t\t\t\t\t// Replace the cntrctrequest - Invoice Reconciliation Object\r\n\t\t\t\t\tAQLOptions queryOptionsrc = new AQLOptions(ar\r\n\t\t\t\t\t\t\t.getPartition());\r\n\t\t\t\t\tAQLResultCollection queryResultsrc = Base.getService()\r\n\t\t\t\t\t\t\t.executeQuery(qryStringrc, queryOptionsrc);\r\n\t\t\t\t\tif (queryResultsrc != null) {\r\n\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t.debug(\" TaxExemptReasonCode: Query Results not null\");\r\n\t\t\t\t\t\twhile (queryResultsrc.next()) {\r\n\t\t\t\t\t\t\tString taxdescfromLookupvalue = (String) queryResultsrc\r\n\t\t\t\t\t\t\t\t\t.getString(0);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" TaxExemptReasonCode: taxdescfromLookupvalue = \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t\t// Change the rli to appropriate Carrier Holding\r\n\t\t\t\t\t\t\t// object, i.e. IR Line object\r\n\t\t\t\t\t\t\tif (\"\".equals(taxdescfromLookupvalue)\r\n\t\t\t\t\t\t\t\t\t|| taxdescfromLookupvalue == null\r\n\t\t\t\t\t\t\t\t\t|| \"null\".equals(taxdescfromLookupvalue)) {\r\n\t\t\t\t\t\t\t\t// if(taxdescfromLookupvalue.equals(\"\")||taxdescfromLookupvalue\r\n\t\t\t\t\t\t\t\t// ==\r\n\t\t\t\t\t\t\t\t// null||taxdescfromLookupvalue.equals(\"null\")\r\n\t\t\t\t\t\t\t\t// ){\r\n\t\t\t\t\t\t\t\ttaxdescfromLookupvalue = \"\";\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tpli\r\n\t\t\t\t\t\t\t\t\t.setFieldValue(\"Carrier\",\r\n\t\t\t\t\t\t\t\t\t\t\ttaxdescfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" TaxExemptReasonCode Applied on Carrier: \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxdescfromLookupvalue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// End Exempt Reason code logic.\r\n\r\n\t\t\t\t// *****************************************************************************//*\r\n\t\t\t\t// tax code logic ...\r\n\t\t\t\tif (totalTax.equals(\"0.0\")) {\r\n\t\t\t\t\tString companyCode = (String) lic\r\n\t\t\t\t\t\t\t.getDottedFieldValue(\"CompanyCode.UniqueName\");\r\n\t\t\t\t\tString state = (String) pli\r\n\t\t\t\t\t\t\t.getDottedFieldValue(\"ShipTo.State\");\r\n\t\t\t\t\tString formattedString = companyCode + \"_\" + state + \"_\"\r\n\t\t\t\t\t\t\t+ \"B0\";\r\n\t\t\t\t\tLog.customer.debug(\"***formattedString : \"\r\n\t\t\t\t\t\t\t+ formattedString);\r\n\t\t\t\t\tString qryString = \"Select TaxCode,UniqueName, SAPTaxCode from ariba.tax.core.TaxCode where UniqueName = '\"\r\n\t\t\t\t\t\t\t+ formattedString\r\n\t\t\t\t\t\t\t+ \"' and Country.UniqueName ='\"\r\n\t\t\t\t\t\t\t+ pli\r\n\t\t\t\t\t\t\t\t\t.getDottedFieldValue(\"ShipTo.Country.UniqueName\")\r\n\t\t\t\t\t\t\t+ \"'\";\r\n\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: qryString \"\r\n\t\t\t\t\t\t\t\t\t+ qryString);\r\n\t\t\t\t\tAQLOptions queryOptions = new AQLOptions(ar.getPartition());\r\n\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage I\");\r\n\t\t\t\t\tAQLResultCollection queryResults = Base.getService()\r\n\t\t\t\t\t\t\t.executeQuery(qryString, queryOptions);\r\n\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage II- Query Executed\");\r\n\t\t\t\t\tif (queryResults != null) {\r\n\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage III - Query Results not null\");\r\n\t\t\t\t\t\twhile (queryResults.next()) {\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination: REQUISITION - Stage IV - Entering the DO of DO-WHILE\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ queryResults.getBaseId(0).get());\r\n\t\t\t\t\t\t\tTaxCode taxfromLookupvalue = (TaxCode) queryResults\r\n\t\t\t\t\t\t\t\t\t.getBaseId(0).get();\r\n\t\t\t\t\t\t\tLog.customer.debug(\" taxfromLookupvalue\"\r\n\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: TaxCodefromLookup\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t\t// Set the Value of LineItem.TaxCode.UniqueName =\r\n\t\t\t\t\t\t\t// 'formattedString'\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: Setting TaxCodefromLookup\"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t\tpli.setFieldValue(\"TaxCode\", taxfromLookupvalue);\r\n\t\t\t\t\t\t\tLog.customer\r\n\t\t\t\t\t\t\t\t\t.debug(\" CatMSCTaxCodeDetermination : REQUISITION: Applied \"\r\n\t\t\t\t\t\t\t\t\t\t\t+ taxfromLookupvalue);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t// end Tax code...\r\n\t\t\t\tLog.customer.debug(\"*** After loop Tax code : \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t// }\r\n\t}", "private boolean parseInput(String fileName)\n {\n try\n {\n Scanner in = new Scanner(new File(fileName));\n\n this.numIntxns = in.nextInt();\n this.roads = new Road[in.nextInt()];\n this.cities = new City[in.nextInt()];\n\n for (int i = 0; i < this.roads.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.roads[i] = new Road(start, end, length);\n }\n\n for (int i = 0; i < this.cities.length; i++)\n {\n int intersectionNum = in.nextInt();\n String name = in.next();\n\n this.cities[i] = new City(intersectionNum, name);\n }\n\n if (in.hasNextInt())\n {\n this.signs = new Sign[in.nextInt()];\n }\n\n for (int i = 0; i < this.signs.length; i++)\n {\n int start = in.nextInt();\n int end = in.nextInt();\n double length = in.nextDouble();\n\n this.signs[i] = new Sign(start, end, length);\n }\n }\n // lazy catch statement because computer science is hard\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n \n APIContext apiContext = null;\n String accessToken = null;\n HttpSession session = request.getSession(); \n \n try {\n accessToken = GenerateAccessToken.getAccessToken();\n\n apiContext = new APIContext(accessToken);\n\n if (request.getParameter(\"PayerID\") != null) {\n \n Payment payment = new Payment();\n payment.setId((String) session.getAttribute(\"paymentId\"));\n\n PaymentExecution paymentExecution = new PaymentExecution();\n paymentExecution.setPayerId(request.getParameter(\"PayerID\"));\n payment.execute(apiContext, paymentExecution);\n \n payment = Payment.get(accessToken, payment.getId());\n \n String transactionStatus = \"created\";\n \n if (!payment.getTransactions().isEmpty()) {\n if (!payment.getTransactions().get(0).getRelatedResources().isEmpty()) {\n transactionStatus = payment.getTransactions().get(0).getRelatedResources().get(0).getSale().getState();\n LOGGER.log(Level.INFO, \"Transaction details: \" + payment.getTransactions().get(0).getRelatedResources().get(0).getSale().getState());\n }\n }\n \n if (transactionStatus.equals(\"completed\")) {\n if (this.releaseCandies()) {\n request.setAttribute(\"response\", \"{status: success!}\");\n } else {\n request.setAttribute(\"error\", \"{status: candies don't released!}\");\n }\n } else {\n request.setAttribute(\"error\", \"{status: payment wasn't completed!}\");\n }\n \n }\n \n } catch (PayPalRESTException e) {\n LoggingManager.debug(PayPalPostSale.class, e.getLocalizedMessage());\n request.setAttribute(\"error\", e.getMessage());\n }\n \n request.getRequestDispatcher(\"response.jsp\").forward(request, response);\n }", "private void handleRetr(String file) {\n File f = new File(currDirectory + fileSeparator + file);\n\n if (!f.exists()) {\n sendMsgToClient(\"550 File does not exist\");\n }\n\n else {\n\n // Binary mode\n if (transferMode == transferType.BINARY) {\n BufferedOutputStream fout = null;\n BufferedInputStream fin = null;\n\n sendMsgToClient(\"150 Opening binary mode data connection for requested file \" + f.getName());\n\n try {\n // create streams\n fout = new BufferedOutputStream(dataConnection.getOutputStream());\n fin = new BufferedInputStream(new FileInputStream(f));\n } catch (Exception e) {\n debugOutput(\"Could not create file streams\");\n }\n\n debugOutput(\"Starting file transmission of \" + f.getName());\n\n // write file with buffer\n byte[] buf = new byte[1024];\n int l = 0;\n try {\n while ((l = fin.read(buf, 0, 1024)) != -1) {\n fout.write(buf, 0, l);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n // close streams\n try {\n fin.close();\n fout.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n\n debugOutput(\"Completed file transmission of \" + f.getName());\n\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n\n }\n\n // ASCII mode\n else {\n sendMsgToClient(\"150 Opening ASCII mode data connection for requested file \" + f.getName());\n\n BufferedReader rin = null;\n PrintWriter rout = null;\n\n try {\n rin = new BufferedReader(new FileReader(f));\n rout = new PrintWriter(dataConnection.getOutputStream(), true);\n\n } catch (IOException e) {\n debugOutput(\"Could not create file streams\");\n }\n\n String s;\n\n try {\n while ((s = rin.readLine()) != null) {\n rout.println(s);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n try {\n rout.close();\n rin.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n }\n\n }\n closeDataConnection();\n\n }", "public void file ( Receipt receipt){\r\n\t\t\treciptlist.add(receipt);\r\n\t\t}", "public GeneSplicerParser(String filepath) throws FileNotFoundException, IOException {\n // initialize the lists\n this();\n\n // read in the file\n BufferedReader br = new BufferedReader(new FileReader(filepath));\n for(String line = br.readLine(); line != null; line = br.readLine()) {\n // parse the line\n GeneSplicerEntry entry = new GeneSplicerEntry(line);\n\n // add the entry to the appropriate list\n if(entry.type == GeneSplicerEntry.Type.Acceptor) {\n acceptors.add(entry.start);\n } else {\n donors.add(entry.start);\n }\n }\n }", "@SuppressWarnings(\"AccessingNonPublicFieldOfAnotherObject\")\n\t// Accessing final fields of a private inner class that is not exported\n\tprivate void processFile(boolean initial)\n\t{\n\t\tlog(Level.INFO, \"Processing MOTD file \" + f.getPath());\n\t\tBufferedReader in = null;\n\t\tMessage curr = null;\n\t\tfinal LinkedList<Message> stack = new LinkedList<Message>();\n\n\t\ttry\n\t\t{\n\t\t\tin = new BufferedReader(new FileReader(f));\n\n\t\t\twhile (in.ready())\n\t\t\t{\n\t\t\t\tString line = in.readLine().trim();\n\n\t\t\t\tif (line.charAt(0) == '#') continue;\n\t\t\t\tif (line.equals(\"[Message]\"))\n\t\t\t\t{\n\t\t\t\t\tif (curr != null) stack.push(curr);\n\t\t\t\t\tcurr = new Message();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tif (curr == null) continue;\n\t\t\t\tint div = line.indexOf('=');\n\t\t\t\tif (div == -1) continue;\n\n\t\t\t\tString field = line.substring(0,div).toLowerCase();\n\t\t\t\tString value = line.substring(div+1);\n\n\t\t\t\tif (field.equals(\"id\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.id = Integer.parseInt(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (initial) continue; // We only care for ids in initial pass\n\t\t\t\tif (field.equals(\"active\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.active = Boolean.valueOf(value);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"title\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.title = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"short\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mshort = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"long\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.mlong = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"from\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.from = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"to\"))\n\t\t\t\t{\n//\t\t\t\t\tcurr.to = new Date(value).getTime();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"posterid\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_uid = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"postername\"))\n\t\t\t\t{\n\t\t\t\t\tcurr.poster_name = value;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tif (field.equals(\"showunix\")) continue;\n\n\t\t\t\tlog(Level.WARNING, \"Unknown Field '\" + field + \"'\");\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ex)\n\t\t{\n\t\t\tlog(Level.WARNING, ex);\n\t\t}\n\t\tcatch (Throwable ex)\n\t\t{\n\t\t\tlog(Level.SEVERE, ex.getMessage());\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tin.close();\n\t\t\t}\n\t\t\tcatch (IOException ex)\n\t\t\t{\n\t\t\t}\n\t\t}\n\n\t\tif (curr != null) stack.push(curr);\n\t\tlastModified = f.lastModified();\n\n\t\tif (initial)\n\t\t{\n\t\t\tif (stack.size() > 0) lastId = stack.getLast().id;\n\t\t\treturn;\n\t\t}\n\t\tfor (Message m : stack)\n\t\t{\n\t\t\tif (m.id > lastId)\n\t\t\t{\n\t\t\t\tlog(Level.INFO, \"Sending MOTD Notice #\" + m.id);\n\t\t\t\tgetInstance().message(channel, m.toString());\n\t\t\t\tlastId = m.id;\n\t\t\t}\n\t\t}\n\t}", "public static void createPayment() throws IOException {\t\t\n\t\tDate date = new Date((long) random(100000000));\n\t\tString date2 = \"'19\" + date.getYear() + \"-\" + (random(12)+1) + \"-\" + (random(28)+1) + \"'\";\n\t\tint amount = random(10000);\n\t\t\n\t\twriter.write(\"INSERT INTO Payment (Id, Date, CCNum, amount) Values (\" + pid++ +\", \" \n\t\t\t\t+ date2 + \", '\" + CCnumbers.get(random(CCnumbers.size())) + \"', \" + amount + line);\n\t\twriter.flush();\n\t}", "@Test\n public void testTaxpayerInfoFromXml() throws FileNotFoundException {\n\n Database.processTaxpayersDataFromFilesIntoDatabase(databaseInstance.getTaxpayersInfoFilesPath(), xmlTestFilenameList);\n\n // Get the taxpayer from the Database\n Taxpayer actualTaxpayerInfoXml = databaseInstance.getTaxpayerFromArrayList(0);\n\n // Test user info from xml file\n Taxpayer expectedTaxpayerInfoFromXml = new Taxpayer(\"Nikos Zisis\", \"130456094\",\n ApplicationConstants.SINGLE, \"40000.0\");\n\n Receipt expectedTaxpayerReceiptFromXml =\n new Receipt(ApplicationConstants.OTHER_RECEIPT, \"1\", \"25/2/2014\", \"2000.0\",\n \"Omega Watches\", \"Greece\", \"Ioannina\", \"Kaloudi\", \"4\");\n\n expectedTaxpayerInfoFromXml.setReceipts( new ArrayList<>( Collections.singletonList(expectedTaxpayerReceiptFromXml)));\n expectedTaxpayerInfoFromXml.calculateTaxpayerTaxIncreaseOrDecreaseBasedOnReceipts();\n\n assertEquals(expectedTaxpayerReceiptFromXml.toString(), actualTaxpayerInfoXml.getReceipts().get(0).toString());\n assertEquals(expectedTaxpayerInfoFromXml.toString(), actualTaxpayerInfoXml.toString());\n }", "private void loadCheckingAccounts(String checkingAccountFileName)\n {\n try\n {\n /* Open the file to read */\n File inputFile = new File(checkingAccountFileName);\n\n /* Create a scanner to begin reading from file */\n Scanner input = new Scanner(inputFile);\n\n while (input.hasNextLine())\n {\n //reading...\n String currentLine = input.nextLine();\n\n //parse on commas\n String[] splitLine = currentLine.split(\",\");\n\n //DateFormat class to parse Date from file\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.SHORT);\n\n //parsing out data...\n int accountId = Integer.parseInt(splitLine[0]);\n double balance = Double.parseDouble(splitLine[1]);\n String ssn = splitLine[2];\n double interestRate = Double.parseDouble(splitLine[3]);\n Date dateOpened = dateFormat.parse(splitLine[4]);\n int overdraftSavingsAccountId = Integer.parseInt(splitLine[5]);\n boolean isGoldDiamond = Boolean.parseBoolean(splitLine[6]);\n\n Checking checkingAccount = new Checking(accountId,\n balance,\n ssn,\n interestRate,\n dateOpened,\n overdraftSavingsAccountId,\n isGoldDiamond);\n\n ArrayList<Transaction> accountTransactions = transactionHashMap.get(accountId);\n checkingAccount.setTransactions(accountTransactions);\n\n //add checking account...\n accounts.add(checkingAccount);\n }\n\n input.close();\n\n } catch (Exception e)\n {\n e.printStackTrace();\n }\n }", "public io.grpc.stub.StreamObserver<lnrpc.Rpc.SendRequest> sendPayment(\n io.grpc.stub.StreamObserver<lnrpc.Rpc.SendResponse> responseObserver) {\n return asyncBidiStreamingCall(\n getChannel().newCall(getSendPaymentMethod(), getCallOptions()), responseObserver);\n }", "public static void loadStudRecsFromFile(File file) {\r\n\t\ttry {\r\n\t\t\tJAXBContext context = JAXBContext\r\n\t\t\t\t\t.newInstance(StudRecsWrapper.class);\r\n\t\t\tUnmarshaller um = context.createUnmarshaller();\r\n\t\t\t\r\n\t\t\tStudRecsWrapper wrapper = (StudRecsWrapper) um.unmarshal(file);\r\n\t\t\t\r\n\t\t\tstudRecs.clear();\r\n\t\t\tstudRecs.addAll(wrapper.getStudRecs());\r\n\t\t\tSystem.out.println(\"File loaded!\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Cannot load file, does it exist?\");\r\n\t\t}\r\n\t}", "public void readFile(File file){\n try{\n scan = new Scanner(file);\n while(scan.hasNextLine()){\n String line = scan.nextLine();\n if(line.startsWith(\"//\")){\n continue;\n }\n process(line);\n }\n }catch(IOException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n }catch(NullPointerException e){\n Alert alert = new Alert(AlertType.INFORMATION);\n alert.setTitle(\"\");\n alert.setHeaderText(null);\n alert.setContentText(\"Oops the input was not read properly\");\n alert.showAndWait();\n e.printStackTrace();\n \n }\n }", "void processPaymentProviderNotification(@Nonnull final PaymentProviderNotification notification);", "@Override\r\n\tpublic void scanFile(File f) {\n\t\tif(f.getName().endsWith(\".csv\")) {\r\n\t\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.METADATA));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tif(f.getName().endsWith(\".pld\")) {\r\n\t\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.EXE_TABLE));\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\ttry {\r\n\t\t\tif(docBuilder == null) docBuilder = new DocumentBuilderFactoryImpl().newDocumentBuilder();\r\n\t\t\tDocument doc = docBuilder.parse(f);\r\n\t\r\n\t\t\tNodeList nl = doc.getElementsByTagName(\"payload:DataType\");\r\n\t\t\tString type = nl.item(0).getTextContent();\r\n\t\r\n\t\t\t if(type.equals(\"IP Configuration\"))\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.IP_CONFIG));\r\n\t\t\telse if(type.equals(\"ARP Configuration\"))\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.ARP_CONFIG));\r\n\t\t\telse if(type.equals(\"Network Mapping\"))\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.NETMAP));\r\n\t\t\telse if(type.equals(\"Process List\"))\t\tEntity.associateMutually(manifestDataSource(f), manifestDataFormat(DataFormat.Tag.PROCESS_LIST));\r\n\t\t}\r\n\t\tcatch(Exception e) { e.printStackTrace(); }\r\n\t}", "private void finishSendingEmail(File reportFile, File witnessesFile)\n\t{\n\t\tArrayList<String> paths = new ArrayList<String>();\n\t\t\n\t\t// Attach report CSV file\n\t\tpaths.add(reportFile.getAbsolutePath());\n\t\t\n\t\t// Attach witnesses CSV file if the are any \n\t\tif(!incident.getWitnesses().isEmpty())\n\t\t\tpaths.add(witnessesFile.getAbsolutePath());\n\t\t\n\t\t// Attach photo files if the are any\n\t\tfor(int i=0; i<photoFiles.size(); i++)\n\t\t\tpaths.add(photoFiles.get(i).getAbsolutePath());\n\t\t\n\t\t// Attach video if there is one\n\t\tif(videoFile != null)\n\t\t\tpaths.add(videoFile.getAbsolutePath());\n\t\t\n\t\tString recipient = ParseUser.getCurrentUser().getEmail();\n\t\tString subject = \"Your DriverConnex Incident Report\";\n\t\t\n\t\t// Send email\n\t\tUtilities.sendEmail(ReviewReportActivity.this, recipient, \"\", subject, \"\", paths);\n\t\t\n\t\tloading.setVisibility(View.INVISIBLE);\t\n\t}", "@Override\n public void loadDataFromFile(File file) {\n Gson gson = new Gson();\n try {\n Scanner scanner = new Scanner(file);\n while (scanner.hasNextLine()){\n IndividualCustomer customer =\n gson.fromJson(scanner.nextLine(),IndividualCustomer.class);\n customerList.add(customer);\n }\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n }\n\n }", "private void updatePayments(int id, int toPay) {\n\t\tint customer_id=id;\n\t\tint payment=toPay;\n\t\ttry {\n\t\t\tPreparedStatement pstmt=con.prepareStatement(\"insert into payments(customerNumber,payments) values(?,?)\");\n\t\t\tpstmt.setInt(1, customer_id);\n\t\t\tpstmt.setInt(2, payment);\n\t\t\tint rowseffected=pstmt.executeUpdate();\n\t\t\tif(rowseffected>0) {\n\t\t\t\tSystem.out.println(\"--------------------------------ORDER PLACED--------------------------------\");\n\t\t\t\tuserTasks();\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "private void payButtonClicked() {\n if (checkBoxAgreedTAC.isChecked()) {\n boolean validCard = validateCard();\n if (validCard) {\n Double payAmount = Double.parseDouble(textViewPrepaidPrice.getText().toString());\n MainActivity.bus.post(new PrepayPaymentAttemptEvent(payAmount, Long.parseLong(litersToBuy.getText().toString())));\n if (PrepayCalculatorFragment.this.payDialog != null) {\n PrepayCalculatorFragment.this.payDialog.dismiss();\n }\n }\n } else {\n Toast.makeText(getActivity(), getResources().getString(R.string.TACMustAgreedMessage), Toast.LENGTH_SHORT).show();\n }\n\n }", "private void parseTransactions(List<Transaction> transactions) {\n transactions.forEach(transaction -> {\n Account senderAccount = getAccount(transaction.getSender());\n Account receiverAccount = getAccount(transaction.getReceiver());\n senderAccount.addOutgoingTransaction(transaction);\n receiverAccount.addIncomingTransaction(transaction);\n });\n }", "@Override\n\tpublic void pay() {\n\t\tcreditCard.makePayment();\n\n\t}", "protected void processPaymentBundle(List<PaymentRequestDocument> paymentRequests, List<VendorCreditMemoDocument> creditMemos, Totals totals, List<String> preqsWithOutstandingCreditMemos, Person puser, Date processRunDate, Batch batch) {\r\n KualiDecimal paymentRequestAmount = KualiDecimal.ZERO;\r\n for (PaymentRequestDocument paymentRequestDocument : paymentRequests) {\r\n paymentRequestAmount = paymentRequestAmount.add(paymentRequestDocument.getGrandTotal());\r\n }\r\n\r\n KualiDecimal creditMemoAmount = KualiDecimal.ZERO;\r\n for (VendorCreditMemoDocument creditMemoDocument : creditMemos) {\r\n creditMemoAmount = creditMemoAmount.add(creditMemoDocument.getCreditMemoAmount());\r\n }\r\n\r\n // if payment amount greater than credit, create bundle\r\n boolean bundleCreated = false;\r\n if (paymentRequestAmount.compareTo(creditMemoAmount) >= 0) {\r\n PaymentGroup paymentGroup = buildPaymentGroup(paymentRequests, creditMemos, batch);\r\n\r\n if (validatePaymentGroup(paymentGroup)) {\r\n this.businessObjectService.save(paymentGroup);\r\n if (LOG.isDebugEnabled()) {\r\n LOG.debug(\"Created PaymentGroup: \" + paymentGroup.getId());\r\n }\r\n\r\n totals.count++;\r\n totals.totalAmount = totals.totalAmount.add(paymentGroup.getNetPaymentAmount());\r\n\r\n // mark the CMs and PREQs as processed\r\n for (VendorCreditMemoDocument cm : creditMemos) {\r\n updateCreditMemo(cm, puser, processRunDate);\r\n }\r\n\r\n for (PaymentRequestDocument pr : paymentRequests) {\r\n updatePaymentRequest(pr, puser, processRunDate);\r\n }\r\n\r\n bundleCreated = true;\r\n }\r\n }\r\n\r\n if (!bundleCreated) {\r\n // add payment request doc numbers to list so they don't get picked up later\r\n for (PaymentRequestDocument doc : paymentRequests) {\r\n preqsWithOutstandingCreditMemos.add(doc.getDocumentNumber());\r\n }\r\n }\r\n }", "public void setPaymentId( Integer paymentId ) {\n this.paymentId = paymentId ;\n }", "private void handleStor(String file) {\n if (file == null) {\n sendMsgToClient(\"501 No filename given\");\n } else {\n File f = new File(currDirectory + fileSeparator + file);\n\n if (f.exists()) {\n sendMsgToClient(\"550 File already exists\");\n }\n\n else {\n\n // Binary mode\n if (transferMode == transferType.BINARY) {\n BufferedOutputStream fout = null;\n BufferedInputStream fin = null;\n\n sendMsgToClient(\"150 Opening binary mode data connection for requested file \" + f.getName());\n\n try {\n // create streams\n fout = new BufferedOutputStream(new FileOutputStream(f));\n fin = new BufferedInputStream(dataConnection.getInputStream());\n } catch (Exception e) {\n debugOutput(\"Could not create file streams\");\n }\n\n debugOutput(\"Start receiving file \" + f.getName());\n\n // write file with buffer\n byte[] buf = new byte[1024];\n int l = 0;\n try {\n while ((l = fin.read(buf, 0, 1024)) != -1) {\n fout.write(buf, 0, l);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n // close streams\n try {\n fin.close();\n fout.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n\n debugOutput(\"Completed receiving file \" + f.getName());\n\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n\n }\n\n // ASCII mode\n else {\n sendMsgToClient(\"150 Opening ASCII mode data connection for requested file \" + f.getName());\n\n BufferedReader rin = null;\n PrintWriter rout = null;\n\n try {\n rin = new BufferedReader(new InputStreamReader(dataConnection.getInputStream()));\n rout = new PrintWriter(new FileOutputStream(f), true);\n\n } catch (IOException e) {\n debugOutput(\"Could not create file streams\");\n }\n\n String s;\n\n try {\n while ((s = rin.readLine()) != null) {\n rout.println(s);\n }\n } catch (IOException e) {\n debugOutput(\"Could not read from or write to file streams\");\n e.printStackTrace();\n }\n\n try {\n rout.close();\n rin.close();\n } catch (IOException e) {\n debugOutput(\"Could not close file streams\");\n e.printStackTrace();\n }\n sendMsgToClient(\"226 File transfer successful. Closing data connection.\");\n }\n\n }\n closeDataConnection();\n }\n\n }", "public ModelPayment(double payment) {\n this.payment = payment;\n }", "public interface PaymentService {\n\n\t/**\n\t * Pay the given {@link Order} with the {@link CreditCard} identified by the\n\t * given {@link CreditCardNumber}.\n\t * \n\t * @param order\n\t * @param creditCardNumber\n\t * @return\n\t */\n\tCreditCardPayment pay(Order order, CreditCardNumber creditCardNumber);\n\n\t/**\n\t * Returns the {@link Payment} for the given {@link Order}.\n\t * \n\t * @param order\n\t * @return the {@link Payment} for the given {@link Order} or\n\t * {@literal null} if the Order hasn't been payed yet.\n\t */\n\tPayment getPaymentFor(Order order);\n\n\t/**\n\t * Takes the receipt\n\t * \n\t * @param order\n\t * @return\n\t */\n\tReceipt takeReceiptFor(Order order);\n}", "public static LinkedList<TransactionNode> readTransactionFile(String fileName)\n\t\t\tthrows IOException, InvalidFileFormatException, FileNotFoundException {\n\t\tFile csvFile = new File(fileName);\n\n\t\t// read the file only if it exists\n\t\tif (csvFile.isFile()) {\n\t\t\t// the row in the csv file\n\t\t\tString row = null;\n\t\t\tint indexRow = 0;\n\t\t\t// create BufferedReader and read data from csv\n\t\t\tBufferedReader csvReader = new BufferedReader(new FileReader(fileName));\n\t\t\ttry {\n\t\t\t\t// read the rest of the lines\n\t\t\t\tLinkedList<TransactionNode> newNodes = new LinkedList<TransactionNode>();\n\t\t\t\twhile ((row = csvReader.readLine()) != null) {\n\t\t\t\t\tString[] data = row.split(\",\");\n\n\t\t\t\t\t// check the header at the first line (header)\n\t\t\t\t\tif (indexRow == 0) {\n\t\t\t\t\t\t// check if the column names\n\t\t\t\t\t\tif (!(data[0].equals(\"target\") && data[1].equals(\"date\")\n\t\t\t\t\t\t\t\t&& data[2].equals(\"unitPrice\") && data[3].equals(\"investorName\")\n\t\t\t\t\t\t\t\t&& data[4].equals(\"numUnits\")\n\t\t\t\t\t\t\t\t&& data[5].equals(\"transactionType\"))) {\n\n\t\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\t\"The column names of the file is invalid.\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tindexRow++;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\t// for the rest of the rows\n\t\t\t\t\t// - create the transaction node for each row\n\t\t\t\t\tString target = data[0];\n\t\t\t\t\tlong date = Long.valueOf(data[1]);\n\t\t\t\t\tdouble unitPrice = Double.valueOf(data[2]);\n\t\t\t\t\tString investorName = data[3];\n\t\t\t\t\tdouble numUnits = Double.valueOf(data[4]);\n\t\t\t\t\tString transactionType = data[5];\n\t\t\t\t\tif (!(transactionType.equals(\"sell\") || transactionType.equals(\"buy\"))) {\n\t\t\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\t\t\"Unrecognized transaction type\" + transactionType);\n\t\t\t\t\t}\n\t\t\t\t\t// add the row data to the list\n\t\t\t\t\tTransactionNode node = new TransactionNode(date, investorName, transactionType,\n\t\t\t\t\t\t\ttarget, unitPrice, numUnits);\n\t\t\t\t\tnewNodes.add(node);\n\t\t\t\t\tindexRow++;\n\t\t\t\t}\n\t\t\t\t// return the new nodes\n\t\t\t\treturn newNodes;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new IOException(\"IO Exception occured while reading the file at line \"\n\t\t\t\t\t\t+ String.valueOf(indexRow) + \" in: \" + fileName);\n\t\t\t} catch (NumberFormatException e) {\n\t\t\t\tthrow new InvalidFileFormatException(\n\t\t\t\t\t\t\"The format of the file at line \" + String.valueOf(indexRow)\n\t\t\t\t\t\t\t\t+ \" is invalid,i.e.,\" + row + \" in: \" + fileName);\n\t\t\t} finally {\n\t\t\t\t// close the reader\n\t\t\t\tcsvReader.close();\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new FileNotFoundException(\n\t\t\t\t\t\"The file you attempted to read does not exist or is not a valid file: \"\n\t\t\t\t\t\t\t+ fileName);\n\t\t}\n\t}", "private void readFile(File fp)throws IOException{\n Scanner in=new Scanner(fp);\n String line,s[];\n while(in.hasNext()){\n line=in.nextLine();\n s=line.split(\"[ ]+\");\n if(s.length<3){\n payroll.addLast(new ObjectListNode(new Employee(s[1],s[0])));\n }\n else{\n payroll.addLast(new ObjectListNode(new Employee(s[1],s[0],s[2].charAt(0),s[4].charAt(0),\n Integer.parseInt(s[3]),Double.parseDouble(s[5]))));\n }\n }\n }", "private void downloadFile() throws Exception {\n try {\n File backup = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.bkup\"));\n backup.delete();\n File armPaymentCFGFile = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.cfg\"));\n armPaymentCFGFile.renameTo(backup);\n armPaymentCFGFile.delete();\n ConfigMgr armConfigFile = new ConfigMgr(\"ArmCreditCardPlans.cfg\");\n ConfigMgr config = new ConfigMgr(\"armaniDownload.cfg\");\n ArmaniDownloadServices armDownloadServices = (ArmaniDownloadServices)\n config.getObject(\n \"CLIENT_IMPL\");\n bootMgr.setBootStrapStatus(\n \"Downloading Armani Payment Plan Configurations file\");\n CMSStore store = (CMSStore) theMgr.getGlobalObject(\"STORE\");\n ArmPayPlanConfigDetail armPayPlanConfig[] = armDownloadServices.\n getPayPlanConfigByCountryAndLanguage(\n store.getPreferredISOCountry(), store.getPreferredISOLanguage());\n\n String sNewTenderCode = \"\";\n String sPlanCode = \"\";\n String sPlanDescription = \"\";\n String sOldTenderCode = \"\";\n String sCardPlansKey = \"\";\n String sCardPlansValues = \"\";\n int iPlanCtr = 1;\n for (int iCtr = 0; iCtr < armPayPlanConfig.length; iCtr++) {\n sNewTenderCode = armPayPlanConfig[iCtr].getTenderCode();\n if (sOldTenderCode.length() < 1) {\n sCardPlansKey = TENDER_TYPE + sNewTenderCode + CARD_PLANS;\n sOldTenderCode = armPayPlanConfig[iCtr].getTenderCode();\n }\n if (sNewTenderCode.equals(sOldTenderCode)) {\n String sTmp = \"_\"+armPayPlanConfig[iCtr].getCardPlanCode();\n sCardPlansValues += TENDER_TYPE + sNewTenderCode + CARD_PLAN + sTmp +\n \",\";\n sPlanCode = TENDER_TYPE + sNewTenderCode + CARD_PLAN + sTmp + CODE;\n sPlanDescription = TENDER_TYPE + sNewTenderCode + CARD_PLAN + sTmp +\n LABEL;\n armConfigFile.setString(sPlanCode, armPayPlanConfig[iCtr].getCardPlanCode());\n armConfigFile.setString(sPlanDescription,\n armPayPlanConfig[iCtr].getCardPlanDescription());\n\n iPlanCtr++;\n }\n else {\n if (sCardPlansValues.indexOf(\",\") != -1)\n sCardPlansValues = sCardPlansValues.substring(0,\n sCardPlansValues.lastIndexOf(','));\n armConfigFile.setString(sCardPlansKey, sCardPlansValues);\n sCardPlansKey = TENDER_TYPE + sNewTenderCode + CARD_PLANS;\n sCardPlansValues = \"\";\n sOldTenderCode = armPayPlanConfig[iCtr].getTenderCode();\n iCtr--;\n iPlanCtr = 0;\n }\n }\n if (sCardPlansValues.length() > 1 && iPlanCtr > 0) {\n if (sCardPlansValues.indexOf(\",\") != -1)\n sCardPlansValues = sCardPlansValues.substring(0,\n sCardPlansValues.lastIndexOf(','));\n armConfigFile.setString(sCardPlansKey, sCardPlansValues);\n }\n theMgr.addGlobalObject(\"ARMANI_PAY_PLAN_CONFIG_DOWNLOAD_DATE\",\n new java.util.Date(), true);\n }\n catch (Exception ex) {\n ex.printStackTrace();\n try {\n File armaniPayment = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.cfg\"));\n armaniPayment.delete();\n File backup = new File(FileMgr.getLocalFile(\"config\",\n \"ArmCreditCardPlans.bkup\"));\n backup.renameTo(armaniPayment);\n }\n catch (Exception ex1) {}\n System.out.println(\"Exception downloadFile()->\" + ex);\n ex.printStackTrace();\n }\n finally {\n if (theMgr instanceof IApplicationManager) {\n ( (IApplicationManager) theMgr).closeStatusDlg();\n }\n }\n }" ]
[ "0.6364814", "0.6299819", "0.6053851", "0.5733786", "0.5501026", "0.5379168", "0.5198895", "0.51729536", "0.5145064", "0.5120223", "0.5090557", "0.5043279", "0.5032996", "0.49723533", "0.49480638", "0.4944883", "0.49433404", "0.4931411", "0.49010408", "0.4894874", "0.48880136", "0.48761627", "0.48705277", "0.48392946", "0.48343843", "0.48334208", "0.4823114", "0.48157823", "0.47917187", "0.47837248", "0.47648257", "0.4746716", "0.47385", "0.47250915", "0.47037062", "0.46877074", "0.46864137", "0.46766222", "0.46758443", "0.46691006", "0.46687788", "0.46553352", "0.46531236", "0.4650423", "0.46396196", "0.46242204", "0.46062762", "0.45787126", "0.4571551", "0.45693603", "0.456716", "0.45603275", "0.454699", "0.45439842", "0.45372427", "0.45314974", "0.45187297", "0.45144352", "0.45064896", "0.4501823", "0.4497549", "0.44969174", "0.44961503", "0.44936422", "0.44930303", "0.44897515", "0.44789124", "0.4476419", "0.44573462", "0.44409043", "0.4436803", "0.44292548", "0.44285005", "0.44265932", "0.44228494", "0.4410622", "0.44103003", "0.44086426", "0.4406973", "0.4404084", "0.4402324", "0.4398224", "0.4387791", "0.4383586", "0.43820757", "0.438202", "0.4378711", "0.43771836", "0.43760177", "0.43726435", "0.43725714", "0.43720016", "0.4370909", "0.4370077", "0.43677497", "0.43647084", "0.43567425", "0.43546754", "0.43448448", "0.4344196" ]
0.7637842
0
07:30:00 format is standard time format for time in sql
public static String getSqlTimeFromSeparateHoursAndMinutes(String Hours, String Minutes) { return Hours + ":" + Minutes + ":" + "00"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private java.sql.Time getSqlTimeFromLabel(CharSequence text) {\n String timeString = text.toString()+\":00\";\n return java.sql.Time.valueOf(timeString);\n }", "public String formatTime() {\n if ((myGameTicks / 16) + 1 != myOldGameTicks) {\n myTimeString = \"\";\n myOldGameTicks = (myGameTicks / 16) + 1;\n int smallPart = myOldGameTicks % 60;\n int bigPart = myOldGameTicks / 60;\n myTimeString += bigPart + \":\";\n if (smallPart / 10 < 1) {\n myTimeString += \"0\";\n }\n myTimeString += smallPart;\n }\n return (myTimeString);\n }", "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 static String TimeFormate() {\n\t\tString time;\n\t\tSimpleDateFormat dateFormat1 = new SimpleDateFormat();\n\t dateFormat1.setTimeZone(TimeZone.getTimeZone(\"US/Eastern\"));\n\t Calendar cal = Calendar.getInstance();\n\t cal.add(Calendar.MINUTE, 3);\n String n=dateFormat1.format(cal.getTime());\n //n=\"03/09/20 8:30 AM\";\n System.out.println(\"Full Date = \" +n);\n int colonindex=n.indexOf(\":\");\n //System.out.println(\": placed= \" +colonindex);\n //String tt =n.substring(colonindex, n.length());\n //System.out.println(\"tt= \" +tt);\n String tt1 =n.substring(colonindex-2,colonindex-1);\n System.out.println(\"tt1= \" +tt1);\n if(tt1.equals(\"1\")) {\n \t time=n.substring(colonindex-2, n.length());\n \t System.out.println(\"Time with two digits in hours= \" +time);\n }\n else {\n \t time=n.substring(colonindex-1, n.length());\n \t System.out.println(\"Time with one digit in hours= \" +time);\n }\n return time;\n\t}", "static String getTime(int time) {\r\n\t\tint hours = time / 60;\r\n\t\tint minutes = time % 60;\r\n\r\n\t\tString ampm;\r\n\t\tif (time >= 720) ampm = \"PM\";\r\n\t\telse ampm = \"AM\";\r\n\r\n\t\treturn (String.format(\"%d:%02d%s\", hours, minutes, ampm));\r\n\t}", "String formatTime(int time) {\r\n\t\tint h = time / 3600;\r\n\t\ttime %= 3600;\r\n\t\tint m = time / 60;\r\n\t\ttime %= 60;\r\n\t\tint s = time;\r\n\t\treturn String.format(\"%02d:%02d:%02d\", h, m, s);\r\n\t}", "public static String formatTime(long time) {\n long tmp = time;\n int hour = (int) (time / 3600);\n tmp -= hour * 3600;\n int min = (int) (tmp / 60);\n int sec = (int) (tmp - min * 60);\n\n String hourText = hour < 10 ? \"0\" + hour : \"\" + hour;\n String minText = min < 10 ? \"0\" + min : \"\" + min;\n String secText = sec < 10 ? \"0\" + sec : \"\" + sec;\n\n\n return hourText + \":\" + minText + \":\" + secText;\n }", "static String timeConversion1(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2);\n\n int hour = Integer.parseInt(hours);\n\n int differential = 0;\n if (\"PM\".equals(ampm) && hour != 12) {\n differential = 12;\n }\n\n\n hour += differential;\n hour = hour % 24;\n\n hours = String.format(\"%02d\", hour);\n\n return hours + \":\" + minutes + \":\" + seconds;\n\n }", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String res = \"\";\n String hrs = s.substring(0, 2);\n String min = s.substring(3, 5);\n String sec = s.substring(6, 8);\n String ampm = s.substring(8);\n int hr = Integer.parseInt(hrs);\n if((ampm.equalsIgnoreCase(\"PM\")) && (hr != 12)) {\n hr += 12;\n if(hr >= 24) {\n hr = 24 - hr;\n }\n }\n else if(ampm.equalsIgnoreCase(\"AM\")) {\n if(hr == 12) {\n hr = 0;\n }\n }\n if(hr < 10) {\n res = res + \"0\" + Integer.toString(hr);\n }\n else {\n res += Integer.toString(hr);\n }\n res = res +\":\" +min +\":\" + sec;\n return res;\n }", "private static String dateChange(int time) {\n int hour = time / 3600;\n time %= 3600;\n int minute = time / 60;\n int second = time % 60;\n\n String strHour = hour > 9 ? String.valueOf(hour) : \"0\" + hour;\n String strMinute = minute > 9 ? String.valueOf(minute) : \"0\" + minute;\n String strSecond = second > 9 ? String.valueOf(second) : \"0\" + second;\n\n return String.join(\":\", strHour, strMinute, strSecond);\n }", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "static String timeConversion(String s) {\n\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean isAm = s.contains(\"AM\");\n\t\t\n\t\ts = s.replace(\"AM\", \"\");\n\t\ts = s.replace(\"PM\", \"\");\n\t\t\n\t\tString str[] = s.split(\":\");\n\t\tint time = Integer.parseInt(str[0]);\n\t\t\n\t\t\n\t\tif(time < 12 && !isAm) {\n\t\t\ttime = time + 12;\n\t\t\tsb.append(time).append(\":\");\n\t\t}else if(time == 12 && isAm) {\n\t\t\tsb.append(\"00:\");\n\t\t}else {\n\t\t\tif (time < 10) sb.append(\"0\").append(time).append(\":\");\n\t\t\telse sb.append(time).append(\":\");\n\t\t}\n\n\t\tsb.append(str[1]).append(\":\").append(str[2]);\n\t\treturn sb.toString();\n\t}", "private String formatTime(LocalDateTime time){\n return time.getYear() + \"-\" + time.getMonthValue() + \"-\" + time.getDayOfMonth()\n + \" \" + time.getMinute() + \":\" + time.getSecond();\n }", "private String TimeConversion() {\n\n int hours, minutes, seconds, dayOfWeek, date, month, year;\n\n seconds = ((raw[27] & 0xF0) >> 4) + ((raw[28] & 0x03) << 4);\n minutes = ((raw[28] & 0xFC) >> 2);\n hours = (raw[29] & 0x1F);\n dayOfWeek = ((raw[29] & 0xE0) >> 5);\n date = (raw[30]) & 0x1F;\n month = ((raw[30] & 0xE0) >> 5) + ((raw[31] & 0x01) << 3);\n year = (((raw[31] & 0xFE) >> 1) & 255) + 2000;\n\n\n\n return hR(month) + \"/\" + hR(date) + \"/\" + year + \" \" + hR(hours) + \":\" + hR(minutes) + \":\" + hR(seconds) + \":00\";\n }", "private static String formatTime(String time) {\n\t\treturn String.format(\"%s:%s\", time.substring(0, 2), time.substring(2));\n\t}", "public String getPrintFormattedTime() {\n return this.optionalTime.map(x -> x.format(DateTimeFormatter.ofPattern(\"HHmma\"))).orElse(\"\");\n }", "private String formatTime(long length) {\n\t\tString hms = \"\";\n\t\tif(length < 3600000) {\n\t\t\thms = String.format(\"%02d:%02d\",\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t} else {\n\t\t\thms = String.format(\"%02d:%02d:%02d\", TimeUnit.MILLISECONDS.toHours(length),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toMinutes(length) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(length)),\n\t\t\t\t\tTimeUnit.MILLISECONDS.toSeconds(length) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(length)));\n\t\t}\n\n\t\treturn hms;\n\t}", "private static String timeLine()\n {\n return String.format(STR_FORMAT_1 + STR_FORMAT_2, TIME_STR, TIME);\n }", "@Test public void Time_len_6()\t\t\t\t\t\t\t\t\t{tst_time_(\"041526\"\t\t\t\t\t, \"04:15:26.000\");}", "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 }", "static String timeConversion(String s) throws ParseException {\n SimpleDateFormat to = new SimpleDateFormat(\"HH:mm:ss\");\n SimpleDateFormat from = new SimpleDateFormat(\"hh:mm:ssa\");\n Date parse = from.parse(s);\n return to.format(parse);\n\n }", "public String timeToString() {\n\t\tString start = \"\";\n\t\tString hmSep = \":\";\n\t\tString msSep = \":\";\n\t\tif (hour < 10)\n\t\t\tstart = new String(\"0\");\n\t\tif (minute < 10)\n\t\t\thmSep = new String(\":0\");\n\t\tif (second < 10)\n\t\t\tmsSep = new String(\":0\");\n\t\treturn new String(start\n\t\t\t\t+ hour + hmSep\n\t\t\t\t+ minute + msSep\n\t\t\t\t+ second);\n\t}", "static String timeConversion(String s) {\n String[] timeSplit = s.split(\":\");\n String hours = timeSplit[0];\n String minutes = timeSplit[1];\n String seconds = timeSplit[2].substring(0, 2);\n String ampm = timeSplit[2].substring(2, 4);\n\n String newHours;\n if (ampm.equals(\"AM\")) {\n newHours = hours.equals(\"12\") ? \"00\" : hours;\n\n } else {\n newHours = hours.equals(\"12\") ? hours : String.valueOf(Integer.parseInt(hours) + 12);\n }\n\n return newHours + \":\" + minutes + \":\" + seconds;\n\n }", "public static String tenthsToStringShort(int time) {\r\n\t\t// If we have negative time, just return zero\r\n\t\tif ( time < 0 ) {\r\n\t\t\treturn \"0:00\";\r\n\t\t}\r\n\t\t\r\n\t\tint sec = (time / 10) % 60;\r\n\t\tint min = (time / 10) / 60;\r\n\t\treturn String.format(\"%d:%02d\", min, sec);\r\n\t}", "public static String convertFromTime(int time){\n int hour = time/100;\n int min = time%100;\n String hourStr = String.format(\"%02d\", hour);\n String minStr = String.format(\"%02d\",min);\n return hourStr + \":\" + minStr;\n }", "public String FormatTime(int hour, int minute) {\n\n String time;\n time = \"\";\n String formattedMinute;\n\n if (minute / 10 == 0) {\n formattedMinute = \"0\" + minute;\n } else {\n formattedMinute = \"\" + minute;\n }\n\n\n if (hour == 0) {\n time = \"12\" + \":\" + formattedMinute + \" AM\";\n } else if (hour < 12) {\n time = hour + \":\" + formattedMinute + \" AM\";\n } else if (hour == 12) {\n time = \"12\" + \":\" + formattedMinute + \" PM\";\n } else {\n int temp = hour - 12;\n time = temp + \":\" + formattedMinute + \" PM\";\n }\n\n\n return time;\n }", "static String timeConversion(String s) {\n if(s.indexOf('P') >= 0 && s.substring(0, 2).equals(\"12\")){\n }\n else if(s.indexOf('P') >= 0){\n Integer n = Integer.parseInt(s.substring(0, 2));\n s = removeHour(s);\n n += 12;\n String hour = Integer.toString(n);\n s = hour + s;\n }\n else if (s.indexOf('A') >= 0 && s.substring(0, 2).equals(\"12\")){\n s = \"00\" + s.substring(2);\n }\n return removeHourFormat(s);\n }", "private String formatTime(final long time) {\n if ( time == 0 ) {\n return \"-\";\n }\n if ( time < 1000 ) {\n return time + \" ms\";\n } else if ( time < 1000 * 60 ) {\n return time / 1000 + \" secs\";\n }\n final long min = time / 1000 / 60;\n final long secs = (time - min * 1000 * 60);\n return min + \" min \" + secs / 1000 + \" secs\";\n }", "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 static String TimeConvert(int num) {\n\n int hours;\n int minutes;\n\n if (num < 60){\n\n return \"0:\" + num;\n }\n else {\n\n hours = num / 60;\n minutes = num % 60;\n\n return hours + \":\" + minutes;\n }\n }", "private void updateTime() \r\n\t {\r\n\t\t \r\n\t\t \tif(Hours.getValue() < 12)\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" am\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t\t \t\r\n\t\t \telse if (Hours.getValue() > 12 && Hours.getValue() < 24 )\r\n\t\t \t{\r\n\t\t \t\tdisplayString = Hours.getDisplayValue() + \":\" + Minutes.getDisplayValue() + \":\" + Seconds.getDisplayValue() + \" pm\";\r\n\t\t System.out.println(displayString);\r\n\t\t \t}\r\n\t }", "private String formatTime(Date dateObject)\n {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n timeFormat.setTimeZone(Calendar.getInstance().getTimeZone());\n return timeFormat.format(dateObject);\n }", "private String intTime(long l){\r\n String s=\"\";\r\n s+=(char)(((l/1000)/60)+'0')+\":\"+(char)((((l/1000)%60)/10)+'0')+(char)((((l/1000)%60)%10)+'0'); \r\n return s;\r\n }", "@Override\n\tpublic String toString() {\n\t\tLocalTime lT = LocalTime.of(hour, minute);\n\t\tDateTimeFormatter.ofPattern(\"hh:mm\").format(lT);\n\t\treturn lT.toString() + \" \" + timeType;\n\t}", "private String doValidTimeCheck(String pDateTime) {\n String aDateTime = pDateTime;\n\n if (pDateTime.length() > 0) {\n String aTime = pDateTime.substring(8);\n if (aTime.matches(\"240000\")) {\n aDateTime = pDateTime.substring(0,8) + \"235900\";\n }\n }\n return aDateTime;\n }", "public static String TimeConverter(long t)\r\n {\r\n int h, m, s, ms;\r\n ms = (int)t;\r\n h = ms / 3600000;\r\n ms = ms % 3600000;\r\n m = ms / 60000;\r\n ms = ms % 60000;\r\n s = ms / 1000;\r\n ms = ms % 1000;\r\n return h + \" :: \" + m + \" :: \" + s + \" :: \" + ms;\r\n }", "public String toString() {\n return hour+\" \"+minute;\r\n }", "private String formatTimeout(long timeout) {\n Date date = new Date(timeout);\n DateFormat formatter = new SimpleDateFormat(\"mm:ss\");\n return formatter.format(date);\n }", "public void setTime(String time) {\n this.time = time;\n }", "public String getFormattedTimeFromStart() {\r\n if (history.getNumberOfJumpsSoFar() == 0) {\r\n return \"00:00\";\r\n }\r\n\r\n double time = history.getTimeFromStart();\r\n double maxTime = 59.59;\r\n if (time < maxTime) {\r\n return String.format(\"%02d:%02d\", (int) (time % 60), (int) (time * 100 % 100));\r\n } else {\r\n return \"59:59\";\r\n }\r\n }", "public String getTimeString() {\n int hour = date.get(Calendar.HOUR);\n int minute = date.get(Calendar.MINUTE);\n\n String AM_PM = \"PM\";\n if (date.get(Calendar.AM_PM) == Calendar.AM) AM_PM = \"AM\";\n\n String hour_fixed = String.valueOf(hour);\n if (hour == 0) hour_fixed = \"12\";\n\n String minute_fixed = String.valueOf(minute);\n while (minute_fixed.length() < 2) {\n minute_fixed = \"0\" + minute_fixed;\n }\n\n return hour_fixed + \":\" + minute_fixed + ' ' + AM_PM;\n }", "public static String timeToSqlString(java.util.Date time)\n\t{\n\t\t//Aus irgendeinem Grund ist die Uhrzeit eine Stunde vor deswegen m�ssen wir eine Stunde zur�ck rechnen\n\t\ttime = new java.util.Date(time.getTime() - HOUR_IN_MILLIS);\n\t\treturn time.getHours() + \":\" + time.getMinutes() + \":\" + time.getSeconds();\n\t}", "java.lang.String getTime();", "public String toString() {\n if (time != null) {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm\");\n return time.format(formatter);\n } else {\n return \"INVALID TIME\";\n }\n }", "private String formatTime(Date dateObject) {\n @SuppressLint(\"SimpleDateFormat\") SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\n return timeFormat.format(dateObject);\n }", "public void setTime(String time) {\n }", "public static String timeToString(Date date)\r\n/* 24: */ {\r\n/* 25: 31 */ return sdfTime.format(date);\r\n/* 26: */ }", "private String formatTime(Date dateObject) {\r\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\");\r\n return timeFormat.format(dateObject);\r\n }", "private String formatTime(Date dateObject) {\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"h:mm a\", Locale.getDefault());\n return timeFormat.format(dateObject);\n }", "public String toValidTimeString(int time) throws IllegalValueException {\n String updatedString = String.valueOf(time);\n if (time < 1000) {\n while (updatedString.length() < 4) {\n updatedString = \"0\" + updatedString;\n }\n } else {\n updatedString = String.valueOf(time);\n }\n if (this.isValidTime(updatedString)) {\n return updatedString;\n } else {\n throw new IllegalValueException(INVALID_TIME_FORMAT);\n }\n }", "default LocalDateTime getLocalTime(int hour, int minute) {\n return getLocalTime(2017, 1, 31, hour, minute);\n }", "public void setTime(String time) {\r\n\t\tthis.time = time;\r\n\t}", "static String timeConversion(String s) {\n /*\n * Write your code here.\n */\n String conversion = \"\";\n String time = s.substring(s.length()-2,s.length());\n String hour = s.substring(0,2);\n if(time.equals(\"AM\")){\n if(Integer.parseInt(hour)==12){\n conversion = \"00\"+s.substring(2,s.length()-2);\n }\n else{\n conversion = s.substring(0,s.length()-2);\n }\n }else{\n if(Integer.parseInt(hour)==12){\n conversion = \"12\"+s.substring(2,s.length()-2);\n }\n else{\n conversion = (Integer.parseInt(hour)+12) + s.substring(2,s.length()-2);\n }\n }\n\n return conversion;\n }", "public static String fixAutoTime(String time) {\n if (time.length() < 3) {\n return fixAutoTime(\"0\".concat(time));\n }\n return time;\n }", "private void formatTime() {\r\n\t\tDate date = new Date();\r\n\t\tSimpleDateFormat ft = new SimpleDateFormat(\"yyyy/MM/dd HH:mm:ss\");\r\n\t\tm_timeSent = ft.format(date).toString();\r\n\t}", "public static String time(int time) {\n return time((long)time);\n }", "private static String timeFormat(long t, String format) {\n SimpleDateFormat sdf = new SimpleDateFormat(format, Locale.US);\n try {sdf.setTimeZone(TimeZone.getTimeZone(\"UTC\"));} catch (Exception e) {}\n return sdf.format(new Date(t));\n }", "@SuppressLint(\"SimpleDateFormat\")\n\tpublic static String getStringTime(Long time){\n\t\tSimpleDateFormat dateaf = new SimpleDateFormat(\"MM-dd\"); \n\t\tSimpleDateFormat timef = new SimpleDateFormat(\"HH:mm\"); \n\t\tString date = dateaf.format(time);\n\t\tString times = timef.format(time);\n\t\tString result = date+\" \"+times;\n\t\treturn result;\n\t}", "public String getTimeString(){\n StringBuilder sBuilder = new StringBuilder();\n sBuilder.append(hourPicker.getValue())\n .append(':')\n .append(minutePicker.getValue())\n .append(':')\n .append(secondsPicker.getValue())\n .append('.')\n .append(decimalPicker.getValue());\n return sBuilder.toString();\n }", "public void setTime(String time) {\n\t\tthis.time = time;\n\t}", "public static String longToHHMM(long longTime)\r\n/* 150: */ {\r\n/* 151:219 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 152:220 */ Date strtodate = new Date(longTime);\r\n/* 153:221 */ return formatter.format(strtodate);\r\n/* 154: */ }", "public static String timeInWords(final int h, final int m) {\n\n\t\tif(m == 0) {\n\t\t\treturn getFromNumber(h).getWord() + \" \" + minuteInWord(m);\n\t\t} else if (m > 30) {\n\t\t\treturn minuteInWord(60 - m) + \" to \" + getFromNumber(h + 1).getWord();\n\t\t} else {\n\t\t\treturn minuteInWord(m) + \" past \" + getFromNumber(h).getWord();\n\t\t}\n\n }", "public String getFormattedTime() {\n return formattedTime;\n }", "public static String getTime()\n {\n Date time = new Date();\n SimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return timeFormat.format(time);\n }", "private String parseTime(TimePicker start){\n String time = \"\";\n if (start.getHour() < 10){\n time += \"0\" + start.getHour() + \":\";\n } else {\n time += start.getHour() + \":\";\n }\n if (start.getMinute() < 10){\n time += \"0\" + start.getMinute();\n } else {\n time += start.getMinute();\n }\n return time;\n }", "public String getTimeString() {\n DateFormat format = new SimpleDateFormat(\"HH:mm\");\n return format.format(mDate);\n }", "public String toString() {\n return this.time != null ? this.time.format(TIME_FORMATTER) : \"\";\n }", "public String timeFormatter(int hour, int min) {\n String minString = String.valueOf(min);\n String amOrPm = \"AM\";\n if (hour > 12) {\n hour -= 12;\n amOrPm = \"PM\";\n }\n if (minString.length() < 2) {\n minString = \"0\" + minString;\n }\n return (String.valueOf(hour) + \":\" + minString + \" \" + amOrPm);\n\n }", "public static String getNowTimeHHMM() {\n\t\tSimpleDateFormat timeFormat = new SimpleDateFormat(\"HH:mm\");\n\t\treturn timeFormat.format(new Date());\n\t}", "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 static String formattime(long millis) {\n\t\treturn String.format(\"%02d:%02d:%02d:%03d\", //This formats the time correctly\n\t\t\t\tTimeUnit.MILLISECONDS.toHours(millis),\n\t\t\t TimeUnit.MILLISECONDS.toMinutes(millis) -\n\t\t\t TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(millis)),\n\t\t\t TimeUnit.MILLISECONDS.toSeconds(millis) -\n\t\t\t TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(millis)),\n\t\t\t millis -\n\t\t\t TimeUnit.SECONDS.toMillis(TimeUnit.MILLISECONDS.toSeconds(millis)));\n\t\t\n\t}", "public static void main(String[] args) {\n System.out.println(solution(\"02:03:55\",\"00:14:15\",\n new String[] {\"01:20:15-01:45:14\", \n \"00:40:31-01:00:00\",\n \"00:25:50-00:48:29\",\n \"01:30:59-01:53:29\", \n \"01:37:44-02:02:30\"}));\n \n // \"01:00:00\"\n System.out.println(solution(\"99:59:59\", \"25:00:00\",\n new String[] {\"69:59:59-89:59:59\",\n \"01:00:00-21:00:00\",\n \"79:59:59-99:59:59\",\n \"11:00:00-31:00:00\"}));\n \n // \"00:00:00\"\n System.out.println(solution(\"50:00:00\", \"50:00:00\",\n new String[] {\"15:36:51-38:21:49\",\n \"10:14:18-15:36:51\",\n \"38:21:49-42:51:45\"}));\n \n }", "public static String getTimeString(int t) {\n\t\tint hours = t / 3600;\n\t\tint minutes = (t / 60) % 60;\n\t\tint seconds = t % 60;\n\t\treturn (hours < 10 ? \"0\" : \"\")\n\t\t\t+ hours\n\t\t\t+ (minutes < 10 ? \":0\" : \":\")\n\t\t\t+ minutes\n\t\t\t+ (seconds < 10 ? \":0\" : \":\")\n\t\t\t+ seconds;\n\t}", "public static void timeConversion(String time)\r\n {\n\r\n if (ticks >= 0)\r\n {\r\n time = day;\r\n } else if (ticks >= 12000)\r\n {\r\n time = sunset;\r\n } else if (ticks >= 12610)\r\n {\r\n time = dusk;\r\n } else if (ticks >= 17843)\r\n {\r\n time = midnight;\r\n } else if (ticks >= 23041)\r\n {\r\n time = dawn;\r\n }\r\n }", "@Override\n\tpublic String convertTime(String aTime) {\n\n\t\tif (aTime == null)\n\t\t\tthrow new IllegalArgumentException(NO_TIME);\n\n\t\tString[] times = aTime.split(\":\", 3);\n\n\t\tif (times.length != 3)\n\t\t\tthrow new IllegalArgumentException(INVALID_TIME);\n\n\t\tint hours, minutes, seconds = 0;\n\n\t\ttry {\n\t\t\thours = Integer.parseInt(times[0]);\n\t\t\tminutes = Integer.parseInt(times[1]);\n\t\t\tseconds = Integer.parseInt(times[2]);\n\t\t} catch (NumberFormatException e) {\n\t\t\tthrow new IllegalArgumentException(NUMERIC_TIME);\n\t\t}\n\n\t\tif (hours < 0 || hours > 24)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Hour\");\n\t\tif (minutes < 0 || minutes > 59)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Minutes\");\n\t\tif (seconds < 0 || seconds > 59)\n\t\t\tthrow new IllegalArgumentException(\"Invalid value of Seconds\");\n\n\t\tString line1 = (seconds % 2 == 0) ? \"Y\" : \"O\";\n\t\tString line2 = rowString(hours / 5, 4, \"R\").replace('0', 'O');\n\t\tString line3 = rowString(hours % 5, 4, \"R\").replace('0', 'O');\n\t\tString line4 = rowString(minutes / 5, 11, \"Y\").replaceAll(\"YYY\", \"YYR\").replace('0', 'O');\n\t\tString line5 = rowString(minutes % 5, 4, \"Y\").replace('0', 'O');\n\n\t\tString cTime = String.join(NEW_LINE, Arrays.asList(line1, line2, line3, line4, line5));\n\n\t\tSystem.out.println(cTime);\n\n\t\treturn cTime;\n\t}", "public static String minChangeDayHourMinS(String time) {\n long mss;\n if (!\"\".equals(time) && time != null) {\n mss = Integer.parseInt(time) * 60;\n } else {\n return \"\";\n }\n String DateTimes = null;\n long days = mss / (60 * 60 * 24);\n long hours = (mss % (60 * 60 * 24)) / (60 * 60);\n long minutes = (mss % (60 * 60)) / 60;\n long seconds = mss % 60;\n// Logger.d(\"minChangeDayHourMinS days:\" + days);\n// Logger.d(\"minChangeDayHourMinS hours:\" + hours);\n// Logger.d(\"minChangeDayHourMinS minutes:\" + minutes);\n// Logger.d(\"minChangeDayHourMinS seconds:\" + seconds);\n\n if (days > 0) {\n DateTimes = days + \"天\" + hours + \"小时\" + minutes + \"分钟\"\n + seconds + \"秒\";\n } else if (hours > 0) {\n DateTimes = hours + \"小时\" + minutes + \"分钟\"\n + seconds + \"秒\";\n } else if (minutes > 0) {\n DateTimes = minutes + \"分钟\"\n + seconds + \"秒\";\n } else {\n DateTimes = seconds + \"秒\";\n }\n // Log.d(\"minChangeDayHourMinS DateTimes:\" + DateTimes);\n\n return DateTimes;\n }", "private LocalTime get_TIME(int column) {\n // Time column is always 8 chars long\n String timeString = dataBuffer_.getCharSequence(columnDataPosition_[column - 1],\n 8, charset_[column - 1]).toString();\n return LocalTime.parse(timeString, DRDAConstants.DB2_TIME_FORMAT);\n// return DateTime.timeBytesToTime(dataBuffer_,\n// columnDataPosition_[column - 1],\n// cal,\n// charset_[column - 1]);\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "@Override\r\n public void onTimeChanged(TimePicker view, int hourOfDay, int minute) {\n if (hourOfDay < 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay >= 10 && minute < 10) {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":0\" + minute);\r\n } else if (hourOfDay < 10 && minute >= 10) {\r\n tvDateTimeCurrent.setText(\"0\" + hourOfDay + \":\" + minute);\r\n } else {\r\n tvDateTimeCurrent.setText(\"\" + hourOfDay + \":\" + minute);\r\n }\r\n }", "public static String time_str(double t) {\n int hours = (int) t/3600;\n int rem = (int) t - hours*3600;\n int mins = rem / 60;\n int secs = rem - mins*60;\n return String.format(\"%02d:%02d:%02d\", hours, mins, secs);\n //return hoursMinutesSeconds(t);\n }", "public final void mRULE_TIME() throws RecognitionException {\n try {\n int _type = RULE_TIME;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:15366:11: ( ( '0' .. '9' )+ ':' ( '0' .. '9' )+ )\n // InternalMyDsl.g:15366:13: ( '0' .. '9' )+ ':' ( '0' .. '9' )+\n {\n // InternalMyDsl.g:15366:13: ( '0' .. '9' )+\n int cnt5=0;\n loop5:\n do {\n int alt5=2;\n int LA5_0 = input.LA(1);\n\n if ( ((LA5_0>='0' && LA5_0<='9')) ) {\n alt5=1;\n }\n\n\n switch (alt5) {\n \tcase 1 :\n \t // InternalMyDsl.g:15366:14: '0' .. '9'\n \t {\n \t matchRange('0','9'); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt5 >= 1 ) break loop5;\n EarlyExitException eee =\n new EarlyExitException(5, input);\n throw eee;\n }\n cnt5++;\n } while (true);\n\n match(':'); \n // InternalMyDsl.g:15366:29: ( '0' .. '9' )+\n int cnt6=0;\n loop6:\n do {\n int alt6=2;\n int LA6_0 = input.LA(1);\n\n if ( ((LA6_0>='0' && LA6_0<='9')) ) {\n alt6=1;\n }\n\n\n switch (alt6) {\n \tcase 1 :\n \t // InternalMyDsl.g:15366:30: '0' .. '9'\n \t {\n \t matchRange('0','9'); \n\n \t }\n \t break;\n\n \tdefault :\n \t if ( cnt6 >= 1 ) break loop6;\n EarlyExitException eee =\n new EarlyExitException(6, input);\n throw eee;\n }\n cnt6++;\n } while (true);\n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "private String getTimingt(Long pastvalue) {\n DateTime zulu = DateTime.now(DateTimeZone.UTC);\n // DateTimeFormatter formatter = DateTimeFormat.forPattern(\"HH:mm:ss am\");\n Date date = new Date(pastvalue);\n// formattter\n SimpleDateFormat formatter= new SimpleDateFormat(\"hh:mm a\");\n formatter.setTimeZone(TimeZone.getDefault());\n// Pass date object\n return formatter.format(date );\n /*\n long mint = TimeUnit.MILLISECONDS.toMinutes(zulu.toInstant().getMillis() - pastvalue);\n\n if (mint < 60) {\n if (mint > 1)\n return \"Hace \" + mint + \" minutos\";\n else\n return \"Hace \" + mint + \" minuto\";\n } else {\n long horas = TimeUnit.MILLISECONDS.toHours(zulu.toDate().getTime() - pastvalue);\n\n if (horas < 24) {\n if (horas > 1)\n return \"Hace \" + horas + \" horas\";\n else\n return \"Hace \" + horas + \" hora\";\n } else {\n long dias = TimeUnit.MILLISECONDS.toDays(zulu.toDate().getTime() - pastvalue);\n\n if (dias > 1) {\n return \"Hace \" + dias + \" dias\";\n } else\n return \"Hace \" + dias + \" dia\";\n }\n\n\n }*/\n }", "static String timeConversion(String s) {\n String[] sTime = s.split(\":\");\n\n int x = 0;\n\n // if PM and hours >12, add additional 12 to hours\n // for AM and hour = 12, set hour to 00\n if(sTime[sTime.length - 1].contains(\"PM\") && !sTime[0].equals(\"12\"))\n x = 12;\n\n String val1 = \"\";\n if(x == 12)\n val1 = (Integer.parseInt(sTime[0]) + x) + \"\";\n else {\n if(sTime[0].equals(\"12\") && sTime[sTime.length - 1].contains(\"AM\"))\n val1 = \"00\";\n else\n val1 = sTime[0];\n }\n\n // merge the string and return the result\n String result = val1 + \":\" + sTime[1] + \":\" + sTime[2].substring(0,2);\n return result;\n }", "public static String formatTime(final long ms){\n long s = ms / 1000, m = s / 60, h = m / 60;\n s %= 60; m %= 60; h %= 24;\n return String.format(\"%02d:%02d:%02d\", h, m, s);\n }", "public String gameTimeToText()\n {\n // CALCULATE GAME TIME USING HOURS : MINUTES : SECONDS\n if ((startTime == null) || (endTime == null))\n return \"\";\n long timeInMillis = endTime.getTimeInMillis() - startTime.getTimeInMillis();\n return timeToText(timeInMillis);\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}", "public String formatTime(Date date) {\n String result = \"\";\n if (date != null) {\n result = DateUtility.simpleFormat(date, MEDIUM_TIME_FORMAT);\n }\n return result;\n }", "public String getFormatedTime() {\n DateFormat displayFormat = new SimpleDateFormat(\"HH:mm\", Locale.GERMAN);\n return displayFormat.format(mEvent.getTime());\n }", "public TimeField() {\n\t\tsuper('t', \"0 0\");\n\t}", "public String toString() {\n return String.format(\"%d: %02d: %02d %s\",\n ((hour == 0 || hour == 12) ? 12 :hour % 12 ),\n minutes, seconds, (hour < 12 ? \"AM\" : \"PM\"));\n\n }", "private String getPlayTimeString() {\n double fltPlayPositionInFrames = (fltPlayPercent/100.0f) * lngTimelineDataAmountInRmsFrames;\n double fltTime = (double)(fltPlayPositionInFrames * fltRmsFramePeriodInMs)/1000.0f;\n return new DecimalFormat(\"000.00\").format(fltTime); // String.format(\"%3.1f\", fltTime);\n }", "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 String getYYYYMMDDhhmmssTime(Long time) {\n\t\tString result = \"\";\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYYMMDDhhmmss\");\n\t\tresult = sdf.format(new Date(time));\n\t\treturn result;\n\t}", "public static String buildTimeString(long time) {\r\n\t\t\r\n\t\t// Days\r\n\t\tlong days = time / (1000 * 60 * 60 * 24);\r\n\t\ttime = time % (1000 * 60 * 60 * 24);\r\n\t\t\r\n\t\tlong hours = time / (1000 * 60 * 60);\r\n\t\ttime = time % (1000 * 60 * 60);\r\n\t\t\r\n\t\tlong mins = time / (1000 * 60);\r\n\t\ttime = time % (1000 * 60);\r\n\t\t\r\n\t\tlong secs = time / 1000;\r\n\t\t\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\tif (days>0) {\r\n\t\t\tbuilder.append(days + \" d : \");\r\n\t\t}\r\n\t\tbuilder.append(String.format(\"%02d h : \", hours));\r\n\t\tbuilder.append(String.format(\"%02d m : \", mins));\r\n\t\tbuilder.append(String.format(\"%02d s\", secs));\r\n\r\n\t\treturn builder.toString();\r\n\t}", "public static int secondsAfterMidnight(String t) {\n int seconds; //initializing seconds, will be returned to main.\n t.toLowerCase(); //setting all input to lowercase so it is easier to handle.\n if (t.length() == 10){ //if input is 10 characters\n // if statement below checks whether each character is appropriate before continuing.\n if((t.startsWith(\"0\") || t.startsWith(\"1\"))&& Character.isDigit(t.charAt(1))&& \n t.charAt(2) == ':' && Character.isDigit(t.charAt(3))&& Character.isDigit(t.charAt(4))&&\n t.charAt(5) == ':' && Character.isDigit(t.charAt(6))&& Character.isDigit(t.charAt(7))&&\n (t.endsWith(\"am\") || t.endsWith(\"pm\"))){\n // Characters converted to numeric values and hours, minutes, and seconds are\n // calculated below.\n int hours = Character.getNumericValue(t.charAt(0))*10 \n + Character.getNumericValue(t.charAt(1));\n //if hours is equal to 12 such as 12:35, switched to 0:35, for easier calc.\n if(hours == 12){ \n hours = 0;\n }\n int minutes = Character.getNumericValue(t.charAt(3))*10 \n + Character.getNumericValue(t.charAt(4));\n seconds = Character.getNumericValue(t.charAt(6))*10 \n + Character.getNumericValue(t.charAt(7)); \n if(minutes < 60 && seconds < 60){//checks whether minute and second input is below 60.\n if(t.endsWith(\"pm\")){ //adding 43200 (12 hours in seconds) if time is pm.\n seconds = hours*3600 + minutes*60 + seconds + 43200;\n }else{\n seconds = hours*3600 + minutes*60 + seconds; \n }\n }else{\n seconds = -1; //if proper input is not given, seconds set to -1.\n }\n } else {\n seconds = -1; //improper input leads to seconds set to -1.\n }\n //below is for input that has 9 characters, such as 9:12:23am, instead of 09:12:23am. The code below\n // is very similar to to code for 10 characters above. \n }else if (t.length() == 9){\n if(Character.isDigit(t.charAt(0))&& t.charAt(1) == ':' && Character.isDigit(t.charAt(2))\n && Character.isDigit(t.charAt(3))&& t.charAt(4) == ':' && Character.isDigit(t.charAt(5))\n && Character.isDigit(t.charAt(6))&&(t.endsWith(\"am\") || t.endsWith(\"pm\"))){\n int hours = Character.getNumericValue(t.charAt(0));\n int minutes = Character.getNumericValue(t.charAt(2))*10 \n + Character.getNumericValue(t.charAt(3));\n seconds = Character.getNumericValue(t.charAt(5))*10 \n + Character.getNumericValue(t.charAt(6)); \n if(minutes < 60 && seconds < 60){\n if(t.endsWith(\"pm\")){\n seconds = hours*3600 + minutes*60 + seconds + 43200;\n }else{\n seconds = hours*3600 + minutes*60 + seconds; \n }\n }else{\n seconds = -1;\n }\n } else {\n seconds = -1;\n }\n }else{ // if input has neither 10 or 9 characters, input not proper.\n seconds = -1;\n }\n return seconds; //seconds is returned to main.\n}", "public TimeField(String time_field) {\n\t\tsuper('t', time_field);\n\t}", "private String createTimeString(int value)\n\t {\n\t\tif(value<0){\n\t\t\treturn \"00:00:00,000\";\n\t\t}\n\t int sec = value % 60;\n\t int min = (value / 60) % 60;\n\t int hr = value / 3600;\n\t String fmtHr = \"\"+hr;\n\t String fmtMin = \"\"+min;\n\t String fmtSec = \"\" + sec;\n\t if(hr<10){\n\t \tfmtHr = \"0\"+hr;\n\t }\n\t if(min<10){\n\t \tfmtMin = \"0\"+min;\n\t }\n\t if(sec<10){\n\t \tfmtSec = \"0\"+sec;\n\t }\n\n\t return fmtHr+\":\"+fmtMin+\":\"+fmtSec+\",\"+\"000\";\n\t }", "public static String timeAsString(long totalTime) {\n long second = totalTime / 1000 % 60;\n long minute = totalTime / (1000 * 60) % 60;\n long hour = totalTime / (1000 * 60 * 60);\n\n return String.format(\"%02d:%02d:%02d\", hour, minute, second);\n }", "@Test\n public void testTimeStampRounding() throws SQLException {\n assumeBinaryModeRegular();\n LocalTime time = LocalTime.parse(\"23:59:59.999999500\");\n Time actual = insertThenReadWithoutType(time, \"time_without_time_zone_column\", Time.class, false/*no roundtrip*/);\n assertEquals(Time.valueOf(\"24:00:00\"), actual);\n }" ]
[ "0.6739762", "0.62515515", "0.62329566", "0.6222007", "0.6157112", "0.6113976", "0.6101786", "0.6049281", "0.60368294", "0.601768", "0.6010432", "0.5996946", "0.59958625", "0.59875876", "0.5985038", "0.5946855", "0.59449995", "0.5929608", "0.58880347", "0.58616734", "0.58590204", "0.5850261", "0.5845629", "0.5837487", "0.5826935", "0.5823476", "0.5821694", "0.58143103", "0.580181", "0.5801063", "0.57987213", "0.5780995", "0.5780978", "0.5776316", "0.57742244", "0.57636297", "0.5750567", "0.5745049", "0.5744764", "0.57138985", "0.5700604", "0.5693737", "0.56819004", "0.5681428", "0.5681289", "0.5679808", "0.5679176", "0.56683975", "0.56657964", "0.5657297", "0.5653913", "0.5653753", "0.56480044", "0.56442064", "0.5643215", "0.5635529", "0.56142646", "0.5614182", "0.5611824", "0.56111", "0.56044936", "0.5603655", "0.56029695", "0.5599405", "0.5598613", "0.55950177", "0.5564359", "0.55607045", "0.5548475", "0.55367714", "0.5534529", "0.55290055", "0.55241483", "0.5523937", "0.5521949", "0.5520091", "0.55175227", "0.55133754", "0.55133754", "0.55133754", "0.55128306", "0.55123806", "0.5509542", "0.550839", "0.54961586", "0.5487239", "0.54853827", "0.5482007", "0.54816157", "0.5481295", "0.54786956", "0.5474405", "0.5472377", "0.5470298", "0.5465396", "0.5465161", "0.54555404", "0.5453732", "0.5452086", "0.5441992" ]
0.57552004
36
HashMap hm = new HashMap();
public static void printCommonReport(String reportName, HashMap<String, Object> hm) throws SQLException, JRException { hm.put("shopName", Loading.getShopName()); Connection con = DatabaseConnection.getDatabaseConnection(); JasperDesign jsd = JRXmlLoader.load("C:\\reports\\" + reportName + ".jrxml"); //src\\cazzendra\\pos\\ JasperReport jr = JasperCompileManager.compileReport(jsd); JasperPrint jp = JasperFillManager.fillReport(jr, hm, con); JasperViewer jasperViewer = new JasperViewer(jp, false); jasperViewer.setVisible(true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MyHashMap() {\n\n }", "public MyHashMap() {\n map = new HashMap();\n }", "public MyHashMap() {\n hashMap = new ArrayList<>();\n }", "public MyHashMap() {\n\n }", "void setHashMap();", "public Q706DesignHashMap() {\n keys = new ArrayList<>();\n values = new ArrayList<>();\n\n }", "private static <K, V> Map<K, V> newHashMap() {\n return new HashMap<K, V>();\n }", "public void createHashMap() {\n myList = new HashMap<>();\n scrabbleList = new HashMap<>();\n }", "public Hashtable<String,Stock> createMap(){\n\tHashtable table = new Hashtable<String, Stock>();\n\treturn table;\n}", "public HashMapStack()\n {\n this.hashMap = new HashMap<>();\n }", "public HashMap() {\n this.capacity = 100;\n this.hashMap = new LinkedList[capacity];\n }", "public HashMap(){\n\t\tthis.numOfBins=10;\n\t\tthis.size=0;\n\t\tinitializeMap();\n\t}", "@Test\n\tpublic void testHashMap() {\n\n\t\t/*\n\t\t * Creates an empty HashMap object with default initial capacity 16 and default\n\t\t * fill ratio \"0.75\".\n\t\t */\n\t\tHashMap hm = new HashMap();\n\t\thm.put(\"evyaan\", 700);\n\t\thm.put(\"varun\", 100);\n\t\thm.put(\"dolly\", 300);\n\t\thm.put(\"vaishu\", 400);\n\t\thm.put(\"vaishu\", 300);\n\t\thm.put(null, 500);\n\t\thm.put(null, 600);\n\t\t// System.out.println(hm);\n\n\t\tCollection values = hm.values();\n//\t\tSystem.out.println(values);\n\n\t\tSet entrySet = hm.entrySet();\n\t\t// System.out.println(entrySet);\n\n\t\tIterator iterator = entrySet.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tMap.Entry entry = (Map.Entry) iterator.next();\n\t\t\t// System.out.println(entry.getKey()+\":\"+entry.getValue());\n\t\t}\n\n\t}", "public OmaHashMap() {\n this.values = new OmaLista[32];\n this.numberOfValues = 0;\n }", "public static <K, V> HashMap<K, V> initHashMap() {\n\t\treturn new HashMap<K, V>();\n\t}", "public ObservableHashMap()\n {\n super();\n }", "public HashGraph()\n {\n graph = new HashMap <>();\n }", "public ArrayHashMap() {\n super();\n }", "public MyHashMap() {\n array = new TreeNode[1024];\n\n }", "@Override\n public Map makeMap() {\n Map<Integer,String> testMap = new HashingMap<>();\n return testMap;\n }", "public MyHashMap() {\r\n data = new Node[DEFAULT_CAPACITY];\r\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap()\r\n\t{\r\n\t\ttable = new MapEntry[7];\r\n\t\tcount = 0;\r\n\t\tmaxCount = table.length - table.length/3;\r\n\t\tDUMMY = new MapEntry<>(null, null);\r\n\t}", "public MyHashMap() {\r\n\t\tloadFactor = DEFAULT_LOAD_FACTOR;\r\n\t\tcapacity = DEFAULT_CAPACITY;\r\n\t\thashMapArray = new LinkedList[capacity];\r\n\t}", "public MyHashMap() {\n this.key_space = 2069;\n this.hash_table = new ArrayList<Bucket>();\n for (int i = 0; i < this.key_space; ++i) {\n this.hash_table.add(new Bucket());\n }\n }", "public Dictionary createDictionary(){\n Dictionary dict = new Dictionary(9973);\n return dict;\n }", "void mo53966a(HashMap<String, ArrayList<C8514d>> hashMap);", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public MyHashMap() {\n map = new ArrayList<>();\n for (int i = 0;i<255;i++)\n map.add(new Entry());\n }", "public void mo9224a(HashMap<String, String> hashMap) {\n }", "interface HashMap<K, V> {\n public boolean containsKey(K key);\n public V get(K key);\n public V put(K key, V value);\n public V remove(K key);\n public int size();\n}", "public static void createHashMap() {\n\t\t// create hash map\n\t\tHashMap<Integer, String> students = new HashMap<Integer, String>();\n\t\tstudents.put(1, \"John\");\n\t\tstudents.put(2, \"Ben\");\n\t\tstudents.put(3, \"Eileen\");\n\t\tstudents.put(4, \"Kelvin\");\n\t\tstudents.put(5, \"Addie\");\n\t\t// print the hash map\n\t\tfor (Map.Entry<Integer, String> e : students.entrySet()) {\n\t\t\tSystem.out.println(e.getKey() + \" \" + e.getValue());\n\t\t}\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashTableMap() {\r\n\t\tK = new LinkedList[10];\r\n\t\tV = new LinkedList[10];\r\n\t}", "public _No_706_DesignHashMap() {\n// Arrays.fill(arr, -1);\n }", "IcedHM() { _m = new NonBlockingHashMap<>(); }", "public static <K, V> MapBuilder<HashMap<K, V>, K, V> hashMap()\n {\n return new MapBuilder<HashMap<K, V>, K, V>(new HashMap<K, V>());\n }", "public HashEntityMap()\n\t\t{\n\t\t\tmapNameToValue = new HashMap<String, Integer>();\n\t\t}", "Hashi newHashi(int dim);", "public q677() {\n hm = new HashMap<>();\n words = new HashMap<>();\n }", "public boolean isHashMap();", "private void createHashtable()\n {\n int numLanguages = languages.length;\n mapping = new Hashtable(numLanguages, 1.0f);\n for (int i = 0; i < numLanguages; i++)\n mapping.put(languages[i], values[i]);\n }", "MyHashMap(int initialCapacity) {\r\n data = new Node[initialCapacity];\r\n }", "public InternalWorkingOfHashSet() {\r\n map = new HashMap<>();\r\n }", "public void instantiateTable(){\n hashTable = new LLNodeHash[16];\n }", "public IntObjectHashMap() {\n resetToDefault();\n }", "public DesignHashmap() {\n\t\ttable = new boolean[buckets][];\n\t}", "public HashTableMap() {\r\n this.capacity = 10; // with default capacity = 10\r\n this.size = 0;\r\n this.array = new LinkedList[capacity];\r\n\r\n }", "public MyHashMap() {\n keys = new MapNode[n];\n vals = new MapNode[n];\n for (int i=0; i < n ; ++i) {\n keys[i] = new MapNode();\n vals[i] = new MapNode();\n }\n }", "public static void main(String [] args){\n Map m = new HashMap();\n m.put(\"Tim\", 5);\n m.put(\"Joe\", \"x\");\n m.put(\"11\", 999);\n System.out.println(m);\n System.out.println(m.get(\"Tim\"));\n }", "@Test\n\tpublic void testIdentityHashMap() {\n\t\tInteger i1 = new Integer(10);\n\t\tInteger i2 = new Integer(10);\n\n\t\tHashMap m = new HashMap();\n\t\tm.put(i1, \"evyaan\");\n\t\tm.put(i2, \"varun\");\n\n\t\tassertEquals(\"{10=varun}\", m.toString());\n\n\t\tIdentityHashMap im = new IdentityHashMap();\n\t\tim.put(i1, \"evyaan\");\n\t\tim.put(i2, \"varun\");\n\n\t\t// System.out.println(im);\n\n\t}", "public MyHashMap() {\n store = new int[1000001]; // Max number of key-value pairs allowed in the HashMap, cant exceed it.\n Arrays.fill(store, -1); // we have to anyways return -1 if key doesn't exists.\n }", "public DesignHashSet() {\n map=new HashMap<>();\n }", "public Dictionary () {\n list = new DoubleLinkedList<>();\n this.count = 0;\n }", "public ScopedMap() {\n\t\tmap = new ArrayList<HashMap<K, V>>();\n\n\t}", "@Test\n public void hashMapInitialised()\n {\n Map<Integer, String> strings = MapUtil.<Integer, String>hashMap().keyValue(1, \"Me\").keyValue(2, \"You\");\n // Is this really better than calling strings.put(..)?\n\n assertEquals(\"You\", strings.get(2));\n }", "public HitCounter() {\n map = new HashMap<Integer, Integer>();\n }", "public static void main(String[] args) {\n\t\t\r\n\t Map<String,Integer> hashmap= new HashMap<String,Integer>();\r\n\t hashmap.put(\"Hiamsnhu\",12);\r\n\t hashmap.put(\"Khaneja\", 15);\r\n\t int size=hashmap.size();\r\n\t int hash=hashmap.hashCode();\r\n\t System.out.println(size);\r\n\r\n\t}", "public void setHashMap(HashMap<String, String> HashMap) {\n _toAdd = HashMap;\n }", "public static void main(String[] args) {\n Map<String, Set<Integer>> ms = new HashMap<>(); \n Set<Integer> s1 = new HashSet<>(Arrays.asList(1,2,3));\n Set<Integer> s2 = new HashSet<>(Arrays.asList(4,5,6));\n Set<Integer> s3 = new HashSet<>(Arrays.asList(7,8,9));\n ms.put(\"one\", s1);\n ms.put(\"two\", s2);\n ms.put(\"three\", s3);\n System.out.println(ms); \n // ch07.collections.Ch0706InterfacesVsConcrete$1\n // {one=[1, 2, 3], two=[4, 5, 6], three=[7, 8, 9]}\n\n // this is how LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>>\n // can be initially initialized\n LinkedHashMap<Integer,Tuple2<String,LinkedHashMap<Double,String>>> toc =\n new LinkedHashMap<>();\n System.out.println(toc); // just using toc to get rid of eclipse warning about not using it\n \n \n\n\n\n }", "@SuppressWarnings(\"unchecked\")\r\n\tpublic HashMap() {\r\n\t\tdata = (Node<MapEntry<K, V>>[])new Node[INITIAL_SIZE];\r\n\t\tfor(int i = 0; i < data.length; i++)\t\t\t\t\t\t\t//For every element in data...\r\n\t\t\tdata[i] = new Node<MapEntry<K,V>>(new MapEntry<K,V>(null));\t//Add a head node to it.\r\n\t\t\r\n\t\t//TODO: May have to just default as null and in the put method, if the slot is null, then put a head node in it. The post-ceding code after that is logically correct!\r\n\t\r\n\t\tsize = 0;\t//Redundant but helpful to see that the size is 0\r\n\t}", "public HashMultiSet() {\n\t\thMap = new HashMap<T, Integer>();\n\t\tsize = 0;\n\t}", "MAP createMAP();", "public MagicDictionary() {\n this.map = new HashMap<>();\n }", "@Override\n public HashMap<String, String> get_hashMap() {\n HashMap<String, String> temp = super.get_hashMap();\n\n temp.put(TAG.TYPE, String.valueOf(this.type));\n temp.put(TAG.SIZE, String.valueOf(this.size));\n temp.put(TAG.TAG, this.tag);\n temp.put(TAG.SPEED_BURROW, String.valueOf(this.burrow_speed));\n temp.put(TAG.SPEED_CLIMBING, String.valueOf(this.climbing_speed));\n temp.put(TAG.SPEED_FLYING, String.valueOf(this.flying_speed));\n temp.put(TAG.SPEED_SWIMMING, String.valueOf(this.swimming_speed));\n\n temp.put(TAG.CHALLENGE_RATING, String.valueOf(this.challenge_rating));\n temp.put(TAG.SENSES_VECTOR, String.valueOf(this.senses));\n temp.put(TAG.EXPERIENCE_POINTS, String.valueOf(this.experience_points));\n\n return temp;\n }", "public HashDictionary (int size) {\r\n\t\tthis.size = size;\r\n\t\ttable = new Node[size];\r\n\t\tfor (int i=0;i<size;i++) {\r\n\t\t\ttable[i]=null;\r\n\t\t}\r\n\t}", "public IDictionary getDictionary(){\n \treturn dict;\n }", "private HashMap pc() {\n if (_pcache == null) {\n _pcache = new HashMap(13);\n }\n return _pcache;\n }", "public HashTableMap(int capacity) {\r\n \r\n this.capacity = capacity; \r\n this.size = 0;\r\n \r\n this.array = new LinkedList[capacity];\r\n \r\n }", "public HashTable(int size){\n\n arraySize = size;\n hashArray = new Elements[arraySize];\n nullement = new Elements(\" -1 \"); \n }", "public CountingMap() {\n this( new HashMap<K, Integer>() );\n }", "public int hashCode()\n {\n return hash;\n }", "public MyHashMap() {\n arr = new int[100000];\n \n //To initialize the value with -1\n Arrays.fill(arr,-1);\n \n }", "public CompactHashMap() {\n\t\tthis(INITIAL_SIZE);\n\t}", "public static void main(String[] args) {\n\t\tHashMap<String,Integer> map=new HashMap<>();\n\t\tmap.put(null, 11);\n\t\tmap.put(null, 222);\n\t\t\n\t\tHashtable<String, Integer> table=new Hashtable<>();\n\t\t//table.put(null, 11);\n\t\tSystem.out.println(table);\n\t\tSystem.out.println(map);\n\t\tSystem.out.println(\"Hello\");\n\t\t\n\t\tString s1 = \"abc\";\n\t\tString s2 = \"abc\";\n\t\tSystem.out.println(\"s1 == s2 is:\" + s1 == s2);\n\n\t}", "public static void main(String[] args) {\n\t\tInteger u=new Integer(10);\n\t\tInteger u1=new Integer(10);\n\t\tIdentityHashMap<Integer,String> g=new IdentityHashMap();\n\t\tg.put(u, \"dhdanas\");\n;\n\t\tg.put(u1,\"dtttt\");\n\t\t\nSystem.out.println(g);\n}", "public static void main(String[] args) {\n Map<String, String> map = new HashMap<String, String>();\r\n map.put(\"a\", \"A\");\r\n map.put(\"b\", \"B\");\r\n map.put(\"c\", \"C\");\r\n \r\n \r\n int h = (new TestMap()).hashCode();\r\n \r\n String a = map.get(\"a\");\r\n \r\n \r\n \r\n \r\n for (String o : map.keySet()){\r\n \tSystem.out.println(o);\r\n \tSystem.out.println(map.get(o));\r\n \t\r\n }\r\n \r\n Map<String, String> map2 = new HashMap<String, String>();\r\n map2.putAll(map);\r\n \r\n for (Map.Entry<String, String> o : map2.entrySet()){\r\n \tSystem.out.println(o.getKey());\r\n \tSystem.out.println(o.getValue());\r\n }\r\n \r\n System.out.println(map2.containsValue(\"A\")); \r\n System.out.println(map2.equals(map)); \r\n\r\n\t}", "public static HashMap getInterfaces() {\n\t\treturn interfacehashmapAlreadyImpl;\r\n\t\t\r\n\t}", "public MyHashMap(int M) {\n\t\tthis.M = M;\n\t\tst = new MyLinkedList[M];\n\t\tfor (int i = 0; i < M; i++)\n\t\t\tst[i] = new MyLinkedList<Key, Value>();\n\t}", "public MagicDictionary() {\n\n }", "public BVHashtable()\n {\n super();\n }", "public TimeMap() {\n hashMap = new HashMap<String, List<Data>>();\n }", "public Dictionary(){\n front = null;\n numItems = 0;\n }", "public HashMap<String, String> getHashMap() {\n\t\treturn this.hashMap;\n\t}", "public Dictionary(){\n root = null;\n numItems = 0;\n }", "public interface Map<K, V>\n{\n // Adds the specified key-value pair to the map. Does nothing if the key already\n // exists in the map.\n void add(K key, V value);\n\n // Returns the value associated with the specified key, or null of that key doesn't\n // exist in the map\n V get(K key);\n\t\n // Removes the key-value pair with the specified key from the map. Does nothing if\n // the key doesn't exist in the map.\n void remove(K key);\n}", "public HashTag() {}", "Map<String, String> mo14888a();", "public HashMapStack(final int initialCapacity)\n {\n this.hashMap = new HashMap<>(initialCapacity);\n }", "public void setCountsHashMap(HashMap<Integer, Integer> countsHashMap){\n\t\tthis.countsHashMap = countsHashMap;\n\t}", "private static void LessonHash() {\n\n System.out.println(\"---Hash Table---\");\n\n Hashtable<Integer, String> oopPrinciples = new Hashtable<>();\n oopPrinciples.put(1, \"Inheritance\");\n oopPrinciples.put(2, \"Polymorphism\");\n oopPrinciples.put(3, \"Abstraction\");\n oopPrinciples.put(4, \"Encapsulation\");\n //oopPrinciples.put(5, null); // throws null pointer execption\n\n //Single output from hashtable\n System.out.println(oopPrinciples.get(3));\n\n //All values\n for(Integer key : oopPrinciples.keySet()) {\n System.out.println(oopPrinciples.get(key));\n };\n System.out.println(\"----------------\");\n\n // Key-Value Pairs / Value List\n /*\n Hash Map\n 1.) Does allow null for either key or value\n 2.) unsynchronized, not thread safe, but performance is better\n */\n\n System.out.println(\"---Hash Map---\");\n\n HashMap<Integer, String> oopPrinciples2 = new HashMap<>();\n oopPrinciples2.put(1, \"Inheritance\");\n oopPrinciples2.put(2, \"Polymorphism\");\n oopPrinciples2.put(3, \"Abstraction\");\n oopPrinciples2.put(4, \"Encapsulation\");\n oopPrinciples2.put(5, null);\n\n //Single output from hashtable\n System.out.println(oopPrinciples2.get(3));\n\n //All values\n for(Integer key : oopPrinciples.keySet()) {\n System.out.println(oopPrinciples.get(key));\n };\n System.out.println(\"----------------\");\n\n // Key-Value Pairs / Value List\n /*\n Hash Set\n 1.) Built in mechanism for duplicates\n 2.) used for when you wanna maintain unique list\n */\n\n System.out.println(\"---Hash Set---\");\n\n HashSet<String> oopPrinciples3 = new HashSet<>();\n oopPrinciples3.add(\"Inheritance\");\n oopPrinciples3.add(\"Polymorphism\");\n oopPrinciples3.add(\"Abstraction\");\n oopPrinciples3.add(\"Encapsulation\");\n\n //Single output from hashtable\n System.out.println(oopPrinciples3);\n\n //All values\n for(String s : oopPrinciples3) {\n System.out.println(s);\n }\n\n if(oopPrinciples.contains(\"Inheritance\")) {\n System.out.println(\"Value does exist!\");\n } else {\n System.out.println(\"Value does not exist!\");\n }\n\n System.out.println(\"----------------\");\n }", "public static void main(String[] args) \r\n {\n TreeMap<Employee, Integer> hashMap = new TreeMap<Employee, Integer>(); \r\n \r\n // Mapping string values to int keys \r\n hashMap.put(new Employee(10,\"uday\"), 10); \r\n hashMap.put(new Employee(11,\"uday\"), 11); \r\n hashMap.put(new Employee(12,\"uday\"), 12); \r\n hashMap.put(new Employee(13,\"uday\"), 13); \r\n \r\n for (Entry<Employee, Integer> e : hashMap.entrySet()) \r\n System.out.println(e.getKey().toString() + \" \" + e.getValue()); \r\n \r\n HashMap<String, Integer> map = new HashMap<>(); \r\n \r\n }", "protected Map<E, ListenerEntry<? extends E>> createMap() {\n\t\treturn new WeakHashMap<>();\n\t}", "HashTable() {\n int trueTableSize = nextPrime(tableSize);\n HT = new FlightDetails[nextPrime(trueTableSize)];\n }", "public interface HashTable<K, V> {\n\n void put(K key, V value);\n\n V get(K key);\n\n V remove(K key);\n\n int size();\n}", "QHT() {\r\n /*\r\n ***TO-DO***\r\n Default constructor\r\n should initialize the hash table with default capacity\r\n */\r\n initCap = 2;\r\n for (int i = 1; i < DEFAULT_EXP; i++) {\r\n initCap *= 2;\r\n }\r\n htable = new KVPair[initCap];\r\n }", "public FileInfo()\r\n {\r\n hash = new HashInfo();\r\n }", "public static void main(String[] args) {\n\t\tHashMapCreation cr = new HashMapCreation();\n\t\tHashMap<Integer , String> hp = new HashMap<Integer , String>();\n\t\thp = cr.createMap(hp, 34,\"Rahul\");\n\t\thp = cr.createMap(hp, 22,\"John\");\n\t\thp = cr.createMap(hp, 86,\"Sam\");\n\t\thp = cr.createMap(hp, 65,\"Nancy\");\n\t\thp = cr.createMap(hp, 66,\"April\");\n\t\t//cr.removeKey(hp, 22);\n\t\tString srr = cr.getValue(hp, 34);\n\t\tSystem.out.println(\"The value for key 34 is: \" + srr);\n\t\t// Display content\n\t\tfor(int key : hp.keySet())\n\t\t\tSystem.out.println(\"key and Value : \" + key +\" \" + hp.get(key));\n\t}", "public int sizeOfMap(){return size;}", "public HashMapStack(final int initialCapacity, final float loadFactor)\n {\n this.hashMap = new HashMap<>(initialCapacity, loadFactor);\n }", "public void createHashedVector() {\n Double val;\n for(int i=0; i < this.size; i++) {\n val = this.get(i);\n if(val !=0) {\n this.hmap.put(i, val);\n }\n } \n }", "public Ledger() {\n\tH = new TreeMap<String, Integer>();\n }", "public AbstractIntHashMap() {\n this(DEFAULT_CAPACITY, DEFAULT_LOADFACTOR);\n }" ]
[ "0.759851", "0.75416577", "0.73203707", "0.72876936", "0.7234462", "0.7062188", "0.705066", "0.70028", "0.6943248", "0.68949187", "0.68793356", "0.685399", "0.67806804", "0.6714722", "0.67048776", "0.6663952", "0.66589075", "0.6596285", "0.65832245", "0.6563401", "0.6535798", "0.6535555", "0.65063727", "0.64932275", "0.645719", "0.643478", "0.63722444", "0.6369015", "0.6336059", "0.63353026", "0.63248634", "0.6299851", "0.62363744", "0.6196571", "0.618766", "0.6175046", "0.6143931", "0.61427635", "0.61420715", "0.613501", "0.6129281", "0.6118594", "0.6108776", "0.60984933", "0.6092986", "0.6087916", "0.60828555", "0.6074723", "0.60707784", "0.6000908", "0.5984823", "0.5984438", "0.5963758", "0.5962933", "0.5962392", "0.59547216", "0.5945866", "0.59447175", "0.5925341", "0.59139335", "0.591172", "0.59060955", "0.5898884", "0.58883315", "0.58819985", "0.5875807", "0.5845476", "0.58212095", "0.58141816", "0.5813239", "0.58116233", "0.5810407", "0.5809556", "0.5793615", "0.57865506", "0.5778494", "0.5777751", "0.5775643", "0.5770128", "0.5754806", "0.5754019", "0.5742934", "0.5740556", "0.5735629", "0.5734998", "0.5729965", "0.5724233", "0.57230085", "0.57108647", "0.5703009", "0.5701248", "0.5700422", "0.56979245", "0.56948876", "0.5687069", "0.56851697", "0.5679592", "0.5678103", "0.56612563", "0.5660848", "0.56586885" ]
0.0
-1
Constructs an item using a url to it.
public FSItem(String itemPath) { this.fsItemPath = itemPath; this.itemProperties = new FSItemProperties(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ItemFactory(final String url) {\n this.url = url;\n }", "Builder addUrl(URL value);", "Object create(URL url) throws IOException, SAXException, ParserConfigurationException;", "public NewsItem(String newsHeadline, String newsSection, String newsDate, String newsAuthor, String url) {\n mHeadline = newsHeadline;\n mSection = newsSection;\n mDate = newsDate;\n mAuthor = newsAuthor;\n mUrl = url;\n }", "public UrlObject getItem(Context context, String url) {\n GlobalContextWrapper.bindContext(context);\n if (context == null || url == null) {\n throw new RuntimeException(\"parameter can't be null!\");\n }\n DatabaseConnectivity connectivity =\n new DatabaseConnectivity(context,\n mAuthority,\n mClass);\n Query query = new Query(mClass);\n ExpressionToken selToken =\n UrlObject.COLUMN_URL_PATTERN.eq(url);\n String str = selToken.toString();\n if (selToken != null) {\n query.setSelection(selToken);\n }\n List<DatabaseObject> objects = connectivity.query(query);\n if (objects == null || objects.size() <= 0) {\n throw new RuntimeException(\"query result is null!\");\n }\n\n GlobalContextWrapper.unbindContext(context);\n return (UrlObject) objects.get(0);\n }", "public CachableItem(String url, Object payload,int size)\n {\n this.url=url;\n this.payload=payload;\n this.payloadSize=size;\n priorityNumber=0;\n }", "Builder addUrl(String value);", "@Override\n public URI createUri(String url) {\n try {\n this.uri = new URI(url);\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n return uri;\n }", "private Drawable creaImmagineDaUrl(String urlImmagine)\n {\n try\n {\n InputStream is = (InputStream) new URL(urlImmagine).getContent();\n Drawable d = Drawable.createFromStream(is, null);\n return d;\n }catch (Exception e) {\n System.out.println(\"Exc=\"+e);\n return null;\n }\n }", "public OnlineResource(String url, String title) { \r\n super(title);\r\n this.url = url;\r\n \r\n }", "protected abstract void makeItem();", "public Item(){}", "private Listitem constructListItem(final String name,String label, String imageSrc, final String locationUri) {\n\t\tListitem tb = new Listitem();\n\t\t\n\t\ttb.setImage(imageSrc);\n\t\ttb.setLabel(label);\n\t\ttb.setStyle(\"padding: 2px; border-spacing: 0\");\n\n\t\t\n\t\t//new and register listener for events\n\t\tEventListener<Event> onActionListener = new SerializableEventListener<Event>(){\n\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\tpublic void onEvent(Event event) throws Exception {\n\t\t\t\t//redirect current url to new location\n\t\t\t\tif(locationUri.startsWith(\"http\")){\n\t\t\t\t\t//open a new browser tab\n\t\t\t\t\tExecutions.getCurrent().sendRedirect(locationUri);\n\t\t\t\t}else{\n\t\t\t\t\t//use iterable to find the first include only\n\t\t\t\t\tInclude include = (Include)Selectors.iterable(eastSideBarTabbox.getPage(), \"#mainInclude\").iterator().next();\n\t\t\t\t\tinclude.setSrc(locationUri);\n\t\t\t\t\tSessions.getCurrent().setAttribute(\"CURRENT_PAGE\", name);\n\t\t\t\t\t\n\t\t\t\t\t//advance bookmark control, \n\t\t\t\t\t//bookmark with a prefix\n\t\t\t\t\tif(name!=null){\n\n\t\t\t\t\t\tgetPage().getDesktop().setBookmark(Context.BOOKMARK_SEPARATOR + name);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t};\t\t\n\t\ttb.addEventListener(Events.ON_CLICK, onActionListener);\n\n\t\treturn tb;\n\t}", "public Item(String input) {\n name = input;\n }", "public Link(String url) {\n try {\n uri = new URL(fix(url)).toURI();\n } catch (Exception e) {\n uri = URI.create(\"\");\n }\n }", "public Item(String itemName, String itemDescription){\n this.itemName = itemName;\n this.itemDescription = itemDescription;\n}", "CollectionItem createCollectionItem();", "Object create(String uri) throws IOException, SAXException, ParserConfigurationException;", "Builder addThumbnailUrl(URL value);", "public CampusServiceItem(Hyperlink link, String path) {\n\t\tthis.link = link;\n\t\tthis.path = path;\n\t}", "public Item() {}", "Link createLink();", "public ConfigurationItem(URI _uri, InputStream _item, RevisionID _revision)\r\n\t{\r\n\t\titem \t= _item;\r\n\t\turi \t= _uri;\r\n\t\trevision= _revision;\r\n\t\ttype \t= null;\r\n\t\tuser \t= null;\r\n\t}", "private static Item item(String fileName) {\n Item item = new Item();\n item.setTitle(fileName);\n item.setLink(\"/files/\" + fileName);\n return item;\n }", "private static Object makeItem(final String item){\n return new Object(){\n public String toString() {\n return item;\n }\n };\n }", "private Item(){}", "void createItem (String name, String description, double price);", "public Photo(String url){\n tags = new ArrayList<>();\n caption = \"\";\n //this.url = Uri.parse(url);\n this.urlString = url;\n }", "public Thumbnail(String url) {\n\t\tthis.url = url;\n\t}", "public MainItemObject(String htmlText, String imageUrl) {\n this.htmlText = htmlText;\n this.imageUrl = imageUrl;\n }", "QuoteItem createQuoteItem();", "public PodcastModel(int id, URL url) {\n super();\n this.id = id;\n this.url = url;\n }", "private Item getNewItem(String gtin) throws IOException {\n\n\t\tlog.info(\"Getting Item with Barcode: \" + gtin);\n\t\tGson gson = new Gson();\n\t\tURL url = new URL(\"https://api.outpan.com/v2/products/\" + gtin + \"?apikey=e13a9fb0bda8684d72bc3dba1b16ae1e\");\n\n\t\tStringBuilder temp = new StringBuilder();\n\t\tScanner scanner = new Scanner(url.openStream());\n\n\t\twhile (scanner.hasNext()) {\n\t\t\ttemp.append(scanner.nextLine());\n\t\t}\n\t\tscanner.close();\n\n\t\tItem item = new Item(gson.fromJson(temp.toString(), Item.class));\n\t\t\n\t\tif (item.name != null) {\n\t\t\treturn item;\n\t\t} else {\n\t\t\tthrow new NoNameForProductException();\n\t\t}\n\t}", "public Item createItem() {\n if(pickUpImplementation == null)\n {\n pickUpImplementation = new DefaultPickUp();\n }\n\n if(lookImplementation == null)\n {\n lookImplementation = new DefaultLook(R.string.default_look);\n }\n\n if(defaultItemInteraction == null)\n {\n throw new IllegalArgumentException(\"No default interaction specified!\");\n }\n\n\n return new Item(\n id,\n name,\n pickUpImplementation,\n lookImplementation,\n useImplementation,\n defaultItemInteraction\n );\n }", "protected MovieRepository(String url) {\n URL = url;\n }", "public void setURL(String _url) { url = _url; }", "public static URL buildUrl() {\n Uri builtUri = Uri.parse(CONTENT_JSON_URL).buildUpon()\n .build();\n\n URL url = null;\n try {\n url = new URL(builtUri.toString());\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n return url;\n }", "@Override\n\tpublic Link createLink(String caption, String url) {\n\t\treturn new ListLink(caption, url);\n\t}", "public static void create(@Required String url, @Required String html) {\n\t\tRentalListing rentalListing = new RentalListing(url, html, 950);\n\t\trentalListing.save();\n\t\t\n\t\tString ipv4 = request.remoteAddress;\n\t\ttry {\n\t\t\tInetAddress addr = InetAddress.getByName(ipv4);\n\t\t\tUnauthedUserListing unauthedListing = new UnauthedUserListing(addr, rentalListing);\n\t\t\tunauthedListing.save();\n\t\t} catch(UnknownHostException e) {\n\t\t\tLogger.error(\">>> Invalid ipv4 address: \" + ipv4);\n\t\t}\n\t}", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "@NotNull public Builder url(@NotNull String url) {\n putValue(\"url\", url);\n return this;\n }", "public static Asset createAsset(URL url) throws IOException {\n \t\t// Create a temporary file from the downloaded URL\n \t\tFile newFile = File.createTempFile(\"remote\", null, null);\n \t\ttry {\n \t\t\tFileUtils.copyURLToFile(url, newFile);\n\t\t\tif (newFile.exists() && newFile.length() < 20)\n \t\t\t\treturn null;\n \t\t\tAsset temp = new Asset(FileUtil.getNameWithoutExtension(url), FileUtils.readFileToByteArray(newFile));\n \t\t\treturn temp;\n \t\t} finally {\n \t\t\tnewFile.delete();\n \t\t}\n \t}", "ListItem createListItem();", "public maestro.payloads.FlyerFeaturedItem.Builder setItemImageUrl(CharSequence value) {\n validate(fields()[8], value);\n this.item_image_url = value;\n fieldSetFlags()[8] = true;\n return this;\n }", "Builder addGenre(URL value);", "public MsxReader ( URL url ) {\r\n\t\tsuper();\r\n\r\n\t\taddURL(url);\r\n\t}", "SimpleLink createSimpleLink();", "public void setUrl(String url);", "public void setUrl(String url);", "public Builder url(String url) {\n this.url = url;\n return this;\n }", "public Item(String line) {\n\t\tString components[] = line.split(\":\",2);\n\t\tif(components.length != 2) {\n\t\t\t//System.err.println(\"Couldn't parse item! Original line: \"+line);\n\t\t\treturn;\n\t\t}\n\t\tthis.identifier = components[0].trim();\n\t\tthis.title = components[1].trim();\n\t}", "public ItemReference alloc();", "@NonNull\n protected AbstractEntityItem.Builder newBuilder(\n @NonNull IRequiredValueModelNodeItem item,\n @NonNull ItemType itemType,\n @NonNull String identifier) {\n return new AbstractEntityItem.Builder()\n .instance(item, itemType)\n .originalIdentifier(identifier)\n .source(ObjectUtils.requireNonNull(item.getBaseUri(), \"item must have an associated URI\"));\n }", "protected Feed(String url, List<String> userTitle, Settings settings) {\n\t\tthis.url = url;\n\t\tthis.items = Collections.synchronizedSet(new HashSet<FeedItem>());\n\t\tthis.userTitle = new ArrayList<>(userTitle);\n\t\tthis.settings = settings;\n\t}", "public void setItemImageUrl(CharSequence value) {\n this.item_image_url = value;\n }", "public void setURL(String url);", "public Builder(final String url, final String key) {\n\t\t\tthis.key = key;\n\t\t\tthis.url = url;\n\t\t}", "interface UrlModifier {\n\n String createUrl(String url);\n\n }", "public Item(String description) {\n this.description = description;\n }", "public Item(String name, ItemType type)\n {\n\tthis.name = name;\n\tthis.type = type;\n }", "private static URL createURL(String requestedUrl) {\n URL url = null;\n try {\n url = new URL(requestedUrl);\n } catch (MalformedURLException e) {\n Log.e(TAG, \"createdUrl: Problem building URL\", e);\n }\n return url;\n }", "public Item getItem(String typeItem){\r\n if(typeItem.equals(\"coeur\")){\r\n Item coeur = new Coeur();\r\n return coeur;\r\n } else if(typeItem.equals(\"potionvie\")){\r\n Item potion = new Potion();\r\n return potion;\r\n } else if(typeItem.equals(\"hexaforce\")){\r\n Item hexa = new Hexaforce();\r\n return hexa;\r\n } else {\r\n return null;\r\n }\r\n }", "@Schema(description = \"Link to get this item\")\n public String getUrl() {\n return url;\n }", "public Source(String name, String description, String story, double mass, \n String itemtype, String itemname, String itemdescription, String itemstory, \n double itemmass, double itemnutrition) \n {\n super(name, description, story, mass);\n this.itemtype = itemtype;\n \n this.itemname = itemname;\n this.itemdescription = itemdescription;\n this.itemstory = itemstory; \n this.itemmass = itemmass;\n this.itemnutrition = itemnutrition;\n \n //creates item of the type itemtype, which is specified upon creation of the source\n if(itemtype.equals(\"Drink\")) {new Drink(itemname, itemdescription, itemstory, itemmass, itemnutrition);}\n else if(itemtype.equals(\"Food\")) {new Food (itemname, itemdescription, itemstory, itemmass, itemnutrition);}\n else if(itemtype.equals(\"Item\")) {item = new Item (itemname, itemdescription, itemstory, itemmass);} \n }", "private void createFakeAssetURLMapEntry(MarinerRequestContext context,\n String url) {\n // copied from ObjectElement implementation \n ApplicationContext ac = ContextInternals.getApplicationContext(context);\n PackageResources pr = ac.getPackageResources();\n if (pr != null) {\n PackagedURLEncoder packagedURLEncoder = ac.getPackagedURLEncoder();\n if (packagedURLEncoder != null) {\n String encoded = packagedURLEncoder.getEncodedURI(url);\n PackageResources.Asset prAsset = new PackageResources.Asset(\n url, false);\n pr.addAssetURLMapping(encoded, prAsset);\n }\n }\n }", "Builder addThumbnailUrl(String value);", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n url_ = value;\n onChanged();\n return this;\n }", "@Override\n public void initialize(URL url, ResourceBundle rb) {\n \n createBookingTimeStart.localTimeProperty().set(LocalTime.of(0,0));\n createBookingTimeEnd.localTimeProperty().set(LocalTime.of(0,0));\n \n booking = new Booking();\n \n \n createBookingType.getItems().addAll(dbH.getBookingTypes(2).toArray(new String[dbH.getBookingTypes(2).size()]));\n \n createBookingMechanic.getItems().addAll(getMechanicNames(dbH.getAllMechanics())); \n \n }", "public Builder setUrl(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n url_ = value;\n onChanged();\n return this;\n }", "Builder addMainEntityOfPage(URL value);", "protected FirmRepository(String url){\r\n super(TABLE_NAME,KEY,url);\r\n }", "public Card(URL url) {\n\t\timageLink = url;\n\t\tfaceUp = false;\n\t\tinPlay = true;\n\t}", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n url_ = value;\n onChanged();\n return this;\n }", "public Task(String url) {\n this.url = url;\n logger.debug(\"Created task for \" + url);\n }", "public Shape(URL url) {\n this(url, \"cm\");\n }", "public DiscoveryItem(String key) {\n this(key, null, 0, 0, null);\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n url_ = value;\n onChanged();\n return this;\n }", "private static URL createURL(String urlString) {\n\n // Create an empty url\n URL url = null;\n\n try {\n // Try to make a url from urlString param\n url = new URL(urlString);\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n Log.v(LOG_TAG, \"Error creating URL: \" + e);\n }\n\n //Return the new url\n return url;\n }", "public ArticleListWeb(Context context, String url) {\n\t\tsuper(context);\n\t\tmURL = url;\n\t\t\n\t\t\n\t}", "private static FeedSource createFeedSource(String name, URL url) {\n FeedSource feedSource = new FeedSource();\n feedSource.fetchFrequency = FetchFrequency.MINUTES;\n feedSource.fetchInterval = 1;\n feedSource.deployable = false;\n feedSource.name = name;\n feedSource.projectId = project.id;\n feedSource.retrievalMethod = FeedRetrievalMethod.FETCHED_AUTOMATICALLY;\n feedSource.url = url;\n return feedSource;\n }", "private URL createURL() {\n try {\n Log.d(\"URL\", \"create\");\n String urlString = \"http://cs262.cs.calvin.edu:8084/cs262dCleaningCrew/task/cjp27\";\n return new URL(urlString);\n } catch (Exception e) {\n Toast.makeText(this, getString(R.string.connection_error), Toast.LENGTH_SHORT).show();\n }\n\n return null;\n }", "public Item() {\n }", "public Item() {\n }", "public HtmlList(StringReader page, String url) throws InvalidUrlException {\r\n super(page, url);\r\n initBeforeParsing();\r\n try {\r\n parsePage(page);\r\n } catch (Exception e) {\r\n throw new InvalidUrlException(url);\r\n }\r\n }", "public Builder setUrl(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n url_ = value;\n onChanged();\n return this;\n }", "public Item()\n {\n super();\n }", "public Urls(IDomainModel model) {\n\t\tsuper(model);\n\t}", "public @NotNull Item newItem();", "public Item(String initName, String itemDesc)\n {\n // initialise instance variables\n name = initName;\n desc = itemDesc;\n }", "public Item(int photo, int name, int address, int info) {\n //The variables take the value of the arguments\n mImageResourceId = photo;\n mName = name;\n mAddress = address;\n mInfo = info;\n }", "void setUrl(String url) {\n this.url = Uri.parse(url);\n }", "Builder addImage(URL value);", "Builder addSameAs(URL value);", "String getURL(FsItem f);", "public Item() {\r\n this.name = \"\";\r\n this.description = \"\";\r\n this.price = 0F;\r\n this.type = \"\";\r\n this.available = 0;\r\n this.wholesaler = new Wholesaler();\r\n this.wholesalerId = 0;\r\n this.category = new Category();\r\n this.categoryId = 0; \r\n }", "public FlyerFeaturedItem() {}", "public Database(String url) {\n this.url = url;\n\n File f = new File(url);\n\n if (f.exists()) {\n try {\n f.mkdirs();\n f.createNewFile();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n //create table relationship\n LinkedList<String> relationship_attributes = new LinkedList<>();\n relationship_attributes.add(\"id_entity1\");\n relationship_attributes.add(\"id_entity2\");\n relationship_attributes.add(\"description\");\n this.create_table(\"relationship\", relationship_attributes);\n }", "public ItemInfo () {}" ]
[ "0.77380604", "0.6300244", "0.6288406", "0.6139587", "0.61199594", "0.60495895", "0.604736", "0.5946719", "0.5846485", "0.5846421", "0.5812754", "0.5811744", "0.5789482", "0.5775927", "0.57570595", "0.5713719", "0.5696129", "0.56955856", "0.5680863", "0.56538767", "0.56508833", "0.56497055", "0.5629143", "0.5615808", "0.5606103", "0.55973864", "0.557705", "0.5576519", "0.55510247", "0.5520687", "0.5517027", "0.5512319", "0.55022484", "0.5492789", "0.54819304", "0.54811954", "0.5481175", "0.5462967", "0.5456158", "0.54483014", "0.54483014", "0.54483014", "0.544744", "0.54358083", "0.5432516", "0.54233897", "0.54227036", "0.5412972", "0.54061025", "0.54061025", "0.5402272", "0.539557", "0.539191", "0.5389825", "0.53878754", "0.5386741", "0.5386224", "0.5385394", "0.53255683", "0.53251994", "0.532427", "0.53104585", "0.5306201", "0.5302814", "0.5296042", "0.5294517", "0.52939755", "0.52893686", "0.528886", "0.52818197", "0.5274438", "0.52641714", "0.52622104", "0.52620643", "0.52591753", "0.52547663", "0.5249573", "0.5245715", "0.5243945", "0.5243945", "0.5243898", "0.5241959", "0.52332073", "0.522975", "0.52209115", "0.52209115", "0.521737", "0.52164", "0.52155054", "0.5209107", "0.52042466", "0.5201081", "0.5196698", "0.5196104", "0.5190841", "0.5184781", "0.5182606", "0.5172872", "0.5160694", "0.51568884", "0.5147372" ]
0.0
-1
A getter for the path of the item.
public String getFsItemPath() { return fsItemPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPath() {\n\t\treturn getString(\"path\");\n\t}", "public String pathOfItem(Pathable item) {\n return null; // todo: implement this method\n }", "public String getPath() { \n\t\treturn getPathElement().getValue();\n\t}", "public String getPath() {\n\t\treturn this.path;\n\t}", "public String getPath() {\n\n\t\treturn this.path;\n\n\t}", "public final String getPath() {\n\t\treturn this.path.toString();\n\t}", "public String getPath() {\n return this.path;\n }", "public final String getPath() {\n\t return m_path;\n\t}", "public String getPath(){\n\t\t\treturn this.path;\n\t\t}", "public String getPath()\n {\n\n return _path;\n }", "public String getPath() {\n\t\treturn path;\n\t}", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public String getPath() {\n return this.path;\n }", "public CustomPath getPath() {\n\t\treturn path;\n\t}", "String getPath() {\n return this.path;\n }", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\treturn path;\r\n\t}", "String getPath() {\r\n\t\treturn path;\r\n\t}", "public String getPath() {\r\n\t\t\treturn path;\r\n\t\t}", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\n return path;\n }", "public String getPath() {\r\n return path;\r\n }", "public String getPath() {\r\n return path;\r\n }", "public Path getPath() {\n return this.path;\n }", "public final String getPath()\n {\n return path;\n }", "public String getPath()\n {\n return path;\n }", "public String getPath()\n {\n return path;\n }", "String getPath() {\n return path;\n }", "public Path getPath(){\n return this.path;\n }", "public java.lang.String getPath() {\n\t\t return path;\n\t }", "public Path getPath();", "public String getPath(){\r\n\t\treturn path;\r\n\t}", "public Path getPath() {\n return path;\n }", "public Path getPath() {\n return path;\n }", "String getPath() {\n return mPath;\n }", "@Nullable public String getPath() {\n return path;\n }", "public Path getPath() {\n return mPath;\n }", "IPath getPath();", "public String getPath() {\n return m_path;\n }", "protected String getPath ()\n\t{\n\t\treturn path;\n\t}", "Path getPath() {\n return this.path;\n }", "public Tile getPath() {\n\t\treturn path;\n\t}", "public String path() {\n return this.path;\n }", "public String path() {\n return this.path;\n }", "public String getPath()\r\n/* 26: */ {\r\n/* 27:57 */ return this.path;\r\n/* 28: */ }", "Path getPath();", "public File getPath() {\n return this.path;\n }", "protected String path() {\n return path(getName());\n }", "public String getPath();", "public String getPath();", "public String getPath();", "public SoPath getPath() {\n\t\t return path; \n\t}", "public String path() {\n return filesystem().pathString(path);\n }", "@JsonProperty(\"path\")\r\n public String getPath() {\r\n return path;\r\n }", "@JsonProperty(\"path\")\r\n public String getPath() {\r\n return path;\r\n }", "public int path(){\n\t\treturn this.path;\n\t}", "public String getPath() {\n return (path == null || path.equals(\"\")) ? \"/\" : path;\n }", "public Path getPath() {\n return p;\n }", "public String getPathName()\n {\n return getString(\"PathName\");\n }", "@JsonProperty(\"path\")\n public String getPath() {\n return path;\n }", "public String getPathName();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "String getPath();", "@Override\n\t@XmlTransient\n\tpublic Path getPath() {\n\t\treturn path;\n\t}", "public String getPath()\n {\n StringBuilder buff = new StringBuilder();\n Resource r = this;\n while(r != null)\n {\n if(r.getId() != 1)\n {\n buff.insert(0, r.getName());\n }\n r = r.getParent();\n if(r != null || this.getId() == 1)\n {\n buff.insert(0, '/');\n }\n }\n return buff.toString();\n }", "@Nullable String getPath();", "public java.lang.String getPath(int index) {\n return path_.get(index);\n }", "public String toPathString() {\n return path();\n }", "public final String path() {\n return string(preparePath(concat(path, SLASH, name)));\n }", "public String path() {\n\treturn path;\n }", "@Nonnull\n Path getPath();", "Map<String, PathItem> getPathItems();" ]
[ "0.79007244", "0.7587696", "0.7557178", "0.7534287", "0.75304013", "0.7500266", "0.74533296", "0.74446756", "0.7415069", "0.7407804", "0.7399457", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.73993415", "0.739692", "0.73939574", "0.7388873", "0.7388873", "0.7388873", "0.7375215", "0.736198", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73411906", "0.73393136", "0.73393136", "0.7330735", "0.7303358", "0.73016816", "0.73016816", "0.7301248", "0.7294541", "0.72749853", "0.72698283", "0.72577614", "0.72512716", "0.7242384", "0.7241479", "0.72363013", "0.7233811", "0.7222892", "0.72117865", "0.7184175", "0.7183554", "0.7126745", "0.7106921", "0.7106921", "0.7064707", "0.70166564", "0.70151246", "0.69656545", "0.69438654", "0.69438654", "0.69438654", "0.6912359", "0.68895257", "0.6865797", "0.6865797", "0.6863257", "0.6859154", "0.6814201", "0.6812828", "0.6808389", "0.6803603", "0.67750585", "0.67750585", "0.67750585", "0.67750585", "0.67750585", "0.67738104", "0.6771148", "0.6769056", "0.675907", "0.67568356", "0.6743939", "0.6738396", "0.672633", "0.670107" ]
0.6765416
94
sets the path of the item.
public void setFsItemPath(String fsItemPath) { this.fsItemPath = fsItemPath; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setPath(String path);", "public void setPath(String path)\r\n/* 21: */ {\r\n/* 22:53 */ this.path = path;\r\n/* 23: */ }", "void setPathItems(Map<String, PathItem> items);", "public void setPath(String path);", "public void setPath(String path){\n mPath = path;\n }", "public void setPath(Path path)\n\t{\n\t\tpathList.clear();\n\t\tpathList.add(path);\n\t}", "public free_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setPath(String path)\n {\n try\n {\n // Tokenize the path\n pathArray = getPathResolved(path);\n \n // Set path property\n this.path = path;\n }\n catch (NumberFormatException nfe)\n {\n // Reset path property\n this.path = \"\";\n }\n }", "public void setPath(Tile path) {\n\t\tthis.path = path;\n\t}", "public void setPath(Path path) {\n this.path = path;\n }", "public void setPath(String path)\n {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void changePath(String newPath){\n this.path=newPath;\n }", "public void setPath(String path) {\r\n this.path = path;\r\n }", "public void setPath(int path){\n\t\tthis.path = path;\n\t}", "public void updatePath() {\n\t\tString oldPath = this.path;\n\t\tif (materializePath()) {\n\t\t\tPageAlias.create(this, oldPath);\n\t\t\tupdateChildPaths();\n\t\t}\n\t}", "public void setPath(String path) {\n if (!path.startsWith(\"/\")) {\n this.path = \"/\" + path;\n } else {\n this.path = path;\n }\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n this.path = path;\n }", "public void setPath(String path) {\n\n this.path = path;\n }", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void setPath(String path) {\r\n\t\tthis.path = path;\r\n\t}", "public void addPath(PathItem pathItem) {\r\n pathItems.add(pathItem);\r\n }", "Paths addPathItem(String name, PathItem item);", "void setPath() {\n\t\tif(from.getSelectedItem() != null){\n\t\t\tint ifrom = (int) from.getSelectedItem();\n\t\t\tint ito = (int) to.getSelectedItem();\n\t\t\tPathFinder finder = new BellmanFord(this.app.graph, ifrom-1);\n\t\t\tfinder.findAll();\n\t\t\tArrayList<Integer> path = finder.getPath(ito-1);\n\t\t\tStringBuilder pathStr = new StringBuilder(\"[\");\n\t\t\tif(path != null){\n\t\t\t\tfor(int i = path.size()-1; i >= 0 ; i--){\n\t\t\t\t\tpathStr.append((path.get(i)+1) + \" \");\n\t\t\t\t}\n\t\t\t\tpathStr.append(\"]\");\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.pathLabel.setText(pathStr.toString());\n\t\t}\n\t\t\n\t}", "private void downPath(FileModel item) {\n if (item != null && item.getFile() != null) {\n File path = item.getFile();\n onPathChanged(this.path, path);\n if (path.isDirectory()) {\n this.path = path;\n load(null);\n }\n }\n }", "public void setPath(CustomPath path) {\n\t\tthis.path = path;\n\t\t\n\t\tif(path.isHighlighted())\n\t\t{\n\t\t\tsetHighlighted(true);\n\t\t}else\n\t\t{\n\t\t\tsetHighlighted(false);\n\t\t}\n\t}", "public void setPath(Position[] path) {\n\t\tif(path != null)\n\t\t\tthis.path = path;\n\t}", "public void setPath(ArrayList<String> newPath) {\n list = newPath;\n }", "public void addPath(String path, IPathItem pathItem){\r\n pathsMap.put(path,pathItem);\r\n }", "public setAttribute_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setPath(java.lang.String path) {\n\t\t this.path = path;\n\t }", "void setPath(DrivePath path);", "@Override\n public void setPath( final Path path ) {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public Builder setPath(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePathIsMutable();\n path_.set(index, value);\n onChanged();\n return this;\n }", "public listStatus_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setPath(Path inputPath) {\n path = inputPath;\n node = path.getNodes().getFirst();\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "@JsonProperty(\"path\")\r\n public void setPath(String path) {\r\n this.path = path;\r\n }", "public Builder setCurrentPath(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n currentPath_ = value;\n onChanged();\n return this;\n }", "public void initPath() {\r\n\t\tpath = new Path();\r\n\t}", "@JsonProperty(\"path\")\n public void setPath(String path) {\n this.path = path;\n }", "public void\nsetPath(SoPath path)\n{\n // ref the input path\n if (path != null)\n path.ref();\n\n // nuke the old path\n if (pathOfInterest != null) {\n pathOfInterest.unref();\n pathOfInterest = null;\n }\n // and copy the new path\n if (path != null) {\n pathOfInterest = path.copy();\n pathOfInterest.ref();\n }\n\n // unref the input path\n if (path != null)\n path.unref();\n\n}", "public void setPath(File path) {\n this.path = path;\n }", "public ElementDefinitionDt setPath(StringDt theValue) {\n\t\tmyPath = theValue;\n\t\treturn this;\n\t}", "public void setPaths(List<PathItem> pathItems) {\r\n this.pathItems.clear();\r\n this.pathItems.addAll(pathItems);\r\n }", "public void setFullPath( String path )\n {\n if( file != null )\n {\n throw new RuntimeException( \"The path has already been set for this object.\" );\n }\n\n // Parse out multiple directories as needed.\n StringTokenizer st = new StringTokenizer( path, \"/\\\\\" );\n\n String current = st.nextToken();\n while( st.hasMoreTokens() )\n {\n this.parent = new FileIndex( this.parent, current );\n current = st.nextToken();\n }\n\n this.file = current;\n\n // Cache our full path\n if( parent == null )\n fullPath = this.file;\n else\n fullPath = parent.getFullPath() + \"/\" + this.file;\n }", "public getStatus_args setPath(String path) {\n this.path = path;\n return this;\n }", "public HttpBuilder<E,T> setPath (String path)\n\t{\n\t\tthis.path = String.format(path);\n\t\treturn this;\n\t}", "public void setRing(String path);", "@Override\r\n protected void setPath() {\r\n filePath = CARD_PATH;\r\n }", "public final native void setPath(JsArray<LatLng> value) /*-{\n\t\tthis.setPath(value);\n\t}-*/;", "public ElementDefinitionDt setPath( String theString) {\n\t\tmyPath = new StringDt(theString); \n\t\treturn this; \n\t}", "public void setPath(int sender, Stack<Integer> prevPath)\n { \n if (prevPath.isEmpty() || prevPath.peek()!=sender)\n prevPath.push(sender);\n path = (Stack)prevPath.clone();\n }", "@Override\n void setPath(String sessionId, String path) {\n if (sessionsInfoManager.getPath(sessionId).isEmpty())\n {\n sessionsInfoManager.setPath(sessionId, path);\n }\n }", "public Builder setPath(final String value) {\n _path = value;\n return self();\n }", "void setChosenPath(Path path) throws Exception {\r\n\t\t// Changing direction, assume we need to clear current set of choices\r\n\t\tcurrentChoices.clear();\r\n\r\n\t\tsetCurrentPath(path);\r\n\r\n\t\tcurrentTurnIndex++;\r\n\t}", "public rename_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void setPath(String path) {\r\n this.path = path == null ? null : path.trim();\r\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public void setPath(String path) {\n this.path = path == null ? null : path.trim();\n }", "public scheduleAsyncPersistence_args setPath(String path) {\n this.path = path;\n return this;\n }", "public completeFile_args setPath(String path) {\n this.path = path;\n return this;\n }", "public setAcl_args setPath(String path) {\n this.path = path;\n return this;\n }", "private void setPath(){\r\n // get the reversed path\r\n ArrayList<Grid> reversedPath = new ArrayList<>();\r\n int index = _endIndex;\r\n reversedPath.add(_map.get_grid(index));\r\n while(index != _startIndex){\r\n index = _map.get_grid(index).get_parent();\r\n reversedPath.add(_map.get_grid(index));\r\n }\r\n\r\n // get the final path in the correct order\r\n int length = reversedPath.size();\r\n for(int i=length-1;i>=0;i--){\r\n _path.add(reversedPath.get(i));\r\n }\r\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "public void setItem(Item item) {\n this.item = item;\n }", "public void setPath (\r\n String strPath) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setRingback(String path);", "public Builder setPaths(\n int index, java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePathsIsMutable();\n paths_.set(index, value);\n onChanged();\n return this;\n }", "public checkConsistency_args setPath(String path) {\n this.path = path;\n return this;\n }", "public FSItem(String itemPath) {\n this.fsItemPath = itemPath;\n this.itemProperties = new FSItemProperties();\n }", "public void setPath(String newPath) {\n String id = PREF_DEFAULTDIR + getId();\n idv.getStateManager().writePreference(id, newPath);\n }", "public void resetPath();", "public final XmlAttributeInfo setXmlPath (int[] path)\r\n {\r\n _value.setPath(path);\r\n return this;\r\n }", "public remove_args setPath(String path) {\n this.path = path;\n return this;\n }", "public void initPath(Path p) {\r\n\tpath = new Path(p);\r\n}", "public void removePath(PathItem pathItem) {\r\n pathItems.remove(pathItem);\r\n }", "public void setFilesPath(File path) {\r\n\t\tfilesPathProperty.set(path);\r\n\t}", "public EndpointBuilder _path_(String _path_) {\n this.endpointImpl.setPath(_path_);\n return this;\n }", "protected String getPath ()\n\t{\n\t\treturn path;\n\t}", "public void replacePath(Queue<GamePoint> newPath) {\n\t\tmyPath = newPath;\n\t}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setPathOrigin(int x, int y);", "public String getPath() {\n return m_path;\n }", "public void set(String path, Object value) {\n yml.set(path, value);\n save();\n }", "public String pathOfItem(Pathable item) {\n return null; // todo: implement this method\n }", "public void setPath(String fileName) {\n path = fileName;\n }", "public void setItem(T item) {\n this.item = item;\n }", "public void setImage(String path) {\n\t\tthis.path = path;\n\t\tgetImage().set(new Image(path));\n\t}" ]
[ "0.72026545", "0.7140482", "0.71291137", "0.7099868", "0.7096002", "0.70737904", "0.70206124", "0.69929487", "0.69801235", "0.6941811", "0.6733277", "0.673291", "0.66915345", "0.6687214", "0.66721076", "0.66369975", "0.6630492", "0.6621673", "0.6621673", "0.6621673", "0.6621673", "0.6621673", "0.6621673", "0.6621673", "0.6621673", "0.6621673", "0.66005373", "0.6596752", "0.6596752", "0.6596752", "0.6551911", "0.65509504", "0.6544672", "0.6511453", "0.6497042", "0.6466427", "0.645537", "0.64298815", "0.64292306", "0.6424178", "0.64161384", "0.64126706", "0.6411687", "0.63901895", "0.6359016", "0.6321647", "0.6321647", "0.63175726", "0.6299002", "0.62926716", "0.6287939", "0.6278487", "0.6211982", "0.62071997", "0.6199614", "0.61839974", "0.6170955", "0.6170211", "0.61563843", "0.6115188", "0.6109554", "0.61037606", "0.60926574", "0.6090072", "0.6080921", "0.6080547", "0.60464096", "0.60349613", "0.60349613", "0.60349613", "0.60235816", "0.6021776", "0.5976739", "0.59425735", "0.5906091", "0.5904216", "0.58944815", "0.5877102", "0.58475226", "0.58301663", "0.5824616", "0.5813027", "0.58088773", "0.57857555", "0.5780564", "0.5779575", "0.57724226", "0.5761412", "0.5754879", "0.5749498", "0.5749408", "0.57466805", "0.57466805", "0.573572", "0.57346916", "0.57213897", "0.5713262", "0.5709406", "0.5696837", "0.5695332" ]
0.59016466
76
gets the properties object of the item.
public FSItemProperties getItemProperties() { return itemProperties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final Properties getPropertiesObject()\n {\n return fProp;\n }", "public Properties getProperties() { return props; }", "EProperties getProperties();", "public abstract Properties getProperties();", "public Object getProperties() {\n return this.properties;\n }", "public Properties getProperties()\n {\n return this.properties;\n }", "public abstract AbstractProperties getProperties();", "Properties getProps()\n {\n return props;\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic List<PropertyItem> getModelData() {\n\t\treturn mProperties;\n\t}", "public Properties getProperty() {\r\n return properties;\r\n }", "public ObjectProperties getObjectProperties();", "public Hashtable getProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getProperties();\n }", "public Properties getProperties()\n {\n Properties properties = null;\n List<Props.Entry> props = this.props.getEntry();\n if ( props.size() > 0 )\n {\n properties = new Properties();\n //int size = props.size();\n for ( Props.Entry entry : props )\n {\n String key = entry.getKey();\n String val = entry.getValue();\n properties.setProperty( key, val );\n }\n }\n return properties;\n }", "public Properties getProperties() {\n return properties;\n }", "protected java.util.Map getProperties() {\n return properties;\n }", "private static CustomItemProperties getCustomItemProperties(ItemStack itemStack, int type) {\n/* 595 */ if (itemProperties == null)\n/* */ {\n/* 597 */ return null;\n/* */ }\n/* 599 */ if (itemStack == null)\n/* */ {\n/* 601 */ return null;\n/* */ }\n/* */ \n/* */ \n/* 605 */ Item item = itemStack.getItem();\n/* 606 */ int itemId = Item.getIdFromItem(item);\n/* */ \n/* 608 */ if (itemId >= 0 && itemId < itemProperties.length) {\n/* */ \n/* 610 */ CustomItemProperties[] cips = itemProperties[itemId];\n/* */ \n/* 612 */ if (cips != null)\n/* */ {\n/* 614 */ for (int i = 0; i < cips.length; i++) {\n/* */ \n/* 616 */ CustomItemProperties cip = cips[i];\n/* */ \n/* 618 */ if (cip.type == type && matchesProperties(cip, itemStack, null))\n/* */ {\n/* 620 */ return cip;\n/* */ }\n/* */ } \n/* */ }\n/* */ } \n/* */ \n/* 626 */ return null;\n/* */ }", "private String getPropertyValue() {\n return EmfPropertyHelper.getValue(itemPropertyDescriptor, eObject);\n }", "public Properties getProperties() {\n return properties;\n }", "public Properties getProperties() {\n\t\treturn this.properties;\n\t}", "private EntityHierarchyItemProperties innerProperties() {\n return this.innerProperties;\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic Hashtable getProperties() {\n\t\treturn _props;\n\t}", "public Dictionary<String, Object> getProperties();", "ArrayList<PropertyMetadata> getProperties();", "Object getProps();", "public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }", "Properties getProperties();", "java.lang.String getProperties();", "public Properties getProperties();", "public static Properties getProperties() {\r\n return getProperties(false);\r\n }", "private ProductProperties innerProperties() {\n return this.innerProperties;\n }", "List<? extends T> getProperties();", "public Map<String, Object> getProperties()\n {\n return m_props;\n }", "Property[] getProperties();", "public Properties getProperties() {\n\t\tif (isStale()) {\n\t\t\tlogger.info(\"getProperties: is stale (reloading\");\n\t\t\tload();\n\t\t}\n\t\treturn properties;\n\t}", "public Collection<ModuleProperty> getProperties();", "protected List getProperties() {\n return null;\n }", "List<Property<?>> getProperties(ProjectEntity entity);", "public Map<String, Object> getProperties() {\n return mProperties;\n }", "public Item getItem() { \n return myItem;\n }", "public Map<String, Property> getProperties()\n {\n return properties;\n }", "@Override\r\n\tpublic JSONObject OC_getPropsJSON()\r\n\t{\n\t\treturn null;\r\n\t}", "public ArrayList<Property> getProperties() {\r\n\t\ttry {\r\n\t\t\tproperties.clear();\r\n\t\t\tFileInputStream fis = new FileInputStream(PROPERTY_FILEPATH);\r\n \tObjectInputStream ois = new ObjectInputStream(fis);\r\n \t\r\n \tProperty obj = null;\r\n \twhile ((obj=(Property)ois.readObject())!=null) {\r\n \t\tproperties.add(obj);\r\n \t}\r\n \tois.close();\r\n }\r\n\t\tcatch (EOFException e) {\r\n\t\t\tSystem.out.println(\"End of file reached.\");\r\n }\r\n catch (ClassNotFoundException e) {\r\n \te.printStackTrace();\r\n }\r\n catch (IOException e) {\r\n \te.printStackTrace();\r\n }\r\n\t\treturn properties;\r\n\t}", "@Override\n public Property getProperty() throws ItemNotFoundException,\n ValueFormatException, RepositoryException {\n return null;\n }", "@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }", "@Override\n public T getItemVO() {\n return this.itemVO;\n }", "ProductProperties productProperties();", "public Hashtable getUserProperties() {\n PropertyHelper ph = PropertyHelper.getPropertyHelper(this);\n return ph.getUserProperties();\n }", "CommonProperties getProperties();", "public java.util.Map<String,String> getProperties() {\n \n if (properties == null) {\n properties = new java.util.HashMap<String,String>();\n }\n return properties;\n }", "public List<NamedThing> getProperties() {\n // TODO this should be changed to AnyProperty type but it as impact everywhere\n List<NamedThing> properties = new ArrayList<>();\n List<Field> propertyFields = getAnyPropertyFields();\n for (Field f : propertyFields) {\n try {\n if (NamedThing.class.isAssignableFrom(f.getType())) {\n f.setAccessible(true);\n Object fValue = f.get(this);\n if (fValue != null) {\n NamedThing se = (NamedThing) fValue;\n properties.add(se);\n } // else not initalized but this is already handled in the initProperties that must be called\n // before the getProperties\n }\n } catch (IllegalAccessException e) {\n throw new TalendRuntimeException(CommonErrorCodes.UNEXPECTED_EXCEPTION, e);\n }\n }\n return properties;\n }", "StringMap getProperties();", "public void _getProperties() {\n Property[] properties = oObj.getProperties();\n IsThere = properties[0];\n tRes.tested(\"getProperties()\", ( properties != null ));\n return;\n }", "public Map<RareItemProperty, Integer> getProperties(ItemStack is) {\n if(is.hasItemMeta()){\r\n ItemMeta meta = is.getItemMeta();\r\n \r\n if(meta.hasLore()){\r\n List<String> lore = meta.getLore();\r\n Map<RareItemProperty,Integer> propertyLevels = new HashMap<>();\r\n \r\n for(String sLore : lore){\r\n if(sLore.startsWith(PROPERTY_LINE_PREFIX)){\r\n String sPID = sLore.substring(sLore.lastIndexOf(ChatColor.COLOR_CHAR)+2);\r\n int itemPropertyLevel = 1;\r\n try{\r\n itemPropertyLevel = RomanNumeral.valueOf(sLore.substring(\r\n sLore.lastIndexOf(ChatColor.GREEN.toString())+2,\r\n sLore.lastIndexOf(ChatColor.COLOR_CHAR)-1\r\n ));\r\n }\r\n catch(IllegalArgumentException ex){\r\n continue;\r\n }\r\n \r\n int pid;\r\n \r\n try{\r\n pid = Integer.parseInt(sPID);\r\n }\r\n catch(NumberFormatException ex){\r\n continue;\r\n }\r\n \r\n RareItemProperty rip = this.plugin.getPropertymanager().getProperty(pid);\r\n \r\n if(rip != null){\r\n Integer currentLevel = propertyLevels.get(rip);\r\n \r\n if(currentLevel == null){\r\n currentLevel = 1;\r\n }\r\n \r\n int newLevel = currentLevel + itemPropertyLevel;\r\n \r\n propertyLevels.put(rip,newLevel);\r\n }\r\n }\r\n }\r\n \r\n return propertyLevels;\r\n }\r\n }\r\n \r\n return null;\r\n }", "public java.lang.String getPO_ITEM() {\r\n return PO_ITEM;\r\n }", "Map<String, Object> properties();", "public Map getProperties();", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() throws ClientException;", "Object getOtherprops();", "public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}", "public Map<String, String> getProperties(\n ExecutionContext context,\n ExecutionScript script) throws InterruptedException, IOException {\n return properties;\n }", "public HashMap<String, String> getProperties() {\n return (HashMap<String, String>) properties.clone();\n }", "org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement getProps(int index);", "public Map<String, Object> getProperties() {\n return properties;\n }", "public Map<String, Object> getProperties() {\n return properties;\n }", "Map<String, String> getProperties();", "Map<String, String> getProperties();", "public List<Property> getProperties(String spid) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tPerformer p = (Performer)listProperties(Performer.class, PERFORMERS_PROPERTIES_LIST, spid);\n\t\t\n\t\treturn p.getProperties();\n\t}", "public HashMap<Integer, Object> getEffectProperties( ) {\r\n\r\n return properties;\r\n }", "public Map<String, String> properties() {\n return this.properties;\n }", "public Object getProperty(String propertyName){\n return properties.get(propertyName);\n }", "private ConfigProperties getProperties() {\n return properties;\n }", "Property getProperty();", "Property getProperty();", "interface PropItem {\n\t\t/**\n\t\t * The displayed text, including the current value\n\t\t * @return \n\t\t */\n\t\tString getText();\n\t\t/**\n\t\t * Changes the property.\n\t\t * @param up {@code true} increase value, {@code false} decrease it\n\t\t * @return {@code true} if the property has changed and the terrain should be regenerated\n\t\t */\n\t\tboolean change(boolean up);\n\t}", "public Note[] getProperties(Object key);", "@JsonProperty(\"properties\")\n public PropertyBag getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "@Override\r\n\tpublic Properties getProperties() {\n\t\treturn null;\r\n\t}", "PropertyInfo getPropertyInfo();", "public Item getItem ()\n\t{\n\t\treturn item;\n\t}", "public Map<String, String> getProperties() {\n return properties;\n }", "public Map<String, String> getProperties() {\n return properties;\n }", "java.lang.String getProperty();", "public ItemInfoDTO getItemInfo() {\n return itemInfo;\n }", "@Override\n\tpublic List<XSOntDataProperty> getSubProperties(FlexoOntology context) {\n\t\treturn new ArrayList<XSOntDataProperty>();\n\t}", "public Property getProperty() {\n\t\treturn _property;\n\t}", "public Object get(String propertyId)\n {\n return properties.get(propertyId);\n }", "public T getItem() {\n return item;\n }", "Map<String, String> properties();", "Map<String, String> properties();", "public ObjectWithProperties get(int index) {\n return delegate.get(index);\n }", "public T getItem() {\r\n return item;\r\n }", "public String getProperty();", "public Properties getProperties() {\n return this.serverProperties;\n }", "public Object getProperty(String name) {\n return properties.get(name);\n }", "public SpItem getItem() {\n return _spItem;\n }", "public Object getProperty(String name)\n {\n return m_props.get(name);\n }", "public HasDisplayableProperties getProperties();", "@Override\n\tpublic AbstractItem getObject() {\n\t\tif(item == null) {\n\t\t\titem = new HiTechItem();\n\t\t}\n\t\treturn item;\n\t}" ]
[ "0.6821681", "0.6740974", "0.6718836", "0.6549664", "0.6531854", "0.65259784", "0.64894", "0.6475462", "0.64634925", "0.64374036", "0.6431575", "0.64049536", "0.6380067", "0.6377979", "0.6362333", "0.6360434", "0.6351174", "0.6323934", "0.6319031", "0.6318759", "0.6311403", "0.6307608", "0.628854", "0.62700385", "0.6222231", "0.6220913", "0.62042296", "0.6183641", "0.61735004", "0.61601245", "0.61480016", "0.61201864", "0.6109844", "0.61041725", "0.60883373", "0.60688823", "0.6046947", "0.6027349", "0.60119325", "0.601072", "0.60077184", "0.59937066", "0.5992921", "0.5941657", "0.5940098", "0.5937548", "0.59284055", "0.5889039", "0.588348", "0.5871535", "0.58685154", "0.5866884", "0.58516437", "0.58480656", "0.5837868", "0.5836666", "0.5832988", "0.58327115", "0.58243763", "0.58199346", "0.5818726", "0.5810433", "0.5804194", "0.5802134", "0.5802134", "0.57942444", "0.57942444", "0.5780185", "0.57757455", "0.5774563", "0.57618976", "0.57605124", "0.5760346", "0.5760346", "0.57564366", "0.5747695", "0.57451415", "0.5745084", "0.5742501", "0.57203764", "0.57154644", "0.57090914", "0.57090914", "0.570709", "0.57047004", "0.56971747", "0.5681393", "0.5670033", "0.56691927", "0.56644416", "0.56644416", "0.56592137", "0.56396353", "0.5636282", "0.56350887", "0.563045", "0.562432", "0.56188864", "0.56168395", "0.56086296" ]
0.7344356
0
sets the properties object of the item.
public void setItemProperties(FSItemProperties itemProperties) { this.itemProperties = itemProperties; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}", "public void setItem (Object anObject)\r\n {\r\n // TODO: implement (?)\r\n }", "@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}", "public void setProperties(Properties properties);", "@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}", "public void setItem(Item item) {\n this.item = item;\n }", "public void setItem (Item item)\n\t{\n\t\tthis.item = item;\n\t}", "public abstract void setProperties(Properties uprop);", "@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}", "public void setProperties(Properties setList);", "public void setItems(){\n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setItem(Item item) {\n\t\tthis.item = item;\n\t}", "public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }", "public void setItem(T item) {\n this.item = item;\n }", "@Override\n protected void updateProperties() {\n }", "public void setProperties(Properties properties) {\n this.properties=properties;\n }", "public void setProperties(Properties properties)\n {\n this.properties = properties;\n }", "public void setProperties(Map properties);", "@Override\r\n\tpublic void OC_setPropsJSON(JSONObject jo)\r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void setProperties(Properties properties) {\n\t\tsuper.setProperties(properties);\n\t}", "PropertiesTask setProperties( Properties properties );", "protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "Properties modifyProperties(Properties properties);", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setItem(ItemType item) {\n\t this.item = item;\n\t}", "public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}", "public void setProperties(Map<String, Object> properties) {\n mProperties = properties;\n }", "@Override\r\n\tpublic DTextArea setHtmlItemProp(final String itemProp) {\r\n\t\tsuper.setHtmlItemProp(itemProp) ;\r\n\t\treturn this ;\r\n\t}", "public void setProperty(String name,Object value);", "public void setupProperties() {\n // left empty for subclass to override\n }", "public void setProperty(String property) {\n }", "public PropertySet(PropertySet p){\n\t\tthis.properties = p.properties;\n\t}", "private void setItems()\n {\n sewers.setItem(rope); \n promenade.setItem(rope);\n bridge.setItem(potion);\n tower.setItem(potion);\n throneRoomEntrance.setItem(potion);\n depths.setItem(shovel);\n crypt.setItem(shovel);\n }", "@Override\n\tpublic void setProperty(String propertyName, Object value) {\n\t\t\n\t}", "@JsonProperty(\"properties\")\n public void setProperties(PropertyBag properties) {\n this.properties = properties;\n }", "public void setProperties(String primitive, AnimationProperties properties){\r\n\t\tpropMap.put(primitive, properties);\r\n\t}", "@Override\n\t\tpublic void setProperty(String key, Object value) {\n\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic <T> void setModelData(List<T> data) {\n\t\t\tmProperties = (List<PropertyItem>) data;\n\t\t\n\t}", "void setProperty(String key, Object value);", "public void setProperties(org.LexGrid.commonTypes.Properties properties) {\n this.properties = properties;\n }", "public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }", "public void setProperties(Map<String, Object> properties) {\n\t\tthis.properties = properties;\n\t}", "@ReactMethod\n public void peopleSet(ReadableMap properties) {\n mixpanel.getPeople().set(this.readableMapToJson(properties));\n }", "void setResourceItem(BaseContentItem resourceItem);", "public void setProperty(String key, Object value);", "public MetadataResourceType setProperties(Object properties) {\n this.properties = properties;\n return this;\n }", "void addOrReplaceProperty(Property prop, Collection<Property> properties);", "public void setProperty( String key, Object value );", "public void setItem(BudgetItemModel item) { model= item;}", "public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}", "public void setData(Item i)\r\n\t{\r\n\t\ttheItem = i;\r\n\t}", "public void setItem(Object item, int i)\n {\n items.setElementAt(item, i);\n }", "PropertiesTask setProperty( String key, String value );", "public void setNotificationProperties(){\r\n \t\ttry{\r\n\t\t\tint totalNotifications = this.getChildCount();\r\n\t\t\tfor (int i=0; i<totalNotifications; i++){\r\n\t\t\t\tNotificationView currentNotificationView = (NotificationView) this.getChildAt(i);\r\n\t\t\t\tsetViewLayoutProperties(currentNotificationView);\r\n\t\t\t}\r\n \t\t}catch(Exception ex){\r\n \t\t\tLog.e(_context, \"NotificationViewFlipper.setNotificationProperties() ERROR: \" + ex.toString());\r\n \t\t}\r\n \t}", "public void setItems(Item items) {\n this.items = items;\n }", "public void initAttributes(ObservableList<Item> items) {\n this.items = items;\n }", "public void initProperties() {\n propAssetClass = addProperty(AssetComponent.PROP_CLASS, \"MilitaryOrganization\");\n propAssetClass.setToolTip(PROP_CLASS_DESC);\n propUniqueID = addProperty(AssetComponent.PROP_UID, \"UTC/RTOrg\");\n propUniqueID.setToolTip(PROP_UID_DESC);\n propUnitName = addProperty(AssetComponent.PROP_UNITNAME, \"\");\n propUnitName.setToolTip(PROP_UNITNAME_DESC);\n propUIC = addProperty(PROP_UIC, \"\");\n propUIC.setToolTip(PROP_UIC_DESC);\n }", "public void setProperties(Map<String, String> properties) {\n\t\tthis.properties = properties;\n\t}", "protected void afterPropertiesSetInternal() {\n\t\t// override this method\n\t}", "interface PropItem {\n\t\t/**\n\t\t * The displayed text, including the current value\n\t\t * @return \n\t\t */\n\t\tString getText();\n\t\t/**\n\t\t * Changes the property.\n\t\t * @param up {@code true} increase value, {@code false} decrease it\n\t\t * @return {@code true} if the property has changed and the terrain should be regenerated\n\t\t */\n\t\tboolean change(boolean up);\n\t}", "public void setProperty(String prop, Object value)\r\n {\r\n\tswitch(prop)\r\n\t{\r\n\t case \"name\":\r\n\t\tname = value.toString();\r\n\t\tbreak;\r\n\t case \"description\":\r\n\t\tdesc = value.toString();\r\n\t\tbreak;\r\n\t case \"type\":\r\n\t\tsetType(value.toString());\r\n\t\tbreak;\r\n\t case \"level\":\r\n\t\tlevel = (Integer) value;\r\n\t\tbreak;\r\n\t case \"rarity\":\r\n\t\trare = Rarity.valueOf(value.toString().toUpperCase());\r\n\t\tbreak;\r\n\t case \"vendor_value\":\r\n\t\tvendorValue = (Integer) value;\r\n\t\tbreak;\r\n\t case \"game_types\":\r\n\t\taddGameType(value.toString());\r\n\t\tbreak;\r\n\t case \"flags\":\r\n\t\taddFlag(value.toString());\r\n\t\tbreak;\r\n\t case \"restrictions\":\r\n\t\taddRestriction(value.toString());\r\n\t\tbreak;\r\n\t case \"id\":\r\n\t\tid = (Integer) value;\r\n\t\tbreak;\r\n\t case \"icon\":\r\n\t\ttry {\r\n\t\t icon = new URL(value.toString());\r\n\t\t}\r\n\t\tcatch(MalformedURLException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t\tbreak;\r\n\t}\r\n }", "@Override\n\tpublic void setProperty(int arg0, Object arg1) {\n\t\tif (arg1 == null)\n\t\t\treturn;\n\t\tswitch (arg0) {\n\t\tcase 0:\n\t\t\tthis.EntityKey=arg1.toString();\n\t\t\tbreak;\n\t\tcase 1:\n\t\t\tthis.Id=Integer.valueOf(arg1.toString());\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tthis.Description=arg1.toString();\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tthis.StartDate=arg1.toString();\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tthis.EndDate=arg1.toString();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void setProperties(String prefix, Properties setList);", "private static void setValues( String name, Integer number, Item item ) {\n\t\titem.getItemProperty( \"name\" ).setValue( name );\n\t\titem.getItemProperty( \"number\" ).setValue( number );\n\t\titem.getItemProperty( \"id\" ).setValue( itemId );\n\t\titem.getItemProperty( \"id\" ).setReadOnly( true );\n\t\titemId++;\n\t}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "protected void setPropertyTree(PropertyTree tree) {\n propertyTree = tree;\n }", "public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }", "public static void setUserProperties(JSONObject userproperties){\n\n DataStore.setUserProperties(context, userproperties);\n sendUserProperties(Constants.Z_USER_PROPS_UPLOAD_PERIOD_MILLIS);\n }", "public void setProperty(Object key, Object value) {\r\n\t\tproperties.put(key, value);\r\n\t}", "public abstract void setProperty(String property, Object value)\n throws SOAPException;", "public void setProperties(ProviderPropertiesUnbundled properties) {\n synchronized (mBinder) {\n mProperties = properties.getProviderProperties();\n }\n\n ILocationProviderManager manager = mManager;\n if (manager != null) {\n try {\n manager.onSetProperties(mProperties);\n } catch (RemoteException | RuntimeException e) {\n Log.w(mTag, e);\n }\n }\n }", "public void setItems(Item[] itemsIn)\n {\n items = itemsIn;\n }", "public void setProperty(String arg0, Object arg1)\n throws UniquePropertyValueConflictException,\n\n EntityPersistenceException {\n\n }", "public void setEditedItem(Object item) {editedItem = item;}", "@Override\n public void setProperties(final UIComponent component) {\n super.setProperties(component);\n component.setValueExpression(\"title\", title);\n component.setValueExpression(\"border\", border);\n component.setValueExpression(\"collapsible\", collapsible);\n component.setValueExpression(\"frame\", frame);\n component.setValueExpression(\"header\", header);\n component.setValueExpression(\"height\", height);\n component.setValueExpression(\"rowId\", rowId);\n component.setValueExpression(\"showLines\", showLines);\n component.setValueExpression(\"width\", width);\n component.setValueExpression(\"showRoot\", showRoot);\n component.setValueExpression(\"enableDragDrop\", enableDragDrop);\n component.setValueExpression(\"styleLeaf\", styleLeaf);\n component.setValueExpression(\"styleNode\", styleNode);\n component.setValueExpression(\"styleOdd\", styleOdd);\n component.setValueExpression(\"styleEven\", styleEven);\n component.setValueExpression(\"loadAll\", loadAll);\n component.setValueExpression(\"styleLinesContainer\", styleLinesContainer);\n }", "public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }", "@Override\n public void afterPropertiesSet() {\n }", "@Override\r\n\tpublic void setPropFile(Properties prop) {\n\t\t\r\n\t}", "public void giveItem(Item item) {\n\t\tif (hasItem()) return;\n\t\tthis.item = item;\n\t}", "public void setAttributes(IEntityObject obj) {\r\n\tDispenser dObj = (Dispenser) obj;\r\n\tdObj.pk = this.pk;\r\n\tdObj.versionInfoID = this.versionInfoID;\r\n\tdObj.interfaceID = this.interfaceID;\t\r\n\tdObj.setBlender(this.blender);\r\n }", "@Override\n\t\t\tpublic void setPropertyValue(Object value) {\n\t\t\t\t\n\t\t\t}", "public void setProperty(String property) {\n \t\t_property = property;\n \t}", "private SetProperty(Builder builder) {\n super(builder);\n }", "public void setItems(ItemList items) {\r\n this.items = items;\r\n }", "public void setItem(Item item) {\n\t\tthis.item = item;\n\n\t\tif (item.getDate() == null)\n\t\t\tdateField.setText(DateUtil.format(LocalDate.now()));\n\t\telse\n\t\t\tdateField.setText(DateUtil.format(item.getDate()));\n\n\t\tdateField.setPromptText(\"dd.mm.yyyy\");\n\t\tif (item.getCategory() == null)\n\t\t\tcategoryField.getSelectionModel().select(\"Lebensmittel\");\n\t\telse \n\t\t\tcategoryField.getSelectionModel().select(item.getCategory());\n\t\tuseField.setText(item.getUse());\n\t\tamountField.setText(Double.toString(item.getAmount()).replace(\".\", \",\"));\n\t\tif (item.getDistributionKind() == null)\n\t\t\tdistributionKindField.setText(\"Giro\");\n\t\telse\n\t\t\tdistributionKindField.setText(item.getDistributionKind());\n\n\t\tif (useField.getText() == null) {\n\t\t\tPlatform.runLater(new Runnable() {\n\t\t\t\t@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tuseField.requestFocus();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}", "void setCommandProperties(String commandID, AttributeList properties);", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "@Override\n\tpublic void setProperty(String name, Object value)\n\t{\n\t\tsuper.setProperty(name, value);\n\n\t\tprocessProperty(name, value);\n\t}", "@Override\n\tpublic void setObjectFromJSON(JSONObject j) throws JSONException{\n\t\tsetID(Integer.parseInt(j.getString(KEY_ID)));\n\t\tsetVehicleID(Integer.parseInt(j.getString(KEY_VEHICLE_IDVEHICLE)));\n\t\tsetItemID(Integer.parseInt(j.getString(KEY_ITEMS_IDITEMS)));\n\t\tsetReceiptID(Integer.parseInt(j.getString(KEY_RECEIPT_IDRECEIPT)));\n\t\tsetMileage(Integer.parseInt(j.getString(KEY_WORKMILEAGE)));\n\t\tsetNotes(j.getString(KEY_WORKNOTES));\n\t\t\n\t}", "@Override\n public void modifyProperties(Map<String, String> properties) throws DdlException {\n List<String> cantChangeProperties = Arrays.asList(S3_ENDPOINT, S3_REGION, S3_ROOT_PATH, S3_BUCKET);\n Optional<String> any = cantChangeProperties.stream().filter(properties::containsKey).findAny();\n if (any.isPresent()) {\n throw new DdlException(\"current not support modify property : \" + any.get());\n }\n // modify properties\n replaceIfEffectiveValue(this.properties, S3_ACCESS_KEY, properties.get(S3_ACCESS_KEY));\n replaceIfEffectiveValue(this.properties, S3_SECRET_KEY, properties.get(S3_SECRET_KEY));\n replaceIfEffectiveValue(this.properties, S3_MAX_CONNECTIONS, properties.get(S3_MAX_CONNECTIONS));\n replaceIfEffectiveValue(this.properties, S3_REQUEST_TIMEOUT_MS, properties.get(S3_REQUEST_TIMEOUT_MS));\n replaceIfEffectiveValue(this.properties, S3_CONNECTION_TIMEOUT_MS, properties.get(S3_CONNECTION_TIMEOUT_MS));\n notifyUpdate();\n }", "public void setItem(Item[] param) {\r\n validateItem(param);\r\n\r\n localItemTracker = true;\r\n\r\n this.localItem = param;\r\n }", "public\n void setProperties(YutilProperties argprops)\n {\n if (argprops == null)\n return;\n\n // Copy all key/val pairs\n for (Enumeration ep = argprops.propertyNames(); ep.hasMoreElements(); )\n {\n String key = (String)ep.nextElement();\n String val = key + \"=\" + argprops.getProperty(key);\n setProperties(val, false);\n }\n }", "public void set(Item item) {\r\n if (lastAccessed == null) throw new IllegalStateException();\r\n lastAccessed.item = item;\r\n }", "public void setProperty(String aProperty, Object aObject)\n\t\t\t\t\t throws SAXNotSupportedException, SAXNotRecognizedException {\n\t\tparserImpl.setProperty(aProperty, aObject);\n\t}", "public void set(int propID, Object obj) throws SL_Exception\n {\n switch(propID)\n {\n case PRESQL_ID:\n setPreSQL((String)obj);\n return;\n case POSTSQL_ID:\n setPostSQL((String)obj);\n return;\n case ROWOFFSET_ID:\n setRowOffSet((java.lang.Integer)obj);\n return;\n case ROWLIMIT_ID:\n setRowLimit((java.lang.Integer)obj);\n return;\n default:\n super.set(propID, obj);\n return;\n }\n\n }", "public ModifyItem() {\n initComponents();\n }", "public void resetProperties ()\n\t{\n\t\tproperties.clear();\n\t}" ]
[ "0.6736061", "0.66536826", "0.6621719", "0.6593935", "0.65881777", "0.6572713", "0.65725046", "0.6525025", "0.64954996", "0.6463822", "0.6374095", "0.63615894", "0.6322436", "0.6322436", "0.63198006", "0.6317649", "0.6224534", "0.61763704", "0.6164792", "0.6142158", "0.61340135", "0.6071718", "0.6054585", "0.60388607", "0.601917", "0.598869", "0.59375834", "0.59375834", "0.593336", "0.5911992", "0.59068173", "0.589564", "0.5872825", "0.5869366", "0.5852526", "0.58299166", "0.58073324", "0.58046937", "0.57449895", "0.5741105", "0.57407725", "0.57398456", "0.5713418", "0.57089055", "0.5703583", "0.56745404", "0.5640072", "0.56320435", "0.56294286", "0.5618308", "0.5611502", "0.5551321", "0.55509794", "0.5538054", "0.5530552", "0.5499734", "0.54906774", "0.5487083", "0.5480129", "0.547599", "0.54725456", "0.5461594", "0.54582286", "0.544758", "0.54424363", "0.5435148", "0.5434438", "0.543413", "0.5427584", "0.5413053", "0.5402126", "0.54010165", "0.5399021", "0.5397988", "0.5392728", "0.5365216", "0.5363788", "0.5362234", "0.53593266", "0.53572845", "0.5357216", "0.5354218", "0.5352398", "0.53491175", "0.53449273", "0.53414345", "0.53376657", "0.5330774", "0.5320389", "0.5310827", "0.5310827", "0.5305411", "0.52992064", "0.5283158", "0.52794784", "0.5273139", "0.5268591", "0.5262986", "0.5261775", "0.52580655" ]
0.6896811
0
gets the icon of the item.
public FSIcon getIcon() { return icon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "B itemIcon(ITEM item, Resource icon);", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "java.lang.String getIcon();", "java.lang.String getIcon();", "public Icon getIcon();", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "Icon getIcon();", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "String getIcon();", "String getIcon();", "public int getIconId(){\n return mIconId;\n }", "public ResourceLocation getIcon() {\n return icon;\n }", "public String getIconString() {\n return theIconStr;\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "public char getIcon() {\n return this.icon;\n }", "public URI getIconUri() {\n return this.iconUri;\n }", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void loadItemIcon() throws ApiException\n {\n itemIcon = ImageService.getInstance().getImage(String.valueOf(itemID), ImageTypes.ICON);\n }", "Icon getMenuIcon();", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "public Icon getIcon() {\n \t\treturn null;\n \t}", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "public AppIcon getAppIcon () ;", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "@NotNull\n SVGResource getIcon();", "protected Drawable getIcon(Context context) {\n if (this.iconResource != 0) {\n return ContextCompat.getDrawable(context, this.iconResource);\n } else {\n return this.icon;\n }\n }", "protected ResourceReference getNodeIcon(TreeNode node)\n\t{\n\t\tif (node.isLeaf() == true)\n\t\t{\n\t\t\treturn getItem();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif (isNodeExpanded(node))\n\t\t\t{\n\t\t\t\treturn getFolderOpen();\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn getFolderClosed();\n\t\t\t}\n\t\t}\n\t}", "public abstract Drawable getIcon();", "public String getUserIcon() {\n return userIcon;\n }", "public abstract String typeIcon();", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public int getIconIndex() {\n return iconIndex;\n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "@Override\n\t@SideOnly(Side.CLIENT)\n\tpublic IIcon getIcon(int side, int meta)\n\t{\n\t\treturn icon;\n\t}", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "public String getIconUrl() {\n return iconUrl;\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public ItemStack getIconItemStack()\n {\n return new ItemStack(Item.writableBook, 1, 0);\n }", "public Icon getIcon(Object object);", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\n\t\tif (_ve != null) {\n\t\t\treturn (String) _ve.getValue(getFacesContext().getELContext());\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }", "@SideOnly(Side.CLIENT)\n\tpublic IIcon getIconFromDamage(int meta)\n\t{\n\t\treturn icon;\n\t}", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "protected String getIconUri() {\n return getResourceUrl(ComponentConstants.ICON_RESOURCE);\n }", "@Override\n\tpublic ToolIconURL getIconURL() {\n\t\treturn iconURL;\n\t}", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public abstract String getIconPath();", "public ImageDescriptor getIcon();", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public abstract String getIconString();", "public static Image getCheckItemImage() {\n return ImageUtil.getImage(ApplicationPropertiesUtil\n .getProperty(ApplicationPropertiesUtil.PATH_CHECKITEM_ICON));\n }", "public int getIconImageNumber(){return iconImageNumber;}", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public String getIconHandler()\n {\n return iconHandler;\n }", "public String getSummaryIcon() {\n\treturn this.icon;\n }", "@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}", "String getIconFile();", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "public String getNomIcone() {\n\t\treturn nomIcone;\n\t}", "public Image getSourceIcon() {\n return impl.getSourceIcon();\n }", "public String getMessageIcon() {\n return messageIcon;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "public abstract ImageDescriptor getIcon();", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public Image getApplicationIcon() {\n return new javafx.scene.image.Image(this.getClass()\n .getResourceAsStream(DOCKICON));\n }", "String getItemImage();", "java.lang.String getGameIconUrl();", "public String getAccessibleIconDescription();", "public int getItemRideIconFile() {\n\t\treturn mItemRideIconFile;\n\t}", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", "@SideOnly(Side.CLIENT)\n public int getTabIconItemIndex()\n {\n \n return modHPC.glasses.itemID;\n }", "@SideOnly(Side.CLIENT)\n\t public IIcon getIcon(int side, int meta)\n\t {\n\t return this.iconsLower[0];\n\t }", "public String getGifticon() {\r\n return gifticon;\r\n }" ]
[ "0.78711605", "0.77763397", "0.77763397", "0.77763397", "0.77763397", "0.75644344", "0.75644344", "0.75190645", "0.7494464", "0.74911", "0.74729115", "0.74491996", "0.7398051", "0.7398051", "0.732942", "0.73009807", "0.7273178", "0.7270341", "0.7266757", "0.7266757", "0.72511923", "0.7248856", "0.7244673", "0.7244673", "0.7244595", "0.7209552", "0.71973574", "0.71648425", "0.71588445", "0.70977414", "0.70883286", "0.70751685", "0.70751685", "0.7074653", "0.706665", "0.7064269", "0.7055377", "0.70545554", "0.70124656", "0.70124656", "0.6965036", "0.6963859", "0.6958818", "0.69260734", "0.69035333", "0.68747264", "0.6871886", "0.68507326", "0.6848538", "0.6841276", "0.683326", "0.6799467", "0.6795607", "0.6788106", "0.67527133", "0.6751553", "0.67311555", "0.6731102", "0.6722645", "0.6722645", "0.6716496", "0.6713059", "0.6713059", "0.66988987", "0.6656859", "0.6653095", "0.6629956", "0.66198784", "0.661279", "0.66020495", "0.65953594", "0.65951264", "0.6586662", "0.65799737", "0.6523547", "0.6513288", "0.6513181", "0.65127134", "0.64946014", "0.6462199", "0.6445201", "0.6434818", "0.6434444", "0.63849455", "0.63810694", "0.63787085", "0.63745326", "0.6366126", "0.6365269", "0.63626707", "0.63626707", "0.63625205", "0.6354049", "0.6344012", "0.63425535", "0.6341545", "0.6331827", "0.632951", "0.63290435", "0.6322406" ]
0.7399039
12
sets the icon of the item.
public void setIcon(FSIcon icon) { this.icon = icon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIcon(Image i) {icon = i;}", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(Bitmap icon) {\n\t\tmIcon = icon;\n\t}", "public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }", "public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}", "public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }", "public void setIcon(Icon icon) {\n\t\t_coolBar.setIcon(icon);\n\t}", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public void setIcon(Integer icon) {\n switch (icon) {\n case 0:\n this.icon = Icon.Schutzengel;\n break;\n case 1:\n this.icon = Icon.Person;\n break;\n case 2:\n this.icon = Icon.Institution;\n break;\n case 3:\n this.icon = Icon.Krankenhaus;\n break;\n case 4:\n this.icon = Icon.Polizei;\n break;\n default:\n this.icon = Icon.Feuerwehr;\n break;\n }\n }", "B itemIcon(ITEM item, Resource icon);", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\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 }", "private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }", "public void setIconIndex(int value) {\n this.iconIndex = value;\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 }", "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 }", "public void setIcon(Bitmap icon) {\n mBundle.putParcelable(KEY_ICON, icon);\n }", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "@Override\n public void setIcon(boolean iconified) throws PropertyVetoException{\n if ((getParent() == null) && (desktopIcon.getParent() == null)){\n if (speciallyIconified == iconified)\n return;\n\n Boolean oldValue = speciallyIconified ? Boolean.TRUE : Boolean.FALSE; \n Boolean newValue = iconified ? Boolean.TRUE : Boolean.FALSE;\n fireVetoableChange(IS_ICON_PROPERTY, oldValue, newValue);\n\n speciallyIconified = iconified;\n }\n else\n super.setIcon(iconified);\n }", "public final void setIcon(@Nullable Drawable icon) {\n mIcon = icon;\n }", "@Override\n public void setIconURI(String arg0)\n {\n \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 }", "public final void setIcon(Icon icon) {\r\n if (icon instanceof ImageIcon) {\r\n super.setIcon(new DropDownIcon((ImageIcon) icon));\r\n }\r\n else {\r\n super.setIcon(icon);\r\n }\r\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "public void setIcon(@DrawableRes final int icon) {\n post(() -> {\n Drawable drawable = ResourcesCompat.getDrawable(getResources(),icon,null);\n int padding = (getWidth() / 2) - (drawable.getIntrinsicWidth() / 2);\n setCompoundDrawablesWithIntrinsicBounds(icon, 0, 0, 0);\n setPadding(padding, 0, 0, 0);\n });\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }", "public void setIcon(Icon image)\n {\n getComponent().setIcon(image);\n invalidateSize();\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }", "public void setIcone(String icone) {\n this.icone = icone;\n }", "public void setIcon(String icon) {\n this.icon = icon == null ? null : icon.trim();\n }", "public void setIcon(String icon) {\n this.icon = icon == null ? null : icon.trim();\n }", "public void setIcon(char c) {\r\n\ticon = c;\r\n\t}", "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }", "private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }", "public void setMainIcon(IconReference ref);", "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 }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }", "public char setIcon(char icon) {\n char previous = this.icon;\n this.icon = icon;\n return previous;\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 iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "public void loadItemIcon() throws ApiException\n {\n itemIcon = ImageService.getInstance().getImage(String.valueOf(itemID), ImageTypes.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}", "public void setIconMode(IconMode currentInventoryMode);", "public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }", "private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "@SuppressLint(\"NewApi\")\n\tvoid changeIcon()\n\t{\n\n\t\tif (CropImage.isExplicitCameraPermissionRequired(this)) {\n\t\t\trequestPermissions(new String[]{Manifest.permission.CAMERA,Manifest.permission.WRITE_EXTERNAL_STORAGE}, CropImage.CAMERA_CAPTURE_PERMISSIONS_REQUEST_CODE);\n\t\t} else {\n\t\t\tCropImage.startPickImageActivity(this);\n\t\t}\n\n\n\t}", "private void updateBaseIcon() {\n this.squareIcon.setDecoratedIcon( getSelectedBaseIcon() );\n this.radialIcon.setDecoratedIcon( getSelectedBaseIcon() );\n }", "public void setIconId(int iconId) {\r\n this.iconId = iconId;\r\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 }", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }", "@Override\n\tpublic void setCategoryIcon(String icon) {\n\t\tthis.categoryIcon=icon;\n\t}", "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 }", "public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }", "public void setStateIcon(Integer stateIcon) {\n this.stateIcon = stateIcon;\n }", "public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}", "public void setIcon(int resId) {\n mIconId = resId;\n if (mIconView != null) {\n if (resId > 0) {\n mIconView.setImageResource(mIconId);\n } else if (resId == 0) {\n mIconView.setVisibility(View.GONE);\n }\n }\n }", "private void changeCurrentIcon(Icon icon) {\r\n\t\ttabbedPane.setIconAt(tabbedPane.getSelectedIndex(), icon);\r\n\t}", "protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}", "@Override\n public void setIconOnly(boolean iconOnly)\n {\n }", "void setIcon(Dialog dialog);", "public void setXpeIcon(String value) {\n setAttributeInternal(XPEICON, value);\n }", "public void setSmallIcon(ImageDescriptor icon) {\n if (icon != iconSmall) {\n ImageDescriptor oldIcon = iconSmall;\n iconSmall = icon;\n listeners.firePropertyChange(PROPERTY_SMALL_ICON, oldIcon, icon);\n }\n }", "public void setTabIconItem(Item item) {\n\t\t\tthis.par3Item = item;\n\t\t}", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "private void changeIcon(SingleDocumentModel model) {\n\t\tif (model.isModified()) {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/red.png\"));\n\t\t}else {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/green.png\"));\n\t\t}\n\t}", "public void setNormalIcon(Icon normal) {\n\t\tmouseHoverAwareAction.setNormalIcon(normal);\n\t}", "public void setIconHandler(String iconHandler)\n {\n this.iconHandler = iconHandler;\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public Builder clearIcon() {\n bitField0_ = (bitField0_ & ~0x00000002);\n icon_ = getDefaultInstance().getIcon();\n onChanged();\n return this;\n }", "public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "public void setImage(ImageIcon image) {\n this.image = image;\n }", "public Builder clearIcon() {\n bitField0_ = (bitField0_ & ~0x00000004);\n icon_ = getDefaultInstance().getIcon();\n onChanged();\n return this;\n }", "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 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}", "@Override\n\tpublic void setOrderIcon(FOOD_ITEMS f, boolean b) {\n\t\t\n\t}", "@Override\n\tpublic void setIconURL(ToolIconURL iconURL) {\n\t\tthis.iconURL = iconURL;\n\t}", "public void setIcon(boolean b){\n \ttry{\n \t\tsuper.setIcon(b);\n \t}\n \tcatch(java.lang.Exception ex){\n \t\tSystem.out.println (ex);\n \t}\n \tif(!b){\n \t\tgetRootPane().setDefaultButton(jButton1);\n \t}\n }", "public FSIcon getIcon() {\n return icon;\n }", "public Builder setIcon(@Nullable Drawable icon) {\n mPrimaryIcon = icon;\n return this;\n }", "private void setUpTheIcon ( Marker marker ){\n\n // Hide the current info window\n HideCurrentInfoWindow();\n\n if ( mCurrentDestination == null || !mCurrentDestination.getId().equals(marker.getId()) ){\n\n if ( mCurrentPark != null ){\n if ( !mCurrentPark.getId().equals(marker.getId() ) ){\n // clicked ! on current selected parking;\n setSmallIcon ( mCurrentPark );\n\n mCurrentPark = marker;\n\n setBigIcon ( mCurrentPark );\n\n }\n }\n else {\n //previous was selected nothing;\n\n mCurrentPark = marker;\n setBigIcon ( mCurrentPark );\n mCurrentPark.showInfoWindow();\n }\n }else{\n //clicked not a parking;\n if ( mCurrentPark != null ){\n\n setSmallIcon ( mCurrentPark );\n mCurrentPark = null;\n }\n }\n\n // show info window for clicked marker;\n marker.showInfoWindow();\n\n }", "public void setIconUri(String iconUri, ApplicationConnection client) {\n if (icon != null) {\n captionNode.removeChild(icon.getElement());\n }\n icon = client.getIcon(iconUri);\n if (icon != null) {\n DOM.insertChild(captionNode, icon.getElement(), 0);\n }\n }", "public void setItemToShow(Signal itemToShow_, int iconIndex_) {\r\n\t\titemToShow[iconIndex_] = itemToShow_;\r\n\t}", "private void setModifiedAndUpdateIcon() {\n document.setModified(true);\n updateTabIcon(document);\n }", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "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 }", "public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\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 int getIconId(){\n return mIconId;\n }" ]
[ "0.7786666", "0.76866114", "0.7431216", "0.7431216", "0.74044544", "0.7252918", "0.7242234", "0.7183654", "0.7127579", "0.7104982", "0.70351714", "0.7028556", "0.70277935", "0.70251656", "0.69994503", "0.69973093", "0.6990194", "0.69771826", "0.69716895", "0.69447154", "0.6920586", "0.6874177", "0.6872509", "0.6851004", "0.6803286", "0.67729855", "0.676942", "0.6758264", "0.67509246", "0.67316306", "0.67184955", "0.67170733", "0.67079926", "0.66984993", "0.66984993", "0.6695116", "0.6684911", "0.66356736", "0.66276383", "0.6618111", "0.6618111", "0.6611998", "0.6599721", "0.65944767", "0.65944767", "0.6567601", "0.6541447", "0.6541412", "0.6521809", "0.6469753", "0.64623845", "0.6441178", "0.6423111", "0.64183384", "0.6409052", "0.6405348", "0.64033985", "0.63993716", "0.6395406", "0.6383043", "0.6382256", "0.6381994", "0.63762385", "0.6374074", "0.63640875", "0.63489336", "0.63393277", "0.6333683", "0.63130623", "0.6304062", "0.62921983", "0.627843", "0.627843", "0.627843", "0.627843", "0.6276542", "0.62708217", "0.62513924", "0.6243752", "0.6241245", "0.62394", "0.623526", "0.623332", "0.619208", "0.6188538", "0.61863977", "0.6182847", "0.61812884", "0.6166858", "0.61545986", "0.6113519", "0.611264", "0.6059762", "0.60554403", "0.6043033", "0.6039306", "0.6028741", "0.60248274", "0.60149276", "0.60119504" ]
0.73153615
5
define the equality rules of 2 items
@Override public boolean equals(Object obj) { FSItem item=(FSItem)obj; return this.fsItemPath.equals(item.fsItemPath); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Equality createEquality();", "protected abstract boolean equalityTest(Object key, Object key2);", "@Test\n\tpublic void testEqualityCheck() {\n\t\tadd(\"f(x)=x^3\");\n\t\tadd(\"g(x)=-x^3\");\n\t\tt(\"f==g\", \"false\");\n\t\tt(\"f!=g\", \"true\");\n\t\tt(\"f==-g\", \"true\");\n\t\tt(\"f!=-g\", \"false\");\n\t}", "@Test\n public void testEquals() {\n Term t1 = structure(\"abc\", atom(\"a\"), atom(\"b\"), atom(\"c\"));\n Term t2 = structure(\"abc\", integerNumber(), decimalFraction(), variable());\n PredicateKey k1 = PredicateKey.createForTerm(t1);\n PredicateKey k2 = PredicateKey.createForTerm(t2);\n testEquals(k1, k2);\n }", "protected abstract boolean isEqual(E entryA, E entryB);", "public void testEquals() {\n XIntervalDataItem item1 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n XIntervalDataItem item2 = new XIntervalDataItem(1.0, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.0, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.0, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.0);\n item1 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n item2 = new XIntervalDataItem(1.1, 2.2, 3.3, 4.4);\n }", "@Test\n public void equality() {\n new EqualsTester()\n .addEqualityGroup(UnitConverters.identity())\n .addEqualityGroup(UnitConverters.shift(100))\n .addEqualityGroup(UnitConverters.multiply(2))\n .addEqualityGroup(UnitConverters.pow(10, 6))\n .addEqualityGroup(UnitConverters.pow(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.root(UnitConverters.multiply(5), 2))\n .addEqualityGroup(UnitConverters.compose(UnitConverters.shift(100), UnitConverters.multiply(2)))\n .testEquals();\n }", "public interface Equality extends Clause {}", "public static BinaryExpression equal(Expression expression0, Expression expression1) { throw Extensions.todo(); }", "@Override\n public boolean areContentsTheSame(Item one,\n Item two) {\n return one.equals(two);\n }", "@Override\n\tpublic void visit(EqualityNode node) {\n\t\tif (Evaluator.checkScope(node) == false) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (Evaluator.checkAssert(node) == false) {\n\t\t\treturn;\n\t\t}\n\t\t/**\n\t\t * evaluam fiul stang si fiul drept\n\t\t */\n\t\tEvaluator.evaluate(node.getChild(0));\n\t\tEvaluator.evaluate(node.getChild(1));\n\n\t\tString s2 = null;\n\t\tString s1 = null;\n\t\t/**\n\t\t * preluam rezultatele evaluarii celor doi fii\n\t\t */\n\t\tif (node.getChild(0) instanceof Variable) {\n\t\t\ts1 = Evaluator.variables.get(node.getChild(0).getName());\n\t\t} else {\n\t\t\ts1 = node.getChild(0).getName();\n\t\t}\n\t\tif (node.getChild(1) instanceof Variable) {\n\t\t\ts2 = Evaluator.variables.get(node.getChild(1).getName());\n\t\t} else {\n\t\t\ts2 = node.getChild(1).getName();\n\t\t}\n\n\t\t/**\n\t\t * verificam daca cei doi fii s- au evaluat la aceeasi expresie\n\t\t */\n\t\tif (s1.contentEquals(s2)) {\n\t\t\tnode.setName(\"true\");\n\t\t} else {\n\t\t\tnode.setName(\"false\");\n\t\t}\n\n\t}", "@Test\n\tpublic void equalsAndHashcode() {\n\t\tCollisionItemAdapter<Body, BodyFixture> item1 = new CollisionItemAdapter<Body, BodyFixture>();\n\t\tCollisionItemAdapter<Body, BodyFixture> item2 = new CollisionItemAdapter<Body, BodyFixture>();\n\t\t\n\t\tBody b1 = new Body();\n\t\tBody b2 = new Body();\n\t\tBodyFixture b1f1 = b1.addFixture(Geometry.createCircle(0.5));\n\t\tBodyFixture b2f1 = b2.addFixture(Geometry.createCircle(0.5));\n\t\t\n\t\titem1.set(b1, b1f1);\n\t\titem2.set(b1, b1f1);\n\t\t\n\t\tTestCase.assertTrue(item1.equals(item2));\n\t\tTestCase.assertEquals(item1.hashCode(), item2.hashCode());\n\t\t\n\t\titem2.set(b2, b2f1);\n\t\tTestCase.assertFalse(item1.equals(item2));\n\t\t\n\t\titem2.set(b1, b2f1);\n\t\tTestCase.assertFalse(item1.equals(item2));\n\t}", "protected boolean equalityTest(Object key, Object key2) {\n\t\t\treturn this.set.equalityTest(key, key2);\n\t\t}", "private Comparison checkEquality(SimpleNode node1, SimpleNode node2) {\n // Compare the classes.\n Comparison comparison = compareClasses(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the values.\n comparison = compareValues(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the images.\n comparison = compareImages(node1, node2);\n if (!comparison.isEqual()) {\n return comparison;\n }\n\n // Compare the children.\n return compareChildren(node1, node2);\n }", "@org.testng.annotations.Test\n public void test_equals_Symmetric()\n throws Exception {\n CategorieClient categorieClient = new CategorieClient(\"denis\", 1000, 10.2, 1.1, 1.2, false);\n Client x = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Client y = new Client(\"Denis\", \"Denise\", \"Paris\", categorieClient);\n Assert.assertTrue(x.equals(y) && y.equals(x));\n Assert.assertTrue(x.hashCode() == y.hashCode());\n }", "@Override\n public boolean isEqual(Query e1, Query e2) {\n //Devuelve siempre falso, en una lista no puede haber dos querys iguales\n return this.compare(e1,e2) == this.EQUAL;\n }", "@Test\n public void testEquals_2() {\n LOGGER.info(\"testEquals_2\");\n final AtomString atomString = new AtomString(\"Hello\");\n final Atom atom = new AtomString(\"Hej\");\n final boolean actual = atomString.equals(atom);\n assertFalse(actual);\n }", "boolean equivalent(Concept x, Concept y);", "private static <F> /*@ pure @*/ boolean elem_equals(F item1,\n F item2) {\n return (item1 != null && item1.equals(item2))\n\t || (item1 == null && item2 == null);\n }", "protected boolean isEqual( Object lhs, Object rhs ){\r\n\t\tboolean x = lhs==null;\r\n\t\tboolean y = rhs == null;\r\n\t\t//XOR OPERATOR, only one is null\r\n\t\tif ((x || y) && !(x && y))\r\n\t\t\treturn false;\r\n\t\tif (lhs.equals(rhs))\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "private void assertSymmetric(UMLMessageArgument msgArg1,UMLMessageArgument msgArg2) throws Exception\r\n\t{\r\n\t\tif( msgArg1!=null && msgArg2!=null)\r\n\t\t\tassertEquals(msgArg1.equals(msgArg2),msgArg2.equals(msgArg1));\r\n\t}", "Expr equality() throws IOException {\n\t\tExpr e = rel();\t\t\t\t\t\t\t\t\t\t\t//\t\t\t equality ne rel | rel\n\t\twhile (look.tag == Tag.EQ || look.tag == Tag.NE) {\n\t\t\tToken tok = look;\n\t\t\tmove();\n\t\t\te = new Rel(tok, e, rel());\n\t\t}\n\t\treturn e;\n\t}", "@Test\n public void equal() {\n assertTrue(commandItem.equals(commandItemCopy));\n assertTrue(commandItem.isSameCommand(commandItemCopy));\n //not commanditem return false\n assertFalse(commandItem.equals(commandWord));\n }", "@Test\r\n\tpublic void testEquality(){\n\t\t assertEquals(object1, object2);\r\n\t}", "public AlgoAreEqual(Construction cons, GeoElement inputElement1,\n\t\t\tGeoElement inputElement2) {\n\t\tsuper(cons);\n\t\tthis.inputElement1 = inputElement1;\n\t\tthis.inputElement2 = inputElement2;\n\n\t\toutputBoolean = new GeoBoolean(cons);\n\n\t\tsetInputOutput();\n\t\tcompute();\n\n\t}", "@Test\n public void equals_trulyEqual() {\n SiteInfo si1 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n SiteInfo si2 = new SiteInfo(\n Amount.valueOf(12000, SiteInfo.CUBIC_FOOT),\n Amount.valueOf(76, NonSI.FAHRENHEIT),\n Amount.valueOf(92, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n Amount.valueOf(100, NonSI.FAHRENHEIT),\n 56,\n Damage.CLASS2,\n Country.USA,\n \"Default Site\"\n );\n\n Assert.assertEquals(si1, si2);\n }", "public AlgoAreEqual(Construction cons, String label,\n\t\t\tGeoElement inputElement1, GeoElement inputElement2) {\n\t\tthis(cons, inputElement1, inputElement2);\n\t\toutputBoolean.setLabel(label);\n\t}", "@Override\r\n public boolean equals(Object o)\r\n {\r\n items oo = (items)o;\r\n if(this.loc_index==oo.loc_index && this.rule_number==oo.rule_number)\r\n return true;\r\n return false;\r\n }", "public static void main(String[] args) {\n int n1 = 0;\n int n2 = 0;\n int n3 = 0;\n if (n1 == n2 && n1 != n3) {\n System.out.println(\"n1 and n2 equal\");\n } else if (n2 == n3 && n2 != n1) {\n System.out.println(\"n2 and n3 equal\");\n } else if (n3 == n1 && n1 != n2) {\n System.out.println(\"n3 and n1 equal\");\n } else if (n1 == n2 && n1 == n3) {\n System.out.println(\"all equal\");\n }\n else {\n System.out.println(\"none equal\");\n }\n }", "boolean equalTo(ObjectPassDemo o) {\n return (o.a == a && o.b == b);\n }", "public abstract boolean doEquivalent(T t, T t2);", "public static void main(String[] args) {\n // Reflexive\n System.out.println(o.equals(o));\n System.out.println(r.equals(r));\n\n // Symmetric\n System.out.println(o.equals(p) + \" = \" + p.equals(o));\n System.out.println(r.equals(s) + \" = \" + s.equals(r));\n\n // Transitive\n System.out.println(o.equals(p) + \" = \" + p.equals(q) + \" = \" + o.equals(q));\n System.out.println(r.equals(s) + \" = \" + s.equals(t) + \" = \" + r.equals(t));\n\n // Comparing Point to ColorPoint\n System.out.println(p.equals(s.asPoint()));\n System.out.println(s.asPoint().equals(p));\n }", "@Test\n public void equalsTest() {\n prepareEntitiesForEqualityTest();\n\n assertEquals(entity0, entity1);\n }", "public static void main(String[] args) {\n Pair first = new Pair(\"Pesho\", \"Gosho\");\r\n Pair second = new Pair(\"Pesho\", \"Gosho\");\r\n Pair third = new Pair(\"Pesho\", \"Mariika\");\r\n \r\n System.out.println(first.equals(second));\r\n System.out.println(first.equals(third));\r\n }", "@Test\n public void equalityForDifferentBinaryOps() {\n XPathStringLiteral leftStringExpr = new XPathStringLiteral(\"left side\");\n XPathNumericLiteral zero = new XPathNumericLiteral(0d);\n\n // Setup expressions to test equality over.\n // Note: these binary expressions make semantic sense\n XPathArithExpr additionExpr = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr additionExprClone = new XPathArithExpr(XPathArithExpr.ADD, leftStringExpr, zero);\n XPathArithExpr subtractExpr = new XPathArithExpr(XPathArithExpr.SUBTRACT, leftStringExpr, zero);\n\n XPathBoolExpr andExpr = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr andExprClone = new XPathBoolExpr(XPathBoolExpr.AND, leftStringExpr, zero);\n XPathBoolExpr orExpr = new XPathBoolExpr(XPathBoolExpr.OR, leftStringExpr, zero);\n\n XPathCmpExpr lessThanExpr = new XPathCmpExpr(XPathCmpExpr.LT, leftStringExpr, zero);\n XPathCmpExpr greaterThanExpr = new XPathCmpExpr(XPathCmpExpr.GT, leftStringExpr, zero);\n\n XPathEqExpr eqExpr = new XPathEqExpr(XPathEqExpr.EQ, leftStringExpr, zero);\n XPathEqExpr neqExpr = new XPathEqExpr(XPathEqExpr.NEQ, leftStringExpr, zero);\n\n XPathUnionExpr union = new XPathUnionExpr(leftStringExpr, zero);\n XPathUnionExpr differentUnion = new XPathUnionExpr(zero, zero);\n\n // basic equality tests over same subclass\n Assert.assertEquals(\"Same + expression reference is equal\", additionExpr, additionExpr);\n Assert.assertEquals(\"Same + expression is equal\", additionExpr, additionExprClone);\n Assert.assertNotEquals(\"+ not equal to -\", additionExpr, subtractExpr);\n Assert.assertEquals(\"Same && expression reference is equal\", andExpr, andExpr);\n Assert.assertEquals(\"Same && expression is equal\", andExpr, andExprClone);\n Assert.assertNotEquals(\"&& not equal to ||\", andExpr, orExpr);\n Assert.assertEquals(\"Same < expression is equal\", lessThanExpr, lessThanExpr);\n Assert.assertNotEquals(\"< not equal to >\", lessThanExpr, greaterThanExpr);\n Assert.assertEquals(\"Same == expression is equal\", eqExpr, eqExpr);\n Assert.assertNotEquals(\"== not equal to !=\", eqExpr, neqExpr);\n\n // make sure different binary expressions with same op code aren't equal\n Assert.assertNotEquals(\"+ not equal to &&\", additionExpr, andExpr);\n Assert.assertNotEquals(\"+ not equal to <\", additionExpr, lessThanExpr);\n Assert.assertNotEquals(\"+ not equal to ==\", additionExpr, eqExpr);\n Assert.assertNotEquals(\"- not equal to ||\", subtractExpr, orExpr);\n Assert.assertNotEquals(\"- not equal to >\", subtractExpr, greaterThanExpr);\n Assert.assertNotEquals(\"- not equal to !=\", subtractExpr, neqExpr);\n\n // make sure union equality, which doesn't have an op code, works\n Assert.assertEquals(\"same union instance is equal to itself\", union, union);\n Assert.assertNotEquals(union, differentUnion);\n Assert.assertNotEquals(\"+ not equal to union\", additionExpr, union);\n }", "private Boolean equalWebItemImages(WebItemImage webItemImageOne, WebItemImage webItemImageTwo) {\n\t\tif (webItemImageOne==null && webItemImageTwo==null) {\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tif (webItemImageOne==null || webItemImageTwo==null) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (webItemImageOne.getSourceURL() == webItemImageTwo.getSourceURL()) {\r\n\t\t\treturn true;\r\n\t\t } else {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n void compareTo_Identical_AllParts()\n {\n runIsMatchTest(AnswerType.yes, AnswerType.yes, AnswerType.yes, AnswerType.yes, ContactMatchType.Identical);\n }", "public static void main(String[] args) {\n\t\tList l=new ArrayList();\r\n\t\tl.add(12);\r\n\t\tl.add(45);\r\n\t\tl.add(15);\r\n\t\tl.add(78);\r\n\t\t\r\n\t\tList l2=new ArrayList();\r\n\t\tl2.add(12);\r\n\t\tl2.add(45);\r\n\t\tl2.add(10);\r\n\t\tl2.add(78);\r\n\t\t\r\n\t\tBoolean m=l.containsAll(l2);\r\n\t\t\r\n\t\tif(m)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Elements are same\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Not equal\");\r\n\t\t}\r\n\t\t\r\n\r\n\t}", "public static <A, B> Equal<P2<A, B>> p2Equal(final Equal<A> ea, final Equal<B> eb) {\n return new Equal<P2<A, B>>(new F<P2<A, B>, F<P2<A, B>, Boolean>>() {\n public F<P2<A, B>, Boolean> f(final P2<A, B> p1) {\n return new F<P2<A, B>, Boolean>() {\n public Boolean f(final P2<A, B> p2) {\n return ea.eq(p1._1(), p2._1()) && eb.eq(p1._2(), p2._2());\n }\n };\n }\n });\n }", "private static boolean equalityTest2(String a, String b)\n {\n return a.equals(b);\n }", "@Override\r\n\tpublic boolean isEqual(Node node) {\n\t\treturn false;\r\n\t}", "private static boolean equalityTest1(String a, String b)\n {\n return a == b;\n }", "@Test\n\tpublic void testEqualsFalso() {\n\t\t\n\t\tassertFalse(contato1.equals(contato2));\n\t}", "public SingleRuleBuilder equals(String variable1, String variable2 ) {\n return or(true, \"=\", variable1, variable2);\n }", "private void assertEquivalentPair(Set<Pair> result, String s1, String s2) {\n\t\tPair resultPair = filterResult(result, s1, s2);\n\t\tassertFalse(resultPair.isMarked());\n\t}", "@Test\n @DisplayName(\"Test should detect equality between equal states.\")\n public void testShouldResultInEquality() {\n ObjectBag os1 = new ObjectBag(null, \"Hi\");\n ObjectBag os2 = new ObjectBag(null, \"Hi\");\n\n Assertions.assertThat(os1).isEqualTo(os2);\n }", "boolean hasIsEquivalent();", "private void testEquals() {\n init();\n assertTrue(\"l0.equals(l0)\", l0.equals(l0));\n assertTrue(\"l3.equals(l5)\", l3.equals(l5));\n }", "@Test\n public void testEquals() {\n Coctail c1 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n Coctail c2 = new Coctail(\"coctail\", new Ingredient[]{ \n new Ingredient(\"ing1\"), new Ingredient(\"ing2\")});\n assertEquals(c1, c2);\n }", "public boolean isEqual(Edge e){\n if(v1.equals(e.v1) && v2.equals(e.v2)){\n return true;\n }\n else if(v1.equals(e.v2) && v2.equals(e.v1)){\n return true;\n }\n else{\n return false;\n }\n }", "public final void rule__OpEquality__Alternatives() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1837:1: ( ( '==' ) | ( '!=' ) )\n int alt4=2;\n int LA4_0 = input.LA(1);\n\n if ( (LA4_0==15) ) {\n alt4=1;\n }\n else if ( (LA4_0==16) ) {\n alt4=2;\n }\n else {\n if (state.backtracking>0) {state.failed=true; return ;}\n NoViableAltException nvae =\n new NoViableAltException(\"\", 4, 0, input);\n\n throw nvae;\n }\n switch (alt4) {\n case 1 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1838:1: ( '==' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1839:1: '=='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n match(input,15,FOLLOW_15_in_rule__OpEquality__Alternatives3867); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getEqualsSignEqualsSignKeyword_0()); \n }\n\n }\n\n\n }\n break;\n case 2 :\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1846:6: ( '!=' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:1847:1: '!='\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n match(input,16,FOLLOW_16_in_rule__OpEquality__Alternatives3887); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getOpEqualityAccess().getExclamationMarkEqualsSignKeyword_1()); \n }\n\n }\n\n\n }\n break;\n\n }\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }", "public boolean Equal(Element other){\n\tboolean ret_val ;\n\tint aux01 ;\n\tint aux02 ;\n\tint nt ;\n\tret_val = true ;\n\n\taux01 = other.GetAge();\n\tif (!this.Compare(aux01,Age)) ret_val = false ;\n\telse { \n\t aux02 = other.GetSalary();\n\t if (!this.Compare(aux02,Salary)) ret_val = false ;\n\t else \n\t\tif (Married) \n\t\t if (!other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t\telse\n\t\t if (other.GetMarried()) ret_val = false;\n\t\t else nt = 0 ;\n\t}\n\n\treturn ret_val ;\n }" ]
[ "0.68710756", "0.6573351", "0.654675", "0.6505271", "0.633485", "0.62610954", "0.610896", "0.60853434", "0.6030637", "0.60250705", "0.60057306", "0.59959054", "0.5984113", "0.5972219", "0.5939557", "0.591106", "0.59038407", "0.5886497", "0.585278", "0.5838027", "0.58052254", "0.58015263", "0.5798635", "0.5782906", "0.5773666", "0.5746945", "0.5712715", "0.56969583", "0.568044", "0.56763035", "0.5674128", "0.5646504", "0.5644896", "0.5640765", "0.56143445", "0.56020004", "0.5601558", "0.5591232", "0.55768496", "0.55572796", "0.55564773", "0.5555807", "0.55541337", "0.5545642", "0.5539252", "0.5534491", "0.55315495", "0.55251884", "0.55131894", "0.55076736", "0.5503529", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.55024457", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203", "0.550203" ]
0.0
-1
Act do whatever the SpaceObject wants to do. This method is called whenever the 'Act' or 'Run' button gets pressed in the environment.
public void act() { move(-16); if (isAtEdge()) { setLocation(700,getY()); } if (isTouching(Shots.class)) { getWorld().addObject(new SpaceObject(), 500,Greenfoot.getRandomNumber(400)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void act()\n {\n // handle key events\n String key = Greenfoot.getKey();\n if (key != null)\n {\n handleKeyPress(key);\n } \n\n // handle mouse events\n if (startGameButton.wasClicked())\n {\n handleStartGame();\n }\n }", "public void act() \n {\n checkCollision();\n KeyMovements(); \n attackWeapon();\n //stopGame();\n \n }", "public void act() \r\n {\r\n key();\r\n win();\r\n fall();\r\n lunch();\r\n }", "public void act() \n {\n gravity();\n animate();\n }", "public void act()\n {\n // Make sure fish is alive and well in the environment -- fish\n // that have been removed from the environment shouldn't act.\n if ( isInEnv() ) \n move();\n }", "public void act() {\n\t}", "public void act() \n {\n fall();\n if(Greenfoot.isKeyDown(\"space\") && isOnSolidGround())\n {\n jump();\n }\n move();\n }", "public void act() \n {\n movement();\n }", "public void act() \r\n {\r\n move();\r\n }", "public void act()\r\n\t{\r\n\t\tyVel += gravity;\r\n\t\t//Resets the jump delay to when greater than 0\r\n\t\tif (jDelay > 0)\r\n\t\t{\r\n\t\t\tjDelay--;\r\n\t\t}\r\n\t\t//Sets the vertical velocity and jump delay of the bird after a jump\r\n\t\tif (alive == true && (Menu.keyPress == KeyEvent.VK_SPACE) && jDelay <= 0) \r\n\t\t{\r\n\t\t\tMenu.keyPress = 0;\r\n\t\t\tyVel = -10;\r\n\t\t\tjDelay = 10;\r\n\t\t}\r\n\t\ty += (int)yVel;\r\n\t}", "public void act() \n {\n moveAround(); \n addBomb(); \n touchGhost(); \n }", "public void act() \r\n {\r\n if ( Greenfoot.isKeyDown( \"left\" ) )\r\n {\r\n turn( -5 );\r\n }\r\n\r\n else if ( Greenfoot.isKeyDown( \"right\" ) )\r\n {\r\n turn( 5 );\r\n }\r\n if ( Greenfoot.isKeyDown(\"up\") )\r\n {\r\n move(10);\r\n }\r\n else if ( Greenfoot.isKeyDown( \"down\") )\r\n {\r\n move(-10);\r\n }\r\n if ( IsCollidingWithGoal() )\r\n {\r\n getWorld().showText( \"You win!\", 300, 200 );\r\n Greenfoot.stop();\r\n }\r\n }", "public void act() \n {\n \n checkKey();\n platformAbove();\n \n animationCounter++;\n checkFall();\n }", "private void act() {\n\t\tmyAction.embodiment();\n\t}", "public void act ()\n {\n checkScroll();\n checkPlatform();\n checkXAxis();\n checkDeath();\n // get the current state of the mouse\n MouseInfo m = Greenfoot.getMouseInfo();\n // if the mouse is on the screen...\n if (m != null)\n {\n // if the mouse button was pressed\n if (Greenfoot.mousePressed(null))\n {\n // shoot\n player.shoot(m.getX(), m.getY());\n }\n }\n }", "public void act() \n {\n // Add your action code here.\n MyWorld world = (MyWorld) getWorld();\n jefe = world.comprobarJefe();\n \n \n explotar();\n \n if(jefe)\n {\n girarHaciaEnemigo();\n movimientoPegadoAJefe();\n }\n }", "public void act() \n {\n moveEnemy();\n checkHealth();\n attacked();\n }", "public void act() \n {\n frameCount++;\n animateFlying();\n if (getWorld() instanceof DreamWorld)\n {\n dream();\n }\n else if (getWorld() instanceof FinishScreen)\n {\n runEnd();\n }\n }", "public void act() \n {\n moveAround();\n die();\n }", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }", "public void act() \n {\n playerMovement();\n }", "public void act() \r\n {\r\n move(speed); //move at set speed\r\n \r\n if(actCounter < 2) //increases act counter if only 1 act has passed\r\n actCounter++;\r\n\r\n if(actCounter == 1) //if on the first act\r\n {\r\n targetClosestPlanet(); //will target closest planet depending on if it wants to find an unconquered planet, or just the closest one\r\n if(planet == null && findNearestPlanet)\r\n findNearestPlanet = false;\r\n }\r\n \r\n if(health > 0) //if alive\r\n {\r\n if(findNearestPlanet)\r\n targetClosestPlanet();\r\n if(planet != null && planet.getWorld() != null) //if planet exists\r\n moveTowards(); //move toward it\r\n else\r\n moveRandomly(); //move randomly\r\n }\r\n \r\n if(removeMe || atWorldEdge())\r\n getWorld().removeObject(this);\r\n }", "public void act() \n {\n // Add your action code here.\n // get the Player's location\n if(!alive) return;\n \n int x = getX();\n int y = getY();\n \n // Move the Player. The setLocation() method will move the Player to the new\n // x and y coordinates.\n \n if( Greenfoot.isKeyDown(\"right\") ){\n setLocation(x+1, y);\n } else if( Greenfoot.isKeyDown(\"left\") ){\n setLocation(x-1, y);\n } else if( Greenfoot.isKeyDown(\"down\") ){\n setLocation(x, y+1);\n } else if( Greenfoot.isKeyDown(\"up\") ){\n setLocation(x, y-1);\n } \n \n removeTouching(Fruit.class);\n if(isTouching(Bomb.class)){\n alive = false;\n }\n \n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\r\n // Add your action code here.\r\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void act() \r\n {\n }", "public void doAction(SpaceWars game){\r\n\t\t\r\n\t\tsuper.doAction(game);\r\n\t\taccelerate();\r\n\t\tfire(game);\r\n\t}", "public void act();", "@Override\n public void act() {\n sleepCheck();\n if (!isAwake()) return;\n while (getActionTime() > 0f) {\n UAction action = nextAction();\n if (action == null) {\n this.setActionTime(0f);\n return;\n }\n if (area().closed) return;\n doAction(action);\n }\n }", "void act();", "public void act() \n {\n if(isAlive)\n {\n move(2);\n if(isAtEdge())\n {\n turnTowards(300, 300);\n GreenfootImage img = getImage();\n img.mirrorVertically();\n setImage(img);\n }\n if (getY() <= 150 || getY() >= 395)\n {\n turn(50);\n }\n if(isTouching(Trash.class))\n {\n turnTowards(getX(), 390);\n move(1);\n setLocation(getX(), 390);\n die();\n }\n }\n }", "public void act() \r\n {\r\n if (startTime > 0) {\r\n startTime--;\r\n }\r\n else {\r\n if (isScared()) {\r\n doScareMode();\r\n }\r\n else {\r\n if (counter == 0 || !canMove(currDirectionStr)) {\r\n counter = CELL_SIZE * 4;\r\n prevDirection = currDirection;\r\n do {\r\n currDirection = (int)(Math.random() * 10);\r\n if (currDirection == 0) {\r\n currDirectionStr = \"up\";\r\n }\r\n else if (currDirection == 1) {\r\n currDirectionStr = \"left\";\r\n }\r\n else if (currDirection == 2) {\r\n currDirectionStr = \"down\";\r\n }\r\n else if (currDirection == 3) {\r\n currDirectionStr = \"right\";\r\n }\r\n } while (!canMove(currDirectionStr));\r\n }\r\n \r\n if (canMove(currDirectionStr)) {\r\n move(currDirectionStr);\r\n }\r\n counter--;\r\n } \r\n }\r\n }", "@Override\n public void act() {\n }", "public void act() \r\n {\r\n mueve();\r\n //tocaJugador();\r\n //bala();\r\n disparaExamen();\r\n }", "public void act() {\r\n\t\tturn(steps[number % steps.length]);\r\n\t\tnumber++;\r\n\t\tsuper.act();\r\n\t}", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act() \n {\n // Add your action code here.\n }", "public void act()\n {\n \n //move();\n //if(canSee(Worm.class))\n //{\n // eat(Worm.class);\n //}\n //else if( atWorldEdge() )\n //{\n // turn(15);\n //}\n\n }", "public void act() \n {\n movegas();\n \n atingido2(); \n \n }", "public void act()\n {\n if (getGrid() == null)\n return;\n if (caughtPokemon.size() <= 0)\n {\n removeSelfFromGrid();\n System.out.println(toString() + \" has blacked out! \" + toString() + \" has appeared at a PokeCenter.\");\n return;\n }\n ArrayList<Location> moveLocs = getMoveLocations();\n Location loc = selectMoveLocation(moveLocs);\n makeMove(loc);\n }", "@Override\r\n\tpublic void act() {\n\t\tausgeben();\r\n\t}", "public void act() \n {\n fall();\n }", "public void act()\n {\n trackTime();\n showScore();\n \n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "public void act() \n {\n }", "@Override\n public void run() {\n chosenActionUnit.run(getGame(), inputCommands);\n }", "public void interact() {\r\n\t\t\r\n\t}", "public void act() {\n\t\tif (canMove2()) {\n\t\t\tsteps += 2;\n\t\t\tmove();\n\t\t} else {\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t}\n\t}", "@Override\n protected void doAct() {\n }", "public void act() \n {\n super.checkClick();\n active(isActive);\n }", "public void act() \n {\n move(5);\n turn(4);\n }", "public void act() \n {\n // Add your action code here.\n \n //setRotation();\n setLocation(getX(),getY()+2);\n movement();\n \n }", "public void act() \n {\n // Add code to move platforms if right key is pressed\n if( Greenfoot.isKeyDown(\"right\") )\n {\n move(-1);\n }\n \n // Add code to remove platforms if it's x coordinate is < 0\n if( getX() < 0 )\n {\n getWorld().removeObject(this);\n }\n \n }", "public void act() \n {\n\n World wrld = getWorld();\n if(frameCounter >= frameWait)\n {\n super.act();\n frameCounter = 0;\n }\n else\n {\n frameCounter++;\n }\n if (dying)\n deathcounter++;\n GreenfootImage trans = getImage();\n trans.scale(500,500);\n setImage(trans);\n setLocation(getX(), (getY()));\n\n if (deathcounter > 10)\n {\n wrld.removeObject(this);\n ((Universe)wrld).score += 50;\n }\n else if (getX() < 10)\n wrld.removeObject(this);\n }", "public void act() // method act\n {\n moveBear(); //lakukan method movebear\n objectDisappear(); // lakukan method objeectDisappear\n }", "public void act() \n {\n move(4); \n collision();\n \n \n }", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public void act() \n {\n // Add your action code here.\n klawisze();\n stawiaj();\n pobierzJablka();\n }", "public void performAction() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void act()\n {\n // if (claimer ==null){\n // this.setClaim(false);\n //}\n if(claimer == null){\n setClaim(false);\n }\n if (energy>0){\n \n removeEnergy(decayRate);\n\n }\n else {\n // getWorld().removeObject(this);\n\n }\n \n //check the energy decay\n //change size and weight\n //\n }", "public void act() \n {\n setLocation(getX(),getY()+1);\n givePower();\n delete();\n }", "public void performAction();", "public void act() \r\n {\r\n super.mueve();\r\n super.tocaBala();\r\n super.creaItem();\r\n \r\n if(getMoveE()==0)\r\n {\r\n \r\n if(shut%3==0)\r\n {\r\n dispara();\r\n shut=shut%3;\r\n shut+=1;\r\n \r\n }\r\n else \r\n shut+=1;\r\n }\r\n super.vidaCero();\r\n }", "public void act()\n {\n addBox();\n }", "public void act() \n {\n move(3);\n turnAtEdge(); \n StrikeSeaHorse();\n }", "public void doInteract()\r\n\t{\n\t}", "@Override\n\tpublic void action() {\n\t\tSystem.out.println(\"action now!\");\n\t}", "public void act() \n {\n\n if(isTouching(Car.class))\n {\n Lap = Lap + 1;\n if ((Lap % 11) == 0)\n {\n String lap = Integer.toString(Lap / 11);\n\n getWorld().showText(lap, 450, 30);\n getWorld().showText(\"Lap:\", 400, 30);\n }\n } \n if (Lap == 47)\n {\n Greenfoot.stop();\n getWorld().showText(\"GameOver\",250,250);\n }\n }", "@Override\n\tpublic void doAction(String action) {\n\t\tthis.action = action;\n\t\t\n\t\tthis.gameController.pause();\n\t}", "public void act() \r\n {\r\n \r\n // Add your action code here\r\n MovimientoNave();\r\n DisparaBala();\r\n Colisiones();\r\n //muestraPunto();\r\n //archivoTxt();\r\n }", "@Override\n public void doAction() {\n this.game.setComputerStartsFirst(false);\n }", "public void act() \r\n {\r\n if (Greenfoot.mouseClicked(this)) {\r\n Greenfoot.setWorld(new howToPlayGuide());\r\n }\r\n }", "public void act() {\n\n\tif (0 == stepCount) {\n\n\t ArrayList<Location> node = new ArrayList<Location>();\n\t node.add(getLocation());\n\t crossLocation.push(node);\n\t}\n\n\tboolean willMove = canMove();\n\tif (isEnd == true) {\n\t //to show step count when reach the goal\t\t\n\t if (hasShown == false) {\n\t\tString msg = stepCount.toString() + \" steps\";\n\t\tJOptionPane.showMessageDialog(null, msg);\n\t\thasShown = true;\n\t }\n\t} else if (willMove) {\n\t\n\t move();\n\t //increase step count when move \n\t stepCount++;\n\t} else {\n\t \n\t back();\n\t stepCount++;\n\t}\n\n }", "public void act() {\n\t\tif (canMove()) {\n\t\t\tif (isOnBase()) {\n\t\t\t\tif (steps < baseSteps) {\n\t\t\t\t\tmove();\n\t\t\t\t\tsteps++;\n\t\t\t\t} else {\n\t\t\t\t\tturn();\n\t\t\t\t\tturn();\n\t\t\t\t\tturn();\n\t\t\t\t\tsteps = 0;\n\t\t\t\t}\n\t\t\t} else if (steps == baseSteps / 2) {\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tsteps++;\n\t\t\t} else if (steps == baseSteps + 1) {\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tturn();\n\t\t\t\tsteps = 0;\n\t\t\t} else {\n\t\t\t\tmove();\n\t\t\t\tsteps++;\n\t\t\t}\n\t\t} else {\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tturn();\n\t\t\tsteps = 0;\n\t\t}\n\t}", "public void act() \n {\n World w = getWorld();\n int height = w.getHeight();\n \n setLocation(getX(),getY()+1);\n if (getY() <=0 || getY() >= height || getX() <= 0) // off the world\n {\n w.removeObject(this);\n return;\n }\n \n \n SaboWorld thisWorld = (SaboWorld) getWorld();\n Turret turret = thisWorld.getTurret();\n Actor turretActor = getOneIntersectingObject(Turret.class);\n Actor bullet = getOneIntersectingObject(Projectile.class);\n \n if (turretActor!=null && bullet==null) // hit the turret!\n {\n \n turret.bombed(); //Turret loses health\n explode();\n w.removeObject(this);\n } else if (turret==null && bullet!=null) //hit by a bullet!\n {\n explode();\n w.removeObject(this);\n }\n \n }", "@Override\n\tpublic void act(float dt){\n\t\t\n\t}", "public void act() \n {\n // Add your action code here.\n /*\n if ( pixelsMoved >= 20 )\n {\n moving = false;\n pixelsMoved = 0;\n }\n */\n if ( moving )\n {\n move(1);\n pixelsMoved++;\n \n if ( pixelsMoved >= 20 )\n {\n setMoving( false );\n }\n }\n }", "public void act() \n {\n mouse = Greenfoot.getMouseInfo();\n \n // Removes the achievement after its duration is over if its a popup (when it pops up during the game)\n if(popup){\n if(popupDuration == 0) getWorld().removeObject(this);\n else popupDuration--;\n }\n // Displays the decription of the achievement when the user hovers over it with the mouse\n else{\n if(Greenfoot.mouseMoved(this)) drawDescription();\n if(Greenfoot.mouseMoved(null) && !Greenfoot.mouseMoved(this)) drawMedal();\n }\n }", "public void act(){\n // Removing object, if out of the simulated zone\n if (atWorldEdge()){\n getWorld().removeObject(this);\n return;\n }\n\n //Move Thanos up\n setLocation (getX(), getY() - speed);\n }", "public void act() \n {\n advance(); // move forward in the correct direction\n\n if(canSee(Ground.class) || atWorldEdge()) {\n getWorld().removeObject(this);\n return; \n }\n\n bImpact();\n takeExplosionTimer();\n }", "public void act(){\n if (alive) {\n x = x + vx * dt;\n vx = vx * (1. - daempfung); //Luftwiderstand, eventuell muss dass nur in der Spielerklasse implementiert\n //werden, damit die Pilze nicht abgebremst werden.\n if (bewegung == Bewegung.fallen) {\n y = y + vy * dt;\n vy = vy + g * dt;\n }\n }\n }", "public void act() {\n\t\tsuper.act();\n\t\t//Gracias www.trucoteca.com\n\t\tif(control && shift && n) {\n\t\t\tthis.x = Ventana.getInstancia().getBola().getX();\n\t\t}\n\t\t//Si quieres ser legal\n\t\telse {\n\t\tthis.x += this.vx;\n\t\t}\n\t\tif(this.x < 0)\n\t\t\tthis.x = 0;\n\t\tif(this.x > Stage.WIDTH - getWidth())\n\t\t\tx = Stage.WIDTH - getWidth();\n\t\t}", "protected void execute() {\n \tif (isIntaking) {\n \t\tRobot.conveyor.forward();\n \t} else {\n \t\tRobot.conveyor.backward();\n \t}\n }", "public void act()\r\n {\r\n // back button\r\n if (Greenfoot.isKeyDown(\"escape\") || Greenfoot.mouseClicked(backButton)) {\r\n Greenfoot.setWorld(new Title(gameSettings));\r\n }\r\n }", "public void act() {\t\n\t\twhile (true) { \n\t\t\tleft(60); \n\t\t\t\n\t\t\t// draw a rectangle \n\t\t\tmove(70);\n\t\t\tright(90); \n\t\t\tmove(30); \n\t\t\tright(90); \n\t\t\tmove(70);\n\t\t\tright(90); \n\t\t\tmove(30); \n\t\t\tright(90); \n\t\t}\n\t}", "public void act()\n {\n \n if (wait < 75)\n {\n wait = wait + 1;\n }\n \n \n \n \n \n \n if (wait == 75)\n {\n change();\n checkForBounce();\n checkForEdge();\n checkWin(); \n }\n \n \n }", "public void act() \n {\n // Add your action code here.\n tempoUp();\n }" ]
[ "0.7271551", "0.70675504", "0.7056526", "0.7045333", "0.70244807", "0.6831707", "0.68110543", "0.6764688", "0.67625934", "0.6756015", "0.67321754", "0.6717482", "0.6701268", "0.6694293", "0.663971", "0.6634141", "0.66242737", "0.6618425", "0.65623116", "0.6557651", "0.654175", "0.65276533", "0.6519032", "0.6492759", "0.6492759", "0.6491334", "0.6491334", "0.6491334", "0.6489628", "0.6484987", "0.6455793", "0.6429708", "0.64242655", "0.6406591", "0.64052105", "0.6361772", "0.63540703", "0.6351187", "0.6351187", "0.6351187", "0.6351187", "0.6351187", "0.6351187", "0.6351187", "0.6351187", "0.6351095", "0.6343084", "0.6324249", "0.6316812", "0.63090473", "0.6303067", "0.6296134", "0.6296134", "0.6296134", "0.6296134", "0.6296134", "0.6296134", "0.6296134", "0.62935346", "0.62827504", "0.6280469", "0.6275719", "0.6271708", "0.62706923", "0.62562466", "0.6255786", "0.6254201", "0.62481797", "0.6246028", "0.6243965", "0.6232194", "0.622972", "0.62227273", "0.61869836", "0.61846465", "0.61778474", "0.61695045", "0.61640763", "0.6162039", "0.6158288", "0.61580575", "0.61536574", "0.6149843", "0.6147123", "0.6137448", "0.6128056", "0.61240566", "0.61213934", "0.61165464", "0.6113698", "0.6105513", "0.610057", "0.60946774", "0.6077683", "0.6071038", "0.60709417", "0.60688573", "0.6063679", "0.6040808", "0.603657" ]
0.6420363
33
Created by Shailendra (WackyCodes) on 14/10/2020 00:09 ( To Know more, Click : )
public interface TaskLoadedCallback { void onTaskDone(Object... values); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mo38117a() {\n }", "@SuppressWarnings(\"unused\")\n private void generateInfo()\n {\n }", "public final void mo51373a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n public void perish() {\n \n }", "public void mo55254a() {\n }", "public void mo4359a() {\n }", "public static void listing5_14() {\n }", "protected MetadataUGWD() {/* intentionally empty block */}", "private static void cajas() {\n\t\t\n\t}", "public static void listing5_16() {\n }", "public void mo6081a() {\n }", "protected void mo6255a() {\n }", "@Override\n public int describeContents() {\n// ignore for now\n return 0;\n }", "public void mo12930a() {\n }", "public void mo1531a() {\n }", "@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}", "public void autoDetails() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override public int describeContents() { return 0; }", "@Override\n public int describeContents()\n {\n return 0;\n }", "public static void listing5_15() {\n }", "public void mo9848a() {\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "@Override\n public int describeContents() {\n return 0;\n }", "private stendhal() {\n\t}", "private void presentShowcaseSequence() {\n }", "public void mo21877s() {\n }", "@Override\r\n public int describeContents() {\r\n return 0;\r\n }", "public final void mo91715d() {\n }", "private void m50366E() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo12628c() {\n }", "private String creatNewText() {\n\t\tRandom rnd = new Random();\n\t\treturn \"Some NEW teXt U9\" + Integer.toString(rnd.nextInt(999999));\n\t}", "public void mo21779D() {\n }", "public void mo97908d() {\n }", "public void mo21825b() {\n }", "public void m23075a() {\n }", "public void mo44053a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\t\tpublic int describeContents() {\n\t\t\treturn 0;\n\t\t}", "public void mo56167c() {\n }", "public void mo21785J() {\n }", "public void mo21783H() {\n }", "public void mo5382o() {\n }", "public void mo23813b() {\n }", "public void mo21878t() {\n }", "public static void shoInfo() {\n\t\tSystem.out.println(description);\n\t \n\t}", "public void mo21782G() {\n }", "void kiemTraThangHopLi() {\n }", "public void mo21794S() {\n }", "private UsineJoueur() {}", "public String toString() { return kind() + \":\"+ text() ; }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic int describeContents() {\n\t\treturn 0;\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "public String getDescription()\n/* */ {\n/* 74 */ return this.description;\n/* */ }", "public void mo3749d() {\n }", "public String toString() {\r\n \t\treturn \"\\\"\" + _name + \"\\\" by \" + _creator;\r\n \t}" ]
[ "0.54730266", "0.54562753", "0.5438037", "0.54347795", "0.54347795", "0.54347795", "0.54347795", "0.54347795", "0.54347795", "0.54347795", "0.5376558", "0.53073204", "0.52944374", "0.52505416", "0.52340186", "0.52272815", "0.5197727", "0.517651", "0.512581", "0.51245505", "0.51219875", "0.5082752", "0.50716823", "0.50681406", "0.50643665", "0.506345", "0.5059706", "0.50500906", "0.5048586", "0.50470555", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50448614", "0.50294447", "0.5005352", "0.5001553", "0.49910742", "0.4987839", "0.49838254", "0.4976091", "0.49620768", "0.49252495", "0.4908681", "0.490381", "0.48942512", "0.4893645", "0.48933998", "0.48849803", "0.48795697", "0.48795697", "0.4854765", "0.48528862", "0.4851466", "0.48487073", "0.48454714", "0.4842518", "0.48418707", "0.48415676", "0.4836576", "0.48362577", "0.48339057", "0.48258746", "0.48215222", "0.48199922", "0.4819814", "0.4819814", "0.4819814", "0.4819814", "0.4819814", "0.4808881", "0.4808245", "0.48060954", "0.48039794", "0.48032227" ]
0.0
-1
BDD style given, when, then given some preconditions (Arrange) when an action occurs (Act) then verify the output (Assert)
@Test void shouldReturnEmptyOptionalIfUserNotFound() { //given String id = "xyz-abc"; //Lambda matcher given(userRepo.findById(argLambda(e -> Objects.equals(id, "xyz-abc")))).willReturn(Optional.empty()); //when Optional<User> optionalUser = userService.getUser(id); //then assertThat(optionalUser).isNotNull(); assertThat(optionalUser.isPresent()).isFalse(); //Argument Captor verify(userRepo).findById(assertArg(e -> assertThat(e).isEqualTo(id))); verify(userRepo, times(1)).findById(assertArg(e -> assertThat(e).isEqualTo(id))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Then(\"Assert the success of Analysis\")\npublic void assanalysis(){\n}", "@Then(\"Assert the success of Access & exfiltrate data within the victim's security zone\")\npublic void assaccessexfiltratedatawithinthevictimssecurityzone(){\n}", "@Test\r\n void dependentAssertions() {\n \t\r\n assertAll(\"properties\",\r\n () -> {\r\n String firstName = person.getFirstName();\r\n assertNotNull(firstName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"first name\",\r\n () -> assertTrue(firstName.startsWith(\"J\")),\r\n () -> assertTrue(firstName.endsWith(\"n\"))\r\n );\r\n },\r\n () -> {\r\n // Grouped assertion, so processed independently\r\n // of results of first name assertions.\r\n String lastName = person.getLastName();\r\n assertNotNull(lastName);\r\n\r\n // Executed only if the previous assertion is valid.\r\n assertAll(\"last name\",\r\n () -> assertTrue(lastName.startsWith(\"D\")),\r\n () -> assertTrue(lastName.endsWith(\"e\"))\r\n );\r\n }\r\n );\r\n }", "@Test\n public void directJudgmentCase() {\n\n int num1 = 2;\n int num2 = 2;\n int expected1 = 4;\n int expected2 = 3;\n\n int actual = AssertionCalculator.add(num1, num2);\n\n //直接斷言該值是否為true\n Assertions.assertTrue(expected1 == actual, \"AssertionCalculator.add(\" + num1 + \",\" + num2 + \") == \" + expected1 + \"is false\");\n //直接斷言該值是否為false\n Assertions.assertFalse(expected2 == actual, \"AssertionCalculator.add(\" + num1 + \",\" + num2 + \") == \" + expected2 + \"is true\");\n\n }", "@Test\n public void testRun_DecisionOtherwise_IN_A1_D_A3_FN() {\n // Final node creation\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Action node 3 (id #5) creation and flow to final node\n final String A3_ID = \"#5\";\n final Node an3 = NodeFactory.createNode(A3_ID, NodeType.ACTION);\n final ExecutableActionMock objAn3 = ExecutableActionMock.create(KEY, A3_ID);\n ((ContextExecutable) an3).setObject(objAn3);\n ((ContextExecutable) an3).setMethod(objAn3.getPutIdInContextMethod());\n ((SingleControlFlowNode) an3).setFlow(fn);\n\n // Action node 2 (id #4) creation and flow to final node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final ExecutableActionMock objAn2 = ExecutableActionMock.create(KEY, A2_ID);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getPutIdInContextMethod());\n ((SingleControlFlowNode) an2).setFlow(fn);\n\n final String A1_KEY = \"a1_key\";\n final String A1_ID = \"#2\";\n\n // Decision node (id #3) creation\n final Node dNode = NodeFactory.createNode(\"#3\", NodeType.DECISION);\n // Flow control from decision to action node 2 (if KEY == #2 goto A2)\n Map<FlowCondition, Node> flows = new HashMap<>(1);\n final FlowCondition fc2a2 = new FlowCondition(A1_KEY, ConditionType.EQ, \"ANYTHING WRONG\");\n flows.put(fc2a2, an2);\n // Otherwise, goto A3\n ((ConditionalControlFlowNode) dNode).setFlows(flows, an3);\n\n // Action node 1 (id #2) creation. Sets the context to be used by the decision\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final ExecutableActionMock objAn1 = ExecutableActionMock.create(A1_KEY, A1_ID);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getPutIdInContextMethod());\n ((SingleControlFlowNode) an1).setFlow(dNode);\n\n // Initial node (id #1) creation and flow to action node 1\n final Node iNode = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) iNode).setFlow(an1);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(iNode);\n\n ENGINE.run(wf);\n\n Assert.assertEquals(A3_ID, wf.getContext().get(KEY));\n }", "public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }", "private void assertAll() {\n\t\t\n\t}", "@Then(\"Assert the success of Attempt sending crafted records to DNS cache\")\npublic void assattemptsendingcraftedrecordstodnscache(){\n}", "public TestCase pass();", "@Test\n public void testRun_DecisionWithEquals_IN_A1_D_A2_FN() {\n // Final node creation\n final Node fn = NodeFactory.createNode(\"#6\", NodeType.FINAL);\n\n // Action node 3 (id #5) creation and flow set to final node\n final String A3_ID = \"#5\";\n final Node an3 = NodeFactory.createNode(A3_ID, NodeType.ACTION);\n final ExecutableActionMock objAn3 = ExecutableActionMock.create(KEY, A3_ID);\n ((ContextExecutable) an3).setObject(objAn3);\n ((ContextExecutable) an3).setMethod(objAn3.getPutIdInContextMethod());\n ((SingleControlFlowNode) an3).setFlow(fn);\n\n // Action node 2 (id #4) creation and flow set to final node\n final String A2_ID = \"#4\";\n final Node an2 = NodeFactory.createNode(A2_ID, NodeType.ACTION);\n final ExecutableActionMock objAn2 = ExecutableActionMock.create(KEY, A2_ID);\n ((ContextExecutable) an2).setObject(objAn2);\n ((ContextExecutable) an2).setMethod(objAn2.getPutIdInContextMethod());\n ((SingleControlFlowNode) an2).setFlow(fn);\n\n final String A1_KEY = \"a1_key\";\n final String A1_ID = \"#2\";\n\n // Decision node (id #3) creation\n final Node dn = NodeFactory.createNode(\"#3\", NodeType.DECISION);\n // Flow control from decision to action node 2 (if KEY == #2 goto A2)\n Map<FlowCondition, Node> flows = new HashMap<>(1);\n final FlowCondition fc2a2 = new FlowCondition(A1_KEY, ConditionType.EQ, A1_ID);\n flows.put(fc2a2, an2);\n // Otherwise, goto A3\n ((ConditionalControlFlowNode) dn).setFlows(flows, an3);\n\n // Action node 1 (id #2) creation. Sets the context to be used by the decision\n final Node an1 = NodeFactory.createNode(A1_ID, NodeType.ACTION);\n final ExecutableActionMock objAn1 = ExecutableActionMock.create(A1_KEY, A1_ID);\n ((ContextExecutable) an1).setObject(objAn1);\n ((ContextExecutable) an1).setMethod(objAn1.getPutIdInContextMethod());\n ((SingleControlFlowNode) an1).setFlow(dn);\n\n // Initial node (id #1) creation and flow set to action node 1\n final Node iNode = NodeFactory.createNode(\"#1\", NodeType.INITIAL);\n ((SingleControlFlowNode) iNode).setFlow(an1);\n\n final Jk4flowWorkflow wf = Jk4flowWorkflow.create(iNode);\n\n ENGINE.run(wf);\n\n Assert.assertEquals(A2_ID, wf.getContext().get(KEY));\n }", "@Test\n public void testcancelwithrefund() //workon\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move to next thing\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n }", "@Test\n public void test1(){\n assertEquals(true, Program.and(true, true));\n }", "@Then(\"Assert the success of Determine application's/system's password policy\")\npublic void assdetermineapplicationssystemspasswordpolicy(){\n}", "@Then(\"^It must say \\\"([^\\\"]*)\\\"$\")\r\n\r\n\tpublic void it_must_say(String arg1) throws Throwable {\n\r\n\t\tif (ExpectedTitle.equals(ActualTitle)){\r\n\r\n\t\t\tSystem.out.println(\"Test Passed\");\r\n\r\n\t\t}else\r\n\r\n\t\t\tSystem.out.println(\"Test Failed\");\t\r\n\t\t\r\n\t\t\t\r\n\t\tdriver.quit();\r\n\t\t\r\n\r\n\t\t}", "protected abstract void assertExpectations(Set<Expectation> expectations);", "SimulationInspector expect(Consumer<GameState> expectation);", "@Then(\"^To make it successful$\")\r\n\tpublic void to_make_it_successful() {\n\t\tString expectedtitle = \"Real Estate\";\r\n\t\tString actualtitle = driver.getTitle();\r\n\t\tAssert.assertEquals(expectedtitle, actualtitle);\r\n\t System.out.println(\"Done\");\r\n\t driver.close();\r\n\t\t\r\n\t}", "@Test\n void _correctThenCaseTest() {\n\n actionApply();\n\n for (ReceiverPair receiverPair : dependedReceiverPairs) {\n for (AssingablePair assingablePair : incompatibleAssignablePairs) {\n verify(model).arithm(receiverPair.getVariableDependentReceiver(), \"!=\", assingablePair.getIndexdependentAssignable());\n }\n }\n }", "@Given(\"prepare to Analysis\")\npublic void preanalysis(){\n}", "@Then(\"Assert the success of Attempt well-known or guessable resource locations\")\npublic void assattemptwellknownorguessableresourcelocations(){\n}", "@Test(enabled = false)\n\tpublic void HardAssert(){\n\t\t\t\t\n\t\tSystem.out.println(\"Hard Asset Step 1\");\n\t\tAssert.assertEquals(false, false);\n\t\tSystem.out.println(\"Hard Asset Step 2\");\n\t\tAssert.assertEquals(false, true);\n\t\tSystem.out.println(\"Hard Asset Step 3\");\n\t}", "@Test\n public void holdTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String firstPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //init and authorize second payment, but there is 700 cents of 1000 withhold - ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = initPayment(inAccountId, outAccountId, \"700\");\n\n final String secondPaymentId = paymentDto.getId();\n\n paymentDto = authorizePayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n\n //confirm first payment - OK\n\n paymentDto = confirmPayment(firstPaymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n\n //confirm second payment, which was filed on authorization - still got ERROR: WITHDRAW_NO_FUNDS\n\n paymentDto = confirmPayment(secondPaymentId, 200);\n\n assertEquals(\"Payment status ERROR\", PaymentStatus.ERROR, paymentDto.getStatus());\n\n assertEquals(\"Error reason WITHDRAW_NO_FUNDS\", new Integer(ErrorCode.WITHDRAW_NO_FUNDS.getCode()), paymentDto.getErrorReason());\n\n }", "public void testAct() {\n\t\tSystem.out.println(\"RothErevAgentTest.testAct()\");\n\t\tSystem.out.print(\"\tInitial: \");\n\t\tRELearner learner = agent.getLearner();\n\t\tREPolicy policy = learner.getPolicy();\n\t\tdouble[] probs = policy.getProbabilities();\n\t\tfor (int j = 0; j < probs.length; j++)\n\t\t\tSystem.out.print(probs[j] + \", \");\n\t\tSystem.out.println();\n\n\t\tSimpleAction<Integer> nextAction;\n\t\tint index;\n\n\t\tSimpleAction<Integer> benchmark_nextAction;\n\t\tint benchmark_index;\n\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\tnextAction = agent.chooseAction();\n\t\t\tindex = nextAction.getAct();\n\t\t\tagent.receiveFeedback(rewards[index]);\n\n\t\t\tbenchmark_nextAction = benchmark_learner.chooseAction();\n\t\t\tbenchmark_index = benchmark_nextAction.getAct();\n\t\t\tbenchmark_learner.update(rewards[benchmark_index]);\n\n\t\t\tassertEquals(index, benchmark_index);\n\t\t\tassertEquals(agent.getLearner().getUpdateCount(), i + 1);\n\n\t\t\tprobs = agent.getLearner().getPolicy().getProbabilities();\n\t\t\tSystem.out.print(\"\t\" + index + \"\t\");\n\t\t\tfor (int j = 0; j < probs.length; j++)\n\t\t\t\tSystem.out.print(probs[j] + \", \");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "@Test\n\tpublic void testCase1()\n\t{\n\t\tint numberOfCases=3;\n\t\t\n\t\t//checking number of case is positive or not\n\t\tboolean valid=BillEstimation.numberOfCaseValidation(numberOfCases);\n\t\tassertTrue(valid);\n\t}", "@Then(\"Assert the success of Achieve arbitrary command execution through SQL Injection with the MSSQL_xp_cmdshell directive\")\npublic void assachievearbitrarycommandexecutionthroughsqlinjectionwiththemssqlxpcmdshelldirective(){\n}", "public interface Action {\n\n /**\n * The executeAction method takes in actionInfo and runs the action code\n * @param actionInfo all information sent by the test file to the action\n */\n public void executeAction( String actionInfo );\n\n}", "@Test\n public void verifyParametersInput() {\n // act\n book.setISBN(isbn);\n book.setAuthors(array);\n book.setPublisher(publisher);\n // verify\n verify(book).setISBN(isbn);\n verify(book).setAuthors(array);\n verify(book).setPublisher(publisher);\n }", "@Test\n\tpublic void testVerify() {\n\t\t\n\t\tSystem.out.println(\"Before Verfiy\");\n\t\tSoftAssert assert1 = new SoftAssert();\n\t\t\n\t\tassert1.fail();\n\t\t\n\t\tSystem.out.println(\"After Assertion\");\n\t}", "@Test\n void _ifThenUsageTest(@Mock Constraint ifConstraint, @Mock Constraint thenConstraint) {\n when(model.arithm(Mockito.any(IntVar.class), Mockito.eq(\"=\"), Mockito.anyInt())).thenReturn(ifConstraint);\n when(model.arithm(Mockito.any(IntVar.class), Mockito.eq(\"!=\"), Mockito.anyInt())).thenReturn(thenConstraint);\n\n actionApply();\n\n verify(model, times(ASSINGABLE_PAIR * DEPENDED_RECEIVER_PAIRS)).ifThen(ifConstraint, thenConstraint);\n }", "public static void enterFixtureOutcome()\n\t{\n\t}", "protected abstract void assertFact(Object fact);", "public static void testbed() {\n int s[] = {5, 1, 0, 4, 2, 3};\n int y = length_easy(s, 3);\n\n System.out.println(\"length_easy y = \" + y);\n u.myassert(y == 4);\n int b[] = {5, 1, 0, 4, 2, 3};\n int x = length(s, 3);\n System.out.println(\"length x = \" + x);\n u.myassert(x == y);\n for (int i = 0; i < s.length; ++i) {\n u.myassert(s[i] == b[i]);\n }\n System.out.println(\"Assert passed\");\n }", "TestClassExecutionResult assertTestsExecuted(TestCase... testCases);", "int verify(Requirement o);", "@Test\n public void shouldMakeCoffeeWhenShotsAreNotAvailable(){\n given(supplyService.isCoffeeShotAvailable(EXPRESSO)).willReturn(false);\n //When coffee is order\n Boolean orderStatus=kitchenService.makeCoffee(EXPRESSO);\n //Then Kitchen should make coffee\n assertThat(orderStatus, is(false));\n\n }", "@Test(priority = 2)\n public void testVerifyQuestionOne() {\n\t\tassertTrue(true);\n }", "public List<AssertionFailure> go() throws IOException,\r\n RecognitionException, CheckerExpception, InterruptedException,\r\n SMTSolverTimeoutException, UnknownResultException {\n Program p = SimpleCParserUtil.createAST(inputFile);\r\n\r\n // Add blocks to make things simpler\r\n // E.g. if(c) stmt; becomes if(c) {stmt;} else {}\r\n p = (Program) new MakeBlockVisitor().visit(p);\r\n\r\n // Do basic checks\r\n // E.g. Variables declared before use\r\n // no duplicate local variables\r\n Checker checker = new Checker();\r\n boolean success = checker.check(p);\r\n if (!success) {\r\n throw new CheckerExpception(checker.getCheckerError());\r\n }\r\n\r\n // Checks whether abstract loop abstraction is turned on\r\n if (clArgs.abstractLoops) {\r\n p = (Program) new LoopAbstractionVisitor().visit(p);\r\n } else {\r\n p = (Program) new LoopUnwinderVisitor(clArgs.unwindingAssertions,\r\n clArgs.unwindDepth).visit(p);\r\n }\r\n\r\n // Carries out predication on the program\r\n p = (Program) new PredicationVisitor().visit(p);\r\n\r\n // Carries out ssa renaming on the program\r\n p = (Program) new SSAVisitor().visit(p);\r\n\r\n // Output the program as text after being transformed (for debugging)\r\n // Comment the code below to hide the output\r\n String programText = new PrinterVisitor().visit(p);\r\n System.out.println(programText);\r\n\r\n // Collect the constraint expressions and variable names\r\n CollectConstraintsVisitor collectConstraintsVisitor = new CollectConstraintsVisitor();\r\n collectConstraintsVisitor.visit(p);\r\n\r\n // Stores the assertion failures\r\n List<AssertionFailure> assertionFailures = new ArrayList<AssertionFailure>();\r\n\r\n // Stop here if there are no assertions (properties) to check\r\n if (collectConstraintsVisitor.propertyExprs.size() == 0) {\r\n System.out.println(\"No asserts! Stopping.\");\r\n return assertionFailures;\r\n }\r\n\r\n // Convert constraints to SMTLIB string\r\n SMTLIBConverter converter = new SMTLIBConverter(collectConstraintsVisitor.variableNames,\r\n collectConstraintsVisitor.transitionExprs, collectConstraintsVisitor.propertyExprs);\r\n String smtQuery = converter.getQuery();\r\n\r\n // Submit query to SMT solver\r\n SMTQuery query = new SMTQuery(smtQuery, clArgs.timeout * 1000);\r\n String queryResult = query.go();\r\n if (queryResult == null) {\r\n throw new SMTSolverTimeoutException(\"Timeout!\");\r\n }\r\n System.out.println(\"--SMT COMPLETE--\");\r\n\r\n // Report the assertions that can be violated\r\n handleAssertionFailures(assertionFailures, collectConstraintsVisitor, queryResult);\r\n\r\n return assertionFailures;\r\n }", "@Given(\"prepare to Access & exfiltrate data within the victim's security zone\")\npublic void preaccessexfiltratedatawithinthevictimssecurityzone(){\n}", "@Test\n\tpublic void AccountCredit_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\t//\n\t\tmiCuenta.setBalance(this.arg2); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\t//\n\t\tmiCuenta.debit(this.arg4);\n\t\tint Debit = miCuenta.getBalance(); \t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg5, is(Debit));\n\t\t\n\t}", "@Test(groups = { \"unit\" })\r\n public void testCase() {\r\n getPlayer().teleportToRoom(VAULT_ROOM);\r\n getPlayerA().teleportToRoom(VAULT_ROOM);\r\n clearAllOutput();\r\n\r\n if (!getCommand().execute(getPlayer(), \"de asd\")) {\r\n \t Assert.fail();\r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKTMC.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\");\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 100\")) {\r\n \t Assert.fail(); \t \r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKNHA.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n \r\n if (getCommand().execute(getPlayer(), \"de 100 gold\")) {\r\n \t Assert.fail(); \t \t \r\n }\r\n \r\n getPlayer().setGold(100);\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 101\")) {\r\n \t Assert.fail(); \t \t \t \r\n }\r\n TestUtil.assertOutput(getPlayerOutput(), TaMessageManager.BNKNHA.getMessage());\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n \r\n if (getPlayer().getVaultBalance() != 0) {\r\n Assert.fail();\r\n }\r\n\r\n if (getPlayer().getGold() != 100) {\r\n Assert.fail();\r\n }\r\n \r\n if (!getCommand().execute(getPlayer(), \"de 100\")) {\r\n \t Assert.fail(); \t \t \t \r\n }\r\n String depositString = MessageFormat.format(TaMessageManager.BNKDEP.getMessage(), \"100\");\r\n TestUtil.assertOutput(getPlayerOutput(), depositString);\r\n TestUtil.assertOutput(getPlayerAOutput(), \"\"); \r\n\r\n if (getPlayer().getVaultBalance() != 100) {\r\n Assert.fail();\r\n }\r\n\r\n if (getPlayer().getGold() != 0) {\r\n Assert.fail();\r\n }\r\n \r\n // Test the command in an invalid room.\r\n getPlayer().teleportToRoom(NORTH_PLAZA);\r\n getPlayerA().teleportToRoom(NORTH_PLAZA);\r\n clearAllOutput();\r\n\r\n if (getCommand().execute(getPlayer(), \"ba\")) {\r\n Assert.fail();\r\n }\r\n \r\n }", "@Test (priority = 4)\n\t@Then(\"^End of Scenario$\")\n\tpublic void end_of_Scenario() throws Throwable {\n\t \n\t}", "private void ThenPaymentIsProcessed() throws Exception {\n assert true;\n }", "@Test(priority = 3)\n public void testVerifyQuestionTwo() {\n\t\tassertTrue(true);\n }", "@Test\n void mondayAssertions(){\n assumingThat(DayOfWeek.MONDAY.equals(LocalDate.now().getDayOfWeek()),\n () -> {\n assertEquals(4, 4);\n assertEquals(1, 1);\n });\n\n //assertions executed always\n assertEquals(5, 5);\n }", "@Test\n public void testExecuteStep() {\n assertFalse(mgr.executeStep());\n\n // add a step to the queue\n mgr.getSteps().add(stepa);\n\n // step returns false\n when(stepa.start(anyLong())).thenReturn(false);\n assertFalse(mgr.executeStep());\n\n // step returns true\n when(stepa.start(anyLong())).thenReturn(true);\n assertTrue(mgr.executeStep());\n }", "private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }", "@Test\n public void testIsFalling() {\n // Setup\n\n // Run the test\n modelUnderTest.isFalling();\n\n // Verify the results\n }", "@Override\r\n public void onAssertSuccess(IAssert<?> assertCommand) {\r\n BaseTest.print(\"Step \" + (assertMessages.size()+1) + \": PASSED - \" + assertCommand.getMessage());\r\n }", "@Test\n\tpublic void moreComplexAssertion() {\n\t\tOrder order1 = null, order2 = null, order3 = null, order4 = null;\n\t\t// when\n\t\tList<Order> orders = null;// orderSearchService.getOrders(trader,\n\t\t\t\t\t\t\t\t\t// tradingAcct, goldIsinCode);\n\t\t// then\n\t\t// Using Basic JUnit\n\t\tassertEquals(orders.size(), 2);\n\t\tIterator<Order> itr = orders.iterator();\n\t\tassertEquals(itr.next(), order3);\n\t\tassertEquals(itr.next(), order4);\n\t\t// Using Hamcrest\n\t\tassertThat(orders, hasItems(order3, order4));\n\t\tassertThat(orders.size(), is(2));\n\t\t// Using FEST Assertions\n\t\tassertThat(orders).containsOnly(order3, order4);\n\t\t// Using FEST Assertions (chained assertions)\n\t\tassertThat(orders).containsOnly(order3, order4).containsSequence(order3, order4);\n\t}", "public void testActionPerformed() \n {\n System.out.println(\"actionPerformed\");\n ActionEvent e = new ActionEvent(\"\", 0, \"New Game\");\n instance.actionPerformed(e);\n verify(tableModel).newGame();\n e = new ActionEvent(\"\", 0, \"Board Size-Small\");\n instance.actionPerformed(e);\n verify(tableModel).setSize(5);\n e = new ActionEvent(\"\", 0, \"Board Size-Medium\");\n instance.actionPerformed(e);\n verify(tableModel).setSize(9);\n e = new ActionEvent(\"\", 0, \"Board Size-Large\");\n instance.actionPerformed(e);\n verify(tableModel).setSize(11);\n e = new ActionEvent(\"\", 0, \"Skin-Default\");\n instance.actionPerformed(e);\n verify(model).changeTheme(\"Default\");\n e = new ActionEvent(\"\", 0, \"Skin-Classic\");\n instance.actionPerformed(e);\n verify(model).changeTheme(\"Classic\");\n e = new ActionEvent(\"\", 0, \"Skin-Night\");\n instance.actionPerformed(e);\n verify(model).changeTheme(\"Night\");\n when(model.getTableModel()).thenReturn(hurkleModel);\n e = new ActionEvent(\"\", 0, \"Cheat-Cheat\");\n instance.actionPerformed(e);\n assertEquals(\"\", hurkleModel.validateMove(1, 1, true));\n }", "TestClassExecutionResult assertTestPassed(String name, String displayName);", "protected void assertCoverage(final String expectedCoverage) {\n\t\t\n\t\tfinal List<Coverage> expected = Arrays.asList(expectedCoverage.split(\"\\n\")).stream()\n\t\t\t\t.map(o -> new Coverage(o.split(\":\"))).collect(Collectors.toList());\n\t\t\n\t\t// Step A:\n\t\t// Validation of coverage results is split into two steps. Step A checks if all\n\t\t// uncovered (zero) lines are found, step B checks if non-zero lines exist.\t\t\n\t\tfinal Set<Coverage> expectedZero = expected.stream().filter(Coverage::isZero)\n\t\t\t\t.filter(Coverage::isCoverage).collect(Collectors.toSet());\n\t\tfinal Set<Coverage> actualZeroCoverage = recorder.getZeroCoverage().stream().collect(Collectors.toSet());\n\t\tassertEquals(expectedZero, actualZeroCoverage);\n\t\t\n\t\t// Step B1 (coverage):\n\t\tfinal List<Coverage> actualNonZeroCoverage = recorder.getNonZeroCoverage();\n\t\tfinal List<Coverage> expectedNonZeroCoverage = expected.stream().filter(Coverage::isCoverage).\n\t\t\t\tfilter(c -> !c.isCost()).collect(Collectors.toList());\n\t\texpectedNonZeroCoverage.removeAll(actualZeroCoverage);\n\t\tfor (int i = 0; i < actualNonZeroCoverage.size(); i++) {\n\t\t\tfinal Coverage a = actualNonZeroCoverage.get(i);\n\t\t\tfinal Coverage e = expectedNonZeroCoverage.get(i);\n\t\t\tassertEquals(e, a);\n\t\t}\n\t\tassertTrue(expectedNonZeroCoverage.size() == actualNonZeroCoverage.size());\n\t\t\n\t\t// Step B2 (coverage with cost):\n\t\tfinal List<Coverage> actualCostCoverage = recorder.getCostCoverage();\n\t\tfinal List<Coverage> expectedCostCoverage = expected.stream().filter(Coverage::isCoverage)\n\t\t\t\t.filter(Coverage::isCost).collect(Collectors.toList());\n\t\tfor (int i = 0; i < actualCostCoverage.size(); i++) {\n\t\t\tfinal Coverage a = actualCostCoverage.get(i);\n\t\t\tfinal Coverage e = expectedCostCoverage.get(i);\n\t\t\tassertEquals(e, a);\n\t\t}\n\t\tassertTrue(expectedCostCoverage.size() == actualCostCoverage.size());\n\t\t\n\t\t// Step C (actions):\n\t\tfinal List<Coverage> actualActions = recorder.getActionCoverage();\n\t\tfinal List<Coverage> expectedActions = expected.stream().filter(Coverage::isAction).collect(Collectors.toList());\n\t\tfor (int i = 0; i < actualActions.size(); i++) {\n\t\t\tfinal Coverage a = actualActions.get(i);\n\t\t\tfinal Coverage e = expectedActions.get(i);\n\t\t\tassertEquals(e, a);\n\t\t}\n\t\tassertTrue(expectedActions.size() == actualActions.size());\n\t}", "@Then(\"Admin homepage should be loaded successfully\")\r\npublic void admin_homepage_should_be_loaded_successfully() {\n\r\n\tboolean isloginsuccess=uAdminlogin.isHeaderFound();\r\n\tAssert.assertEquals(isloginsuccess, true);\r\n\t\r\n}", "@When(\"Try to Analysis\")\npublic void tryanalysis(){\n}", "public void act() \n {\n if (canGiveTestimony()) {\n giveTestimony();\n }\n }", "private void verifyEvents(boolean titleEvent, boolean nameEvent, boolean descriptionEvent) {\n if (titleEvent) {\n Assert.assertEquals(\"Missing title change event\", titleEvent, titleChangeEvent);\n }\n if (nameEvent) {\n Assert.assertEquals(\"Missing name change event\", nameEvent, nameChangeEvent);\n }\n if (descriptionEvent) {\n Assert.assertEquals(\"Missing content description event\", descriptionEvent, contentChangeEvent);\n }\n }", "@Test\n public void shouldMakeCoffeeWhenShotsAreAvailable(){\n given(supplyService.isCoffeeShotAvailable(EXPRESSO)).willReturn(true);\n //When coffee is order\n Boolean orderStatus=kitchenService.makeCoffee(EXPRESSO);\n //Then Kitchen should make coffee\n assertThat(orderStatus, is(true));\n verify(supplyService,times(1)).isCoffeeShotAvailable(EXPRESSO);\n\n }", "@Then(\"^a notification should be shown$\")\n public void a_notification_should_be_shown() throws Throwable {\n Assert.assertTrue(result);\n }", "@Test\n public void sanityCheck() {\n assertThat(true, is(true));\n }", "@Then(\"I will check for my rewards\")\r\n\tpublic void i_will_check_for_my_rewards() {\n\t\tSystem.out.println(\"code for my rewards\");\r\n\t}", "@Test\n public void isActionLegal()\n {\n // Setup.\n final CheckersGameInjector injector = new CheckersGameInjector();\n final List<Agent> agents = createAgents(injector);\n final Agent agentWhite = agents.get(1);\n final CheckersEnvironment environment = createEnvironment(injector, agents);\n final Adjudicator adjudicator = injector.injectAdjudicator();\n\n // Agent white can move his token to an adjacent empty space.\n {\n final CheckersMoveAction action = new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P13);\n assertTrue(adjudicator.isActionLegal(action));\n }\n\n // Agent white cannot move backwards.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P05)));\n\n // Agent white cannot move to an occupied space.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P04,\n CheckersPosition.P08)));\n\n // Agent white cannot move a red token.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P21,\n CheckersPosition.P17)));\n\n // Agent white cannot move too far.\n assertFalse(adjudicator.isActionLegal(new CheckersMoveAction(environment, agentWhite, CheckersPosition.P09,\n CheckersPosition.P18)));\n }", "public void assertEquals(boolean actual, boolean expected,String action, String message){\r\n\r\n\t\tAssert.assertEquals(actual,expected,\"Expected value=\"+expected+\" but Found value=\"+actual);\r\n\r\n\r\n\t}", "@Test\n\tpublic void testCanEnter(){\n\t}", "public TestCase afterThis( Procedure callafter );", "@Test\n public void respondApproved() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var firstReject = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * When\n */\n Result<DatasetGrant> approve = firstReject.approve(approvedBy, approvedAt, Markdown.lorem());\n Result<DatasetGrant> reject = firstReject.reject(UserId.random(), approvedAt, Markdown.lorem());\n\n /*\n * Then\n */\n assertThat(reject.isFailure())\n .as(\"The 2nd call as reject cannot be successful\")\n .isTrue();\n\n assertThat(approve)\n .as(\"The 2nd call as approve is also successful with the same result\")\n .satisfies(r -> {\n var secondReject = r.map(g -> g, g -> null);\n assertThat(r.isSuccess()).isTrue();\n assertThat(secondReject).isEqualTo(firstReject);\n });\n }", "@Test(priority = 4)\n public void testVerifyQuestionThree() {\n\t\tassertTrue(true);\n }", "@Given(\"I will provide the data\")\r\n\tpublic void i_will_provide_the_data() {\n\t\tSystem.out.println(\"code for data\");\r\n\t}", "@Test\n public void hailStoneOne(){\n List<Integer> expected = new ArrayList<>();\n expected.add(1);\n assertThat(ComputeStuff.hailstoneSequence(1),is(expected));\n }", "public void test() {\n\tassertTrue(true);\n\t}", "@Test\n public void thisIsAStatment() {\n //This is a statement\n assertEquals(4, 2 + 2);\n }", "@Test\n public void TestCase1() {\n VariableMap variables = Variables\n .putValue(\"Role\", \"Executive\")\n .putValue(\"BusinessProcess\", \"PTO Request\")\n .putValue(\"DelegationDateRange\", \"2019-04-31T00:00:00\");\n\n DmnDecisionTableResult result = dmnEngine.evaluateDecisionTable(decision, variables);\n\n // Need to establish rule ordering\n assertThat(result.collectEntries(\"result\"))\n .hasSize(2)\n .contains(\"John M\")\n .contains(\"Kerry\");\n }", "@Then(\"^registration should be successful$\")\npublic void registration_should_be_successful() throws Throwable {\n\tSystem.out.println(\"Successfuly completed the regitration process\");\n}", "@Then(\"^I verify the \\\"([^\\\"]*)\\\" in step$\")\r\n\tpublic void i_verify_the_success_in_step(String arg3) throws Throwable {\n\t\tSystem.out.println(arg3);\r\n\t \r\n\t}", "@Test\n public void testExecutdAsPlanned() {\n assertFalse(action.executedAsPlanned());\n // TODO add assertTrue after execute\n }", "@Test\n public void testIndependentPostTest() {\n // GIVEN\n Owner owner = new Owner(\"Bela\", \"Bp, Parlament\", dog, cat);\n\n // WHEN - THEN\n assertTrue(owner.hasDog());\n }", "@Test\n\tpublic void getPractice() {\n\t\t//1.Step: Set Endpoint by using pathParam() or queryParam()\n\t\tspec04.pathParams(\"employee\", \"employee\",\n\t\t\t\t \"id\", 3);\n\t\t\n\t\t//2.Step: Store expected data by using Pojo\n\t\tData data = new Data(3, \"Ashton Cox\", 86000, 66, \"\");\n\t\tPojoPractice03 expectedData = new PojoPractice03(\"success\", data, \"Successfully! Record has been fetched.\");\n\t\t\n\t\t//3.Step: Send GET Request to the Endpoint\n\t\tResponse response = given().contentType(ContentType.JSON).spec(spec04).when().get(\"/{employee}/{id}\");\n\t\tresponse.prettyPrint();\n\t\t\n\t\t//4.Step Hard Assertion by using body()\n\t\tresponse.\n\t\t then().\n\t\t assertThat().\n\t\t statusCode(200).\n\t\t contentType(ContentType.JSON).\n\t\t body(\"data.employee_name\", Matchers.equalTo(data.getEmployeeName()),\n\t\t \t \"data.employee_salary\", Matchers.equalTo(data.getEmployeeSalary()),\n\t\t \t \"data.employee_age\", Matchers.equalTo(data.getEmployeeAge()),\n\t\t \t \"data.profile_image\", Matchers.equalTo(data.getProfileImage()),\n\t\t \t \"status\", Matchers.equalTo(expectedData.getStatus()),\n\t\t \t \"message\", Matchers.equalTo(expectedData.getMessage()));\n\t\t\n\t\t//5.Step Hard Assertion by using assertEquals(), assertTrue(), assertFalse()\n\t\tJsonPath json = response.jsonPath();\n\t\tassertEquals(data.getEmployeeName(), json.getString(\"data.employee_name\"));\n\t\tassertEquals(data.getEmployeeSalary(),json.get(\"data.employee_salary\"));\n\t\tassertEquals(data.getEmployeeAge(), json.get(\"data.employee_age\"));\n\t\tassertEquals(data.getProfileImage(), json.getString(\"data.profile_image\"));\n\t\tassertEquals(expectedData.getStatus(), json.getString(\"status\"));\n\t\tassertEquals(expectedData.getMessage(), json.getString(\"message\"));\n\t\t\n\t\t//6. Step: Soft Assertion\n\t\tSoftAssert softAssert = new SoftAssert();\n\t\t\n\t\tsoftAssert.assertEquals(json.getString(\"data.employee_name\"), data.getEmployeeName());\n\t\tsoftAssert.assertEquals(json.get(\"data.employee_salary\"), data.getEmployeeSalary());\n\t\tsoftAssert.assertEquals(json.get(\"data.employee_age\"),data.getEmployeeAge());\n\t\tsoftAssert.assertEquals(json.getString(\"data.profile_image\"),data.getProfileImage());\n\t\tsoftAssert.assertEquals(json.getString(\"status\"),expectedData.getStatus());\n\t\tsoftAssert.assertEquals(json.getString(\"message\"),expectedData.getMessage());\n\t\n\t\tsoftAssert.assertAll();\n\t\t\n\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Then(\"^I should be able to see the Payment button$\")\n\tpublic void i_should_be_able_to_see_the_Payment_button() throws Throwable {\n\t\tbc.checkPayment();\n\t}", "@Test\n\tpublic void methodUnderTest_GivenInputsABC_AndSystemStateDEF_ThenExpectXYZ2() {\n\t}", "@Then(\"^verify order is placed successfully in Order History$\")\r\n\tpublic void verifyOrderHistory() throws Exception {\n\t assertTrue(new ProductCheckout(driver).isOrderPlaced());\r\n\t}", "@Test\r\n\tpublic void test() {\r\n\t\tmodel1.getActualTurn().setHasAttacked(true);\r\n\t\tassertEquals(attack2.isPossible(model1) , false);\r\n\t\t\r\n\t\t/* verifica che se gli alieni vincono il gioco viene chiuso */\r\n\t\taliensWin2.perform(model1);\r\n\t\tassertEquals(model1.getGameState() , GameState.CLOSING);\r\n\t\tassertEquals(model1.getActualTurn().getCurrentPlayer().getAvatar().getIsWinner() , EndState.WINNER);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn2);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento del metodo isPossible dell'azione di attacco */\r\n\t\tassertEquals(attack1.isPossible(model1) , false);\r\n\t\tmodel1.getActualTurn().setHasMoved(true);\r\n\t\tmodel1.getActualTurn().setHasDraw(true);\r\n\t\tassertEquals(attack1.isPossible(model1) , false);\r\n\t\tmodel1.getActualTurn().setHasDraw(false);\r\n\t\tmodel1.setGameState(GameState.ACCEPTING);\r\n\t\tassertEquals(attack1.isPossible(model1) , false);\r\n\t\tmodel1.setGameState(GameState.RUNNING);\r\n\t\tassertEquals(attack1.isPossible(model1) , true);\r\n\t\tmodel1.getGamePlayers().get(0).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(1).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(2).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(3).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(4).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(5).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tmodel1.getGamePlayers().get(6).getAvatar().setIsAlive(LifeState.DEAD);\r\n\t\tevtAttacked1 = attack1.perform(model1);\r\n\t\tassertEquals(((EventAttacked)evtAttacked1.get(1)).getAreThereOtherHumans() , false);\r\n\t\tmodel1.getGamePlayers().get(1).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tmodel1.getGamePlayers().get(0).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tmodel1.getGamePlayers().get(2).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tmodel1.getGamePlayers().get(3).getAvatar().setIsAlive(LifeState.ALIVE);\r\n\t\tevtAttacked1 = attack1.perform(model1);\t\r\n\t\tassertEquals(((EventSufferAttack)evtAttacked1.get(0)).getKilled() , killedPlayer);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn3);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento del metodo isPossible dell'azione di attacco */\r\n\t\tmodel1.setGameState(GameState.ACCEPTING);\r\n\t\t((Human)model1.getActualTurn().getCurrentPlayer().getAvatar()).setCanAttack(true);\r\n\t\tassertEquals(attack3.isPossible(model1) , false);\r\n\t\tmodel1.setGameState(GameState.RUNNING);\r\n\t\t((Human)model1.getActualTurn().getCurrentPlayer().getAvatar()).setCanAttack(false);\r\n\t\tassertEquals(attack3.isPossible(model1) , false);\r\n\t\t((Human)model1.getActualTurn().getCurrentPlayer().getAvatar()).setCanAttack(true);\r\n\t\tmodel1.getActualTurn().setHasAttacked(true);\r\n\t\tassertEquals(attack3.isPossible(model1) , false);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn4);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento della perform dell'azione di attacco */\r\n\t\tsector1 = model1.getGameMap().searchSectorByName(\"Hatch\");\r\n\t\tmodel1.getActualTurn().getCurrentPlayer().getAvatar().setCurrentSector(sector1);\r\n\t\tevtAttacked2 = humanWin2.perform(model1);\r\n\t\tassertEquals(((EventNotifyHumanWin)evtAttacked2.get(0)).getGenerator() , player4);\r\n\t\tmodel1.getGamePlayers().get(3).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(2).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(0).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(1).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tmodel1.getGamePlayers().get(4).getAvatar().setIsWinner(EndState.LOOSER);\r\n\t\tassertEquals(humanWin2.perform(model1).size() , 3);\r\n\t\t\r\n\t\tmodel1.setActualTurn(turn7);\r\n\t\t\r\n\t\t/* verifica il corrretto funzionamento dell'utilizzo della carta difesa */\r\n\t\tmodel1.getActualTurn().getCurrentPlayer().getAvatar().addCard(card);\r\n\t\tdefense = new Defense(evtDefense);\r\n\t\tevtAttacked2 = defense.perform(model1);\r\n\t\tassertTrue(!model1.getActualTurn().getCurrentPlayer().getAvatar().getMyCards().contains(card));\r\n\t\tassertTrue(evtAttacked2.get(0) instanceof EventRejectCardAlien);\r\n\t\tassertTrue(evtAttacked2.get(1) instanceof EventCardUsed);\r\n\t\t\r\n\t}", "@Test\n public void should_return_() {\n }", "@org.junit.Test\n public void testEstParfaitOK() {\n //given\n long n = 6;\n Parfait instance = new Parfait();\n\n //when\n boolean result = instance.estParfait(n);\n\n //then\n Assert.assertTrue(\"OK\", result);\n }", "@Test\n\tpublic void Account_test() { Using HamCrest \t\t\n\t\t// Exercise code to run and test\n\t\t//\n\t\tmiCuenta.setHolder(this.arg1);\n\t\tString resHolder = miCuenta.getHolder(); \n\t\t//\n\t\tmiCuenta.setBalance(this.arg2);\n\t\tint resBalance = miCuenta.getBalance(); \n\t\t//\n\t\tmiCuenta.setZone(this.arg3);\n\t\tint resZone = miCuenta.getZone(); \n\t\t\t\t\t\t\n\t\t// Verify\n\t\tassertThat(this.arg1, is(resHolder));\n\t\tassertThat(this.arg2, is(resBalance)); \n\t\tassertThat(this.arg3, is(resZone)); \n\t}", "@Test\n\tpublic void advanceAssemblyLineTest(){\n\t\tcmcSystem.logInUser(1);\n\t\tOrder order1 = makeOrder(new ModelC());\n\t\tOrder order2 = makeOrder(new ModelX());\n\t\tOrder order3 = makeOrder(new ModelC());\n\t\tschedule.placeOrder(order1);\n\t\tschedule.placeOrder(order2);\n\t\tschedule.placeOrder(order3);\n\t\tassertTrue(assemblyLine.getWorkstations()[0].isReady());\n\t\tassemblyLine.advance(order1);\n\t\tassertFalse(assemblyLine.isReadyToAdvance());\n\t\tassertFalse(assemblyLine.getWorkstations()[0].isReady());\n\t}", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "@Test\n public void testAMWorkflow() throws Throwable {\n describe(\"Create a committer with a null output path & use as an AM\");\n JobData jobData = startJob(true);\n JobContext jContext = jobData.jContext;\n TaskAttemptContext tContext = jobData.tContext;\n\n TaskAttemptContext newAttempt = new TaskAttemptContextImpl(\n jContext.getConfiguration(),\n taskAttempt0);\n Configuration conf = jContext.getConfiguration();\n\n // bind\n TextOutputForTests.bind(conf);\n\n OutputFormat<?, ?> outputFormat\n = ReflectionUtils.newInstance(newAttempt.getOutputFormatClass(), conf);\n Path outputPath = FileOutputFormat.getOutputPath(newAttempt);\n Assertions.assertThat(outputPath)\n .as(\"null output path in new task attempt\")\n .isNotNull();\n\n ManifestCommitter committer2 = (ManifestCommitter)\n outputFormat.getOutputCommitter(newAttempt);\n committer2.abortTask(tContext);\n\n }", "@Test\n public void testCanIrrigateWhenOneCloseTileIsRiver(){\n \tAgendaEventListener ael = mock( AgendaEventListener.class );\n \tksession.addEventListener( ael );\n \t\n \t// prepare test data\n \t\n \tPlayerDTO player = getPlayer(11L, \"honza\");\n \tTileDTO tile = getTile(3L, 3L,3L,\"forest\", new HashSet<String>());\n\t\ttile.setDefenseBonus(50);\n\t\t\n\t\tUnitDTO unit = getUnit(\"phalanx\",tile.getId());\n\t\tunit.setOwner(player.getId());\n\t\tunit.getActions().add(\"irrigation\");\n\t\t// tile with river\n\t\tTileDTO tile2 = getTile(4L,3L,4L, \"rivers\", new HashSet<String>());\n\t\ttile2.setDefenseBonus(0);\n\t\t// cost of improvement irrigation is two turns, so action will last 2 turns\n\t\tTileImprovementDTO irrigation = getTileImp(\"irrigation\",2);\n\t\t\n\t\t// insert facts\n\t\tgame.insert(tile);\n\t\tgame.insert(tile2);\n\t\tgame.insert(irrigation);\n\t\tgame.insert(getUnitType(\"phalanx\"));\n\t\t\n\t\tgame.insert(player);\n\t\t\n\t\tgame.insert(unit);\n\t\t\n\t\t// this starts the process of Build Improvement\n\t\tgame.unitBeginAction(unit.getId(), \"irrigation\");\n\t\t\n\t\t// simulate the two turns to complete action\n\t\t// new turn\n\t\tksession.getEntryPoint(\"GameControlStream\").insert(new TurnEvent());\n\t\tksession.fireAllRules();\n\t\t\n\t\t// new turn\n\t\tksession.getEntryPoint(\"GameControlStream\").insert(new TurnEvent());\n\t\tksession.fireAllRules();\n\t\t\n\t\t// get fired rules\n\t\tArgumentCaptor<AfterMatchFiredEvent> aafe = ArgumentCaptor.forClass( AfterMatchFiredEvent.class );\n\t\tverify( ael ,atLeastOnce()).afterMatchFired( aafe.capture() );\n\t\tList<String> firedRules = getFiredRules(aafe.getAllValues());\n\t\t// rule \"Build Improvement\" did fire\n\t\tAssert.assertTrue(\"Build Improvement Rule fired.\",firedRules.contains(\"Build Improvement\"));\n\t\tAssert.assertTrue(\"Process Build Improvement completed.\",tile.getImprovements().contains(\"irrigation\"));\n\t\tAssert.assertNull(\"Current action should change to null\", unit.getCurrentAction());\n }", "Assert createAssert();", "@Test\n public void approveGrant() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n var approvedBy = UserId.random();\n var approvedAt = Instant.now();\n var justification = Markdown.lorem();\n\n var grantedAuth = GrantedAuthorization.apply(approvedBy, approvedAt, grantFor);\n var member = DatasetMember.apply(grantedAuth, privilege);\n\n /*\n * When\n */\n grant = grant\n .approve(approvedBy, approvedAt, justification)\n .map(g -> g, e -> null);\n\n /*\n * Then\n */\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant.getRequestResponse())\n .as(\"The request response should be set and it should be approved\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r)\n .extracting(\n o -> o.getExecuted().getBy(),\n o -> o.getExecuted().getAt(),\n AccessRequestResponse::isApproved)\n .containsExactly(approvedBy, approvedAt, true);\n }));\n\n assertThat(grant)\n .as(\"Since the request is approved, the grant should be active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember())\n .isPresent()\n .get()\n .isEqualTo(member);\n\n assertThat(g.isOpen()).isFalse();\n assertThat(g.isActive()).isTrue();\n assertThat(g.isClosed()).isFalse();\n });\n }", "protected void assertEvent(boolean fExpected)\n {\n Eventually.assertThat(invoking(this).wasInserted(), is(fExpected));\n }", "@Test\n void area_square_test_1(){\n double area = calc.areaSquare(10);\n assert area == 100;\n }", "@Test\n public void idempotentcyTest() {\n\n PaymentDto paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n paymentDto = initPayment(inAccountId, outAccountId, \"100\");\n\n final String paymentId = paymentDto.getId();\n\n\n //we mistakenly try to confirm unauthorized payment (even twice) - that is OK, payment should stay in INITIAL\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status INITIAL\", PaymentStatus.INITIAL, paymentDto.getStatus());\n\n\n //eventually we authorize payment\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n paymentDto = authorizePayment(paymentId, 200);\n\n assertEquals(\"Payment status AUTHORIZED\", PaymentStatus.AUTHORIZED, paymentDto.getStatus());\n\n\n //and confirm\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n paymentDto = confirmPayment(paymentId, 200);\n\n assertEquals(\"Payment status CONFIRMED\", PaymentStatus.CONFIRMED, paymentDto.getStatus());\n\n }", "@Test\n public void should_ReturnTrue_When_DietRecommended(){\n double weight = 100.0;\n double height = 1.70;\n //when\n boolean recommended = BMICalculator.isDietRecommended(weight,height);\n //then\n assertTrue(recommended);\n }", "@Test\n public void testGenerateStatistics() {\n Statistics me = new Statistics(0, numFishes, numSharks);\n Statistics prog = dataHandler.generateStatistics();\n //assertEquals(me, prog);\n if (me.getIterationStep() == prog.getIterationStep()\n && me.getFishAmount() == prog.getFishAmount()\n && me.getSharksAmount() == prog.getSharksAmount()) {\n assertTrue(true);\n } else {\n assertTrue(false);\n }\n }", "@Test\n public void shouldTestBoardStatus(){\n\n }", "public void set_verify_then_else(AST verify_ast,AST then_ast , AST else_ast) throws Exception;", "@Test\n public void testThatResultsAppearForAReturnJourney(){\n JourneyDetails journeyDetails = new JourneyDetailsBuilder().isOneWay(false).\n withOrigin(\"Bangalore\").withDestination(\"Delhi\").\n withDepartureDate(tomorrow()).withReturnDate(dayAfterTomorrow()).build();\n\n when(user).searchesForAReturnJourneyWith(journeyDetails);\n then(user).hasJourneyOptionsAvailableForTheReturnJourney();\n\n\n }", "public void assertArgument(T argument, Collection<T> premises);", "@Test\n void testHumanActionMakeSpeak(){\n Humans human = new Humans();\n human.setName(\"tuandung\");\n\n human.setCalm(100);\n assertEquals(human.getName() + \" \"+ \"wanna stop that war\", human.makeSpeakVote(),\"stop the war when calm\");\n human.setCalm(0);\n assertEquals(human.getName() + \" \"+ \"said what ever\", human.makeSpeakVote(),\"human make speak when calm < 0\");\n }", "@Test\n\tpublic void testMain() {\n\t\t// TODO: test output streams for various IO methods, emulating a user's\n\t\t// input - kinda like Joel did for CSSE2310\n\t\tAssert.fail();\n\t}" ]
[ "0.689353", "0.6408509", "0.6263795", "0.6172127", "0.6139182", "0.60795593", "0.6067651", "0.6066578", "0.59817487", "0.59321594", "0.5895054", "0.58355916", "0.58279705", "0.5800771", "0.57855326", "0.57526666", "0.573885", "0.5726809", "0.5702731", "0.5693668", "0.56871957", "0.5681405", "0.56468624", "0.5642638", "0.5628477", "0.5617324", "0.5614091", "0.55877864", "0.5582174", "0.5572239", "0.5563194", "0.5549758", "0.554597", "0.5544977", "0.55440193", "0.55331194", "0.5529419", "0.55083895", "0.550321", "0.5470648", "0.5468483", "0.54659176", "0.54639244", "0.5461006", "0.5457252", "0.5445775", "0.5440761", "0.5438631", "0.5427381", "0.5425582", "0.54254484", "0.5423338", "0.54167295", "0.54155535", "0.5411086", "0.54102826", "0.54087836", "0.540354", "0.5402379", "0.538286", "0.5377532", "0.53555465", "0.5353701", "0.53517663", "0.5349773", "0.5347565", "0.53412193", "0.53382903", "0.53339946", "0.5326535", "0.53263426", "0.5325136", "0.5318936", "0.53111327", "0.53081954", "0.5307863", "0.53019893", "0.5301965", "0.5301508", "0.52971387", "0.5289527", "0.5284647", "0.527808", "0.52755356", "0.52666515", "0.525089", "0.5249861", "0.5247475", "0.5245931", "0.5242403", "0.52388793", "0.5236898", "0.5232671", "0.52244484", "0.52241784", "0.52218205", "0.52119637", "0.52110356", "0.5205076", "0.52031696", "0.5199888" ]
0.0
-1
/ Getters y Setters.
public int getId_cabecera_pedido() { return id_cabecera_pedido; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract Set method_1559();", "public void setdat()\n {\n }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n public void get() {}", "String setValue();", "private void setData() {\n\n }", "double sety(double y) {\nreturn this.y;\n }", "public void set() {\r\n\t\tage = 19;\r\n\t\tname = \"ΎΛ·»\";\r\n\t\theight = 161;\r\n\t\tsetWeight(50);\r\n\t\tSystem.out.println(getWeight());\r\n\t}", "public int getSet() {\n return set;\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void set() {\n\t\tSystem.out.println(\"A==========set\");\n\t}", "public void setAge(int age) { this.age = age; }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void setX(int x) { this.x=x; }", "@Override\n\tpublic void setData() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n protected void updateProperties() {\n }", "public void get() {\n }", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\n public void setX(int x) {\n this.x=x;\n }", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "@Override\n\tprotected void setValueOnUi() {\n\n\t}", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public void setupProperties() {\n // left empty for subclass to override\n }", "public void setRes(){\r\n \r\n }", "@Override\npublic void setAttributes() {\n\t\n}", "double gety() {\nreturn this.y;\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "public void setY(int y) { this.y=y; }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void setPrice(double price){this.price=price;}", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public Property() {\n\t\tcity=\"\";\n\t\towner=\"\";\n\t\tpropertyName=\"\";\n\t\trentAmount=0;\n\t\tplot= new Plot(0,0,1,1);\n\t}", "public int\t\tget() { return value; }", "@Test\n\tpublic void testSet() {\n\t}", "@Override\n\tpublic void initValue() {\n\t\t\n\t}", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "@Override\n public void saveValues() {\n \n }", "public int getY()\n {\n \t return _y;\n }", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "public int get () { return rating; }", "@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}", "public int getAge() {return age;}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\n\tpublic void initializeValues() {\n\n\t}", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "public double getHiY() {\r\n\treturn fieldHiY;\r\n}", "@Override\n\t\tpublic void set(E arg0) {\n\t\t\t\n\t\t}", "public int getArmadura(){return armadura;}", "@Override\n\tpublic void set(T e) {\n\t\t\n\t}", "public int getlife(){\r\n return life;\r\n}", "private void setUIFields(){\n setImage();\n setTitle();\n setLocation();\n setRatingBar();\n setDate();\n setISBN();\n setDescription();\n setPageCount();\n setNumRatings();\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "public void setName(String name){this.name=name;}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public int getX(){return this.x;}", "@Override\n\tpublic void anular() {\n\n\t}", "private EditingStatus() {\n // Class values\n className = \"\";\n editedClassName = \"\";\n associationClass = false;\n editedClass = false;\n\n // Relationship values\n openEditing = false;\n editedRel = false;\n deletedRels = false;\n relName = \"\";\n editedRelName = \"\";\n delRelationships = FXCollections.observableArrayList();\n }", "public void set(int x, int y)\r\n\t{\r\n\t\tthis.x = x;\r\n\t\tthis.y = y;\r\n\t}", "public void setX(int x);", "public int Gety(){\n\t\treturn y;\n\t}", "boolean getSet();", "@Override\r\n\tpublic void setModel() {\n\t}", "@Override\n\tpublic ArrayList<String> setValues() {\n\t\tList<String> str = new ArrayList<String>();\n\t\tstr.add(\"PcMan\");\n\t\tstr.add(\"gcMan\");\n\t\tstr.add(\"ycMan\");\n\t\tstr.add(\"kcMan\");\n\t\tstr.add(\"NoMan\");\n\t\treturn (ArrayList<String>) str;\n\t\t\n\t}", "private void set(){\n resetBuffer();\n }", "public double getLoY() {\r\n\treturn fieldLoY;\r\n}", "public int getGameY(){return this.gameY;}", "@Override\n\tpublic void setX(int x) {\n\t\t\n\t}", "@Modified(author=\"Phil Brown\", summary=\"Added Method\")\n public void setupEndValues() {\n }", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "float getY() {\n return _y;\n }", "@Override\n String get();", "public void readAndSetData(){\n//\t\tentityMember = entitySelection.getItemAt(entitySelection.getSelectedIndex());\n\t\t\n\t\tzValue = 0.0f;\n\t\t//read in z value\n\t\ttry{\n\t\t\tzValue = Float.valueOf(zPosInput.getText());\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"Could not read z input value - setting to 0!\");\n\t\t\tzValue = 0.0f;\n\t\t}\n\t\t//Z coord, check water, then terrain, if neither then use absolute\n\t\tif(offsetFromWaterMenuItem.isSelected()){\n\t\t\taboveWater = true;\n\t\t\taboveTerrain = false;\n\t\t}else if(offsetFromTerrainMenuItem.isSelected()){\n\t\t\taboveTerrain = true;\n\t\t\taboveWater = false;\n\t\t}else{\n\t\t\taboveWater = false;\n\t\t\taboveTerrain = false;\n\t\t}\n\t\t\n\t\ttry{\n\t\t\trotX = Float.valueOf(rotXField.getText());\n\t\t\trotY = Float.valueOf(rotYField.getText());\n\t\t\trotZ = Float.valueOf(rotZField.getText());\n\t\t\tscale = Float.valueOf(scaleField.getText());\n\t\t}catch(Exception e){\n\t\t\tSystem.err.println(\"Could not read rotations or scale input value - setting values to standard\");\n\t\t\trotX = 0.0f;\n\t\t\trotY = 0.0f;\n\t\t\trotZ = 0.0f;\n\t\t\tscale = 1.0f;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "@Override\n public void updateProperties() {\n // unneeded\n }", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "private void set(int x, int i) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void setY(int y) {\n this.y=y;\n }", "public void setAge(int age) { \n\t\t this.age = age; \n\t}", "public int getSpeed(){return this.speed;}", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "SetCommand getSetl();", "private void initValues() {\n \n }", "public void setAge(int age);", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}" ]
[ "0.678624", "0.66441625", "0.6382638", "0.6221727", "0.61726964", "0.6158057", "0.6112615", "0.6077156", "0.6064234", "0.60434955", "0.6017634", "0.60164344", "0.60150146", "0.59775275", "0.59648615", "0.5963395", "0.594863", "0.59479785", "0.5924042", "0.5909725", "0.58458847", "0.5841109", "0.5819124", "0.57935363", "0.57782763", "0.5769931", "0.5756263", "0.57543457", "0.5747347", "0.5733873", "0.57290494", "0.5709273", "0.5707993", "0.5704836", "0.56917053", "0.56911963", "0.56887066", "0.5669598", "0.56695324", "0.5658693", "0.56433356", "0.5641218", "0.5633452", "0.56329626", "0.56322694", "0.5631823", "0.56308085", "0.56132597", "0.5607966", "0.5601505", "0.5601505", "0.5599614", "0.5599614", "0.5599614", "0.5599614", "0.5599614", "0.5599614", "0.5594517", "0.55925095", "0.5586143", "0.5583068", "0.5580555", "0.5575091", "0.5569822", "0.5568196", "0.5566109", "0.5561761", "0.5561418", "0.5551945", "0.5550726", "0.55488944", "0.55486095", "0.55413", "0.55396056", "0.5539293", "0.55375874", "0.5535299", "0.55330247", "0.5530499", "0.55292493", "0.55265266", "0.5525876", "0.55222344", "0.5518971", "0.55165845", "0.55164087", "0.55142665", "0.55117065", "0.55090123", "0.550881", "0.55059624", "0.55034983", "0.5502338", "0.55001694", "0.5494153", "0.5486606", "0.54832673", "0.54826856", "0.54816514", "0.5478752", "0.54779035" ]
0.0
-1
Dynamic solution from geekstogeeks is better in the sense that it don't need to have O(n) complexity
public static int getMaxValueDynamicGFG(int[] val, int[] weight, int index){ return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int betterSolution(int n) {\n return n*n*n;\n }", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\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 }", "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}", "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 Scanner sc = new Scanner(System.in);\n int T = sc.nextInt();\n for(int i = 0 ; i < T; i++) {\n int n = sc.nextInt();\n int a = sc.nextInt();\n int b = sc.nextInt();\n PriorityQueue<Integer> queue = new PriorityQueue<Integer>();\n int[][] m = new int[n][n];\n //n^2 * log(n)\n for(int row = 0; row < n; row++) {\n for(int col = 0; col < n; col++) {\n if(row == 0 && col == 0 && n != 1) {\n continue;\n }else if(row == 0) {\n m[row][col] = m[row][col - 1] + a;\n }else if(col == 0) {\n m[row][col] = m[row-1][col] + b;\n }else {\n m[row][col] = m[row-1][col-1] + a + b;\n }\n\n if(row + col == (n -1)) {\n pool.add(m[row][col]); //log(n)\n }\n }\n }\n //O(n*log(n))\n for (Integer item:pool) {\n queue.add(item); //O(logn)\n }\n while(!queue.isEmpty()) {\n System.out.print(queue.poll() + \" \"); //O(1)\n }\n System.out.println();\n queue.clear();\n pool.clear();\n }\n }", "public List<Integer> diffWaysToCompute(String input) {\n List<Integer> result=new ArrayList<>();\n if(input==null||input.length()==0) return result;\n List<String> ops=new ArrayList<>();\n for(int i=0; i<input.length(); i++){\n int j=i;\n while(j<input.length()&&Character.isDigit(input.charAt(j)))\n j++;\n ops.add(input.substring(i, j));\n if(j!=input.length()) ops.add(input.substring(j, j+1));\n i=j;\n }\n int N=(ops.size()+1)/2; //num of integers\n ArrayList<Integer>[][] dp=(ArrayList<Integer>[][]) new ArrayList[N][N];\n for(int d=0; d<N; d++){\n if(d==0){\n for(int i=0; i<N; i++){\n dp[i][i]=new ArrayList<>();\n dp[i][i].add(Integer.valueOf(ops.get(i*2)));\n }\n continue;\n }\n for(int i=0; i<N-d; i++){\n dp[i][i+d]=new ArrayList<>();\n for(int j=i; j<i+d; j++){\n ArrayList<Integer> left=dp[i][j], right=dp[j+1][i+d];\n String operator=ops.get(j*2+1);\n for(int leftNum:left)\n for(int rightNum:right){\n if(operator.equals(\"+\"))\n dp[i][i+d].add(leftNum+rightNum);\n else if(operator.equals(\"-\"))\n dp[i][i+d].add(leftNum-rightNum);\n else\n dp[i][i+d].add(leftNum*rightNum);\n }\n }\n }\n }\n return dp[0][N-1];\n}", "public static int calculate()\n {\n final List<Integer> oneToNine = IntStream.iterate(1, n -> n + 1)\n .limit(9)\n .boxed()\n .collect(toList());\n final List<List<Integer>> permutations = HeapPermutations.of(oneToNine);\n\n // System.out.println(permutations.size());\n //2- for each permutation\n // a. find all breaking 2 points to break\n // b. check first two sections' third is equal to the last section\n // c. if yes, add combintion to result, otherwise skip\n\n return permutations.stream()\n .flatMap(toTriples()) //find all combinations xx X yy = zz\n .filter(isPandigital()) // allow pandigital tripes through\n .map(Triple::getThird) // get the product\n .distinct() // get distinct products only given the problem statement does not allow repetition (see hint)\n .mapToInt(i -> i) // convert to primitive\n .sum(); // and finally get the sum\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint t = s.nextInt();\n\t\twhile(t-->0)\n\t\t{\n\t\t\tint n = s.nextInt();\n\t\t\tint k = s.nextInt();\n\t\t\tint[] arr = new int[n];\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\tarr[i] = s.nextInt();\n\t\t\tArrays.sort(arr);\n\t\t\tint[][] dp = new int[k+1][n+1];\n\t\t\tfor(int i=0;i<=k;i++)\n\t\t\t\tfor(int j=0;j<=n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\telse if(i-arr[j-1]>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint val1 = dp[i-arr[j-1]][j-1];\n\t\t\t\t\t\tint val2 = dp[i][j-1];\n\t\t\t\t\t\tif(val1!=-1 && val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = Math.min(1+val1,val2);\n\t\t\t\t\t\telse if(val1!=-1)\n\t\t\t\t\t\t\tdp[i][j] = 1+val1;\n\t\t\t\t\t\telse if(val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = val2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dp[i][j-1]==-1)\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(dp[k][n]!=-1)\n\t\t\t\tSystem.out.println(dp[k][n]);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"impossible\");\n\t\t}\n\t}", "@Override\n public String solve() {\n int LIMIT = 50 * NumericHelper.ONE_MILLION_INT;\n int[] nCount = new int[LIMIT+1];\n for(long y = 1; y<= LIMIT; y++) {\n for(long d= (y+3)/4; d<y; d++) { // +3 is to make d atleast 1\n long xSq = (y+d) * (y+d);\n long ySq = y * y;\n long zSq = (y-d) * (y-d);\n\n long n = xSq - ySq - zSq;\n\n if(n<0) {\n continue;\n }\n\n if(n>=LIMIT) {\n break;\n }\n\n\n nCount[(int)n]++;\n\n }\n }\n\n int ans = 0;\n for(int i = 1; i<LIMIT; i++) {\n if(nCount[i] == 1) {\n //System.out.print(i +\",\");\n ans++;\n }\n }\n\n return Integer.toString(ans);\n }", "static public int solve(int n,int A[])\n {\n int freqArr[] = new int[1001];\n int dp[] = new int[1001];\n\n for(int i=0; i<n; i++){\n freqArr[A[i]]++;\n }\n\n dp[0] = 0;\n dp[1] = freqArr[1] > 0 ? freqArr[1] : 0;\n\n for(int i=2; i<=1000; i++){\n dp[i] = Math.max(dp[i-2] + i*freqArr[i], dp[i-1]);\n }\n return dp[1000];\n }", "public static long journeyToMoon(int n, List<List<Integer>> astronaut) {\n // Write your code here\n Map<Integer, Node<Integer>> countryMap = new HashMap<>();\n for(List<Integer> pairs: astronaut) {\n Node<Integer> node1 = countryMap.computeIfAbsent(pairs.get(0), Node::new);\n Node<Integer> node2 = countryMap.computeIfAbsent(pairs.get(1), Node::new);\n node1.connected.add(node2);\n node2.connected.add(node1);\n }\n\n List<Integer> countryCluster = new ArrayList<>();\n for(Node<Integer> node: countryMap.values()) {\n if(node.connected.size() == 0) {\n countryCluster.add(1);\n } else if(!node.visited){\n countryCluster.add(getNodeCount3(node));\n }\n }\n List<Integer> countryNodes = countryMap.values().stream().map(nn -> nn.value).collect(Collectors.toList());\n List<Integer> missingNodes = new ArrayList<>();\n for(int i=0; i < n; i++) {\n if(!countryNodes.contains(i))\n missingNodes.add(i);\n }\n\n for(int i=0; i < missingNodes.size(); i++) {\n countryCluster.add(1);\n }\n\n long ans = 0;\n //For one country we cannot pair with any other astronauts\n if(countryCluster.size() >= 2) {\n ans = (long) countryCluster.get(0) * countryCluster.get(1);\n if(countryCluster.size() > 2) {\n int sum = countryCluster.get(0) + countryCluster.get(1);\n for(int i=2; i < countryCluster.size(); i++) {\n ans += (long) sum * countryCluster.get(i);\n sum += countryCluster.get(i);\n }\n }\n }\n\n /*\n permutation of two set with size A and B = AxB\n permutation of three set with size A,B,C = AxB + AxC + BxC = AxB + (A+B)xC\n permutation of four set with size A,B,C,D = AxB + AxC + AxD + BxC + BxD + CxD = AxB + (A+B)xC + (A+B+C)xD\n */\n /*\n if(keys.length == 1) {\n ans = keys[0].size();\n } else {\n ans = keys[0].size() * keys[1].size();\n if(keys.length > 2) {\n int sum = keys[0].size() + keys[1].size();\n for (int i = 2; i < keys.length; i++) {\n ans += sum * keys[i].size();\n sum += keys[i].size();\n }\n }\n }\n */\n return ans;\n }", "public static Tree solve() {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n Map<Integer, Set<Integer>> map = new HashMap<Integer,Set<Integer>>();\n int[] valArr = new int[n];\n int[] colArr = new int[n];\n for(int i =0;i<n;i++){\n valArr[i] = scan.nextInt();\n }\n for(int i =0;i<n;i++){\n colArr[i] = scan.nextInt();\n }\n for(int i=0;i<n-1;i++){\n //10^10 / 1024/ 1024/1024, 10GB\n int a = scan.nextInt()-1;\n int b = scan.nextInt()-1;\n \n //Tree[] treeArr = new Tree[n];\n if(map.containsKey(a)){\n map.get(a).add(b);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(b);\n map.put(a,set);\n }\n //case 1-2, 2-1\n if(map.containsKey(b)){\n map.get(b).add(a);\n }else{\n Set<Integer> set = new HashSet<Integer>();\n set.add(a);\n map.put(b,set);\n } \n }\n Set<Integer> visited = new HashSet<Integer>();\n Tree root =buildTree(map,0,0,valArr,colArr);\n return root;\n }", "public static void main(String[] args) {\n String res = \"1\";\r\n for (int i = 0; i < 100; i++) res += '0';\r\n MAX = new BigInteger(res);\r\n generate(\"1\", 1, 1);\r\n generate(\"2\", 1, 4);\r\n generate(\"3\", 1, 9);\r\n Arrays.sort(values);\r\n// System.out.println(count);\r\n\r\n// for (int i = 0; i < 100; i++) {\r\n// System.out.println(values[i]);\r\n// }\r\n\r\n\r\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n try {\r\n String line = br.readLine();\r\n int K = Integer.parseInt(line);\r\n for (int i = 1; i <= K; i++) {\r\n String[] v = br.readLine().split(\" \");\r\n BigInteger A = new BigInteger(v[0]);\r\n BigInteger B = new BigInteger(v[1]);\r\n\r\n int p1 = Arrays.binarySearch(values, A);\r\n if (p1 < 0) {\r\n p1 = -p1 - 1;\r\n }\r\n int p2 = Arrays.binarySearch(values, B);\r\n if (p2 < 0) {\r\n p2 = -p2 - 1;\r\n } else {\r\n p2++;\r\n }\r\n int result = p2 - p1;\r\n //System.out.println(p1 + \" \" + p2);\r\n System.out.println(\"Case #\" + i + \": \" + result);\r\n\r\n }\r\n } catch (IOException e) {\r\n e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.\r\n }\r\n }", "public int[] solution(String S, int[] P, int[] Q) {\n \n int[][] result = new int[S.length()][4];\n int[] returnResult = new int[P.length];\n \n //how many different solutions exist?\n //'A' [0], [0] - 1 solution\n //'AG' [0, 0, 1], [0, 1, 1] - 3\n // 'AGT' [0,0,0,1,1,2], [0,1,1,2,2,2] - 6\n // 10\n // 15\n // 21\n \n //Prefix Sum - calculation\n \n for (int i = 1; i< S.length()+1; i++){\n \n if (i == 1){\n switch (S.substring(i-1, i)){\n case \"A\": result[i-1][0] = 1;\n break;\n case \"C\": result[i-1][1] = 1;\n break;\n case \"G\": result[i-1][2] = 1;\n break;\n case \"T\": result[i-1][3] = 1;\n break;\n }\n }else{\n int a = 0;\n switch (S.substring(i-1, i)){\n case \"A\": a = 0;\n break;\n case \"C\": a= 1;\n break;\n case \"G\": a =2;\n break;\n case \"T\": a =3;\n break;\n }\n result[i-1][a] = 1 + result[i-2][a];\n result[i-1][(a+1)%4] = result[i-2][(a+1)%4];\n result[i-1][(a+2)%4] = result[i-2][(a+2)%4];\n result[i-1][(a+3)%4] = result[i-2][(a+3)%4];\n }\n\n }\n \n /*\n for (double i : result){\n System.out.println(i);\n }\n */\n \n //A = 1, G = 2, C = 3, T = 4\n //when A found return 1 and move to next computation.\n // P[k] <= Q[K]\n int lowerBound = 0;\n int upperBound = 0;\n for (int i = 0; i < P.length; i++){\n lowerBound = P[i];\n upperBound = Q[i];\n \n int[] toEvaluate = new int[4];\n\n //System.out.println(lowerBound);\n if (lowerBound == 0){\n toEvaluate[0]= result[upperBound][0];\n toEvaluate[1]= result[upperBound][1];\n toEvaluate[2]= result[upperBound][2];\n toEvaluate[3]= result[upperBound][3];\n }else{\n toEvaluate[0]= result[upperBound][0] - result[lowerBound-1][0]; \n toEvaluate[1]= result[upperBound][1] - result[lowerBound-1][1];\n toEvaluate[2]= result[upperBound][2] - result[lowerBound-1][2];\n toEvaluate[3]= result[upperBound][3] - result[lowerBound-1][3];\n }\n \n /*\n for (int eval : toEvaluate){\n System.out.println(eval);\n \n }\n */\n if (toEvaluate[0] > 0) {returnResult[i] = 1;\n }else if (toEvaluate[1] > 0) {returnResult[i] = 2;\n }else if (toEvaluate[2] > 0) {returnResult[i] = 3;\n }else if (toEvaluate[3] > 0) {returnResult[i] = 4;\n }\n \n }\n \n return returnResult; \n }", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\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}", "public static int dynamic_p(int objects,int capacity){\r\n // Array to accommodate dynamic programming solutions\r\n int dp_array[][] = new int[objects+1][capacity+1];\r\n // filling the 2D array\r\n for(int i=0; i<= objects;i++){\r\n for(int j=0; j<= capacity;j++){\r\n if(i == 0)\r\n dp_array[i][j]=0; // base case(number of objects are zero)\r\n else if(j == 0)\r\n dp_array[i][j]=0; // base case(capacity is zero)\r\n else if(randvariables[i-1] <= j){ // checking if the wight of object is less than the current knapsack capacity\r\n int included = randvalues[i-1]+dp_array[i-1][j-randvariables[i-1]]; // object is included\r\n int not_included = dp_array[i-1][j]; // object is not included\r\n\r\n //taking the max of these two\r\n if(included > not_included)\r\n dp_array[i][j] = included;\r\n else\r\n dp_array[i][j]= not_included;\r\n }\r\n else // weight is more than capacity .. not including the object\r\n dp_array[i][j] = dp_array[i-1][j];\r\n }\r\n }\r\n\r\n //System.out.println(Arrays.deepToString(dp_array));\r\n int solution = dp_array[objects][capacity];\r\n boolean[] optimalset = solution_used(dp_array,objects,capacity);\r\n System.out.println(Arrays.toString(optimalset));\r\n dp_array = null;\r\n return solution; // return the final solution\r\n\r\n }", "static int solveMemo(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t // checking if already calculated \n\t if (dp[n]!=-1) \n\t return dp[n]; \n\t \n\t // storing the result and returning \n\t return dp[n] = solveMemo(n-1) + solveMemo(n-3) + solveMemo(n-5); \n\t}", "static int gen(int n)\n{ \n int []S = new int [n + 1];\n \n S[0] = 0;\n if(n != 0)\n S[1] = 1;\n \n for (int i = 2; i <= n; i++)\n { \n \n // S(2 * n) = 4 * S(n)\n if (i % 2 == 0)\n S[i] = 4 * S[i / 2];\n \n // S(2 * n + 1) = 4 * S(n) + 1\n else\n S[i] = 4 * S[i/2] + 1;\n }\n \n return S[n];\n}", "private int optimize() {\n\t\t// items: Items sorted by value-to-weight ratio for linear relaxation\n\t\t// t: the decision vector being tested at each node\n\t\t// ws, vs, is, bs: stacks of weight, value, item id, whether bring item\n\t\t// p: stack pointer; i, b, weight, value: loop caches; best: max search\n\t\t// ss: stack size: Always <=2 children on stack for <=n-1 parents\n\t\tItem[] items = new Item[n];\n\t\tint ss = 2 * n;\n\t\tint[] itemsSorted = new int[n], t = new int[n], ws = new int[ss],\n\t\t\tvs = new int[ss], is = new int[ss], bs = new int[ss];\n\t\tint i, b, weight, value, best = 0, p = 0;\n\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titems[j] = new Item(j);\n\t\tArrays.sort(items);\n\t\tfor (int j = 0; j < n; j++)\n\t\t\titemsSorted[j] = items[j].i();\n\t\titems = null; // For garbage collection.\n\n\t\t// Push item 0 onto the stack with and without bringing it.\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 1; p++;\n\t\tws[p] = 0; vs[p] = 0; is[p] = 0; bs[p] = 0; p++;\n\n\t\twhile (p > 0) {\n\t\t\tp--; // Pop the latest item off the stack\n\t\t\ti = is[p]; b = bs[p];\n\t\t\tweight = ws[p] + w[i] * b;\n\t\t\tif (weight > k)\n\t\t\t\tcontinue;\n\t\t\tvalue = vs[p] + v[i] * b;\n\t\t\tif (bound(i, weight, value, itemsSorted) < best)\n\t\t\t\tcontinue;\n\t\t\tbest = Math.max(value, best);\n\t\t\tt[i] = b;\n\t\t\tif (i < n - 1) { // Push children onto stack w/ & w/o bringing item\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 1; p++;\n\t\t\t\tws[p] = weight; vs[p] = value; is[p] = i + 1; bs[p] = 0; p++;\n\t\t\t}\n\t\t\telse if (value >= best)\n\t\t\t\tSystem.arraycopy(t, 0, x, 0, n);\n\t\t}\n\t\treturn best;\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint arr[] = new int[n];\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tint sum = sc.nextInt();\n\t\tHashMap<Integer,Integer> map = new HashMap<>();\n \t\tArrays.sort(arr);\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tint temp = arr[i];\n\t\t\tint reqSum = sum-temp;\n\t\t\tarr[i]=0;\n\t\t\tint l=0;\n\t\t\tint r = n-1;\n\t\t\twhile(l<r) {\n\t\t\t\t//System.out.println(\"l \" + l + \" r \" + r + \" i = \"+ i);\n\t\t\t\tif(arr[l] + arr[r]==reqSum && arr[l]!=0 && arr[r]!=0 ) {\n\t\t\t\t\tint arr2[] = new int[3];\n\t\t\t\t\tarr2[0] = temp;\n\t\t\t\t\tarr2[1] = arr[l];\n\t\t\t\t\tarr2[2] = arr[r];\n\t\t\t\t\tif(map.containsKey(arr2[0]) || map.containsKey(arr2[1]) || map.containsKey(arr2[2])) {\n\t\t\t\t\t\t\n\t\t\t\t\t}else {\n\t\t\t\t\t\tArrays.sort(arr2);\n\t\t\t\t\t\tSystem.out.println(arr2[0] + \" \" + arr2[1] + \" \" + arr2[2]);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tl++;\n\t\t\t\t}else if(arr[l] + arr[r] < reqSum) {\n\t\t\t\t\tl++;\n\t\t\t\t\t\n\t\t\t\t}else {\n\t\t\t\t\tr--;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tarr[i] = temp;\t\n\t\t\tmap.put(arr[i], 1);\n\t\t}\n\t}", "static int solve(int n) \n\t{ \n\t // base case \n\t if (n < 0) \n\t return 0; \n\t if (n == 0) \n\t return 1; \n\t \n\t return solve(n-1) + solve(n-3) + solve(n-5); \n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n int k = in.nextInt();\n int q = in.nextInt();\n\n int a[] = new int[n];\n for(int a_i=0; a_i < n; a_i++){\n a[a_i] = in.nextInt();\n }\n\n int fist;\n int last;\n\n //brute force will get timeout\n for(int i = 0; i< k; i++){\n fist = a[0];\n last = a[n-1];\n a[0] = last;\n for (int j = 1; j<n; j++){\n last = a[j];\n a[j] = fist;\n fist = last;\n }\n }\n\n for(int a0 = 0; a0 < q; a0++){\n System.out.println(a[in.nextInt()]);\n }\n\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 }", "public static int dynamicProgramming(int n) {\n for (int i=0; i<=n; i++) {\n table[0][i] = 1;\n }\n\n for (int j=1; j<4; j++) { //this loops the different denominations.\n for (int i=0; i<=n; i++) { //this loops through the amount we have to make change for\n\n //hard to explain, create a table and look at it. For j=1 (nickel), for anything less than\n //5 cents, we just copy the value down from j=0 (penny). The nickel has no effect for anything less than 5 cents.\n if (i < denominations[j]) {\n table[j][i] = table[j-1][i];\n continue;\n }\n\n //For example, j=1 (nickel), i = 11 cents. the number of ways to make 11 cents is equal to\n //the number of ways to make 11 cents without using nickel (table[j-1][i]) plus the number\n //of ways to 6 cents (table[j][i-denomination[j]).\n table[j][i] = table[j-1][i] + table[j][i-denominations[j]];\n }\n }\n return table[3][n];\n }", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a=scan.nextInt();\n\t\tint b=scan.nextInt();\n\t\tint[] nums=new int[N];\n\t\tint[][] weight=new int[N][N];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tnums[i]=scan.nextInt();\n\t\t\tweight[i][i]=nums[i];\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=i+1;j<N;j++){\n\t\t\t\tweight[i][j]=weight[i][j-1]+nums[j];\n\t\t\t}\n\t\t}\n\t\tlong[][] dp=new long[N][N];\n\t\tfor(int i=2;i<=N;i++){//dis\n\t\t\tfor(int j=0;j<=N-i;j++){//start\n\t\t\t\tint end=j+i-1;\n\t\t\t\tlong min=Integer.MAX_VALUE;\n\t\t\t\tfor(int k=j;k<end;k++){\n\t\t\t\t\tmin=Math.min(min, dp[j][k]+dp[k+1][end]+weight[j][k]*a+weight[k+1][end]*b);\n\t\t\t\t}\n\t\t\t\tdp[j][end]=min;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[0][N-1]);\n\t\tscan.close();\n\t}", "public static void main(String[] args){\n\t\t\n\t\tfor (int i = 0; i<999999;i++) results.add(0);\t\n\n\t\tsetChain(1L);\n\t\tboolean switcher = true;\n\t\t//while switch=true ... and once chain length is added to, switch = false\n \t\tlong best = 0L;\n\t\tint index=0;\n\t\t\t\n\t\tfor (long j = 1L; j < 1000000L; j++) {\n\n\t\t\tsetCur((int)j);\n\n\t\t\tfindChain(j);//} catch(Exception e){System.out.println(\"stackOverFlow :D\");}\n\t\t\tif (getChain() > best) {best = getChain(); index=getCur();}\n\t\t\t//now store results for later use if we come across that number.\n\t\t\tresults.set(getCur()-1, (int)getChain());\t\n\t\t\tsetChain(1L); //reset\n\t\t\t/* \t\n\t\t\tswitcher=true;\n\t\t\tint i = j;\n\t\t\twhile (switcher) {\n\n\t\t\t\tif (i==1) {//results.add(chainLength); \n\t\t\t\t\tif (chainLength > best) { best=chainLength; index = j;}\n\t\t\t \tchainLength=1; switcher=false;}\n\t\n\t\t\t\telse { i=recurse(i); chainLength++; }\t\n\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t*/\n//\t\t }\n\t\t}\n\t\tSystem.out.println(index);\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 int numberOfWaysDynamic(int n, int[] lookUp) {\n\t\tif(n<0)\n\t\t\treturn 0;\n\t\telse if(n==0)\n\t\t\treturn 1;\n\t\telse if(lookUp[n]>0)\n\t\t\treturn lookUp[n];\n\t\telse{\n\t\t\tlookUp[n] = numberOfWaysDynamic(n-1,lookUp)+ numberOfWaysDynamic(n-2,lookUp)+ numberOfWaysDynamic(n-3,lookUp); \n\t\t\treturn lookUp[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 }", "public static void main(String[] args) {\n setStandardInput();\n\n Scanner in = new Scanner(System.in);\n\n int N = in.nextInt(); // Denoting the number of balls.\n in.skip(\"\\n\");\n\n int maxN = 100005; // The maximum number of balls.\n int maxV = 10005; // The maximum value written on a ball.\n\n int[] nums = new int[maxN];\n ArrayList<Integer> sortedBalls = new ArrayList<>();\n\n for (int i = 1; i <= N; i++) {\n nums[i] = in.nextInt();\n sortedBalls.add(nums[i]);\n }\n\n Arrays.sort(sortedBalls.toArray());\n\n int[] balls = IntStream.of(nums).distinct().toArray(); // V\n\n HashMap<Integer, Integer> H = new HashMap<>();\n for (int i = 0; i < balls.length; i++) {\n H.put(balls[i], i);\n }\n\n int[] counter = new int[maxN];\n for (int i = 1; i <= N; i++) {\n counter[H.get(nums[i])]++;\n }\n\n long[] powerOfTwo = new long[maxN]; // Maybe I can change to LONG as solution\n powerOfTwo[0] = 1L;\n for (int i = 1; i <= N; i++) {\n powerOfTwo[i] = (powerOfTwo[i - 1] << 1L) % mod;\n }\n\n // Let ways[v] denotes the number of ways modulus 10^9+7 that balls can\n // be drawn from the set, so that their GCD equals the number v.\n int[] ways = new int[maxV];\n\n for (int i = 0; i < balls.length; i++) {\n// balls\n }\n\n for (int i = 0; i < balls.length; i++) {\n\n for (int v = 1; v <= 10000; v++) {\n\n int gcd = gcd(balls[i], v);\n ways[gcd] = add(ways[gcd], (int)((powerOfTwo[counter[i]] - 1) * ways[v]));\n }\n\n ways[balls[i]] = add(ways[balls[i]], (int)powerOfTwo[counter[i]] - 1);\n }\n\n int Q = in.nextInt(); // Representing the number of GCD queries that will have to be performed.\n in.nextLine();\n\n// in.skip(\"\\n\");\n\n for (int queryNum = 1; queryNum <= Q; queryNum++) {\n\n int X = in.nextInt(); // Denoting the GCD.\n\n System.out.println(ways[X]);\n }\n }", "void h(List<List<Integer>> r, List<Integer> t, int n, int s){ \n for(int i = s; i*i <= n; i++){\n if(n % i != 0) continue; \n t.add(i);\n t.add(n / i);\n r.add(new ArrayList<>(t));\n t.remove(t.size() - 1);\n h(r, t, n/i, i);\n t.remove(t.size() - 1);\n }\n }", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }", "static int dynamicProgramming(int problem) {\r\n\t\tint items = problems.get(problem).size();\r\n\t\tint cap = capacities.get(problem);\r\n\r\n\t\tint x = 0;\r\n\t\tfor(int i = 1; i < items + 1; i++, x++) {\r\n\t\t\tweights[i] = problems.get(problem).get(x).weight;\r\n\t\t\tprofits[i] = problems.get(problem).get(x).profit;\r\n\t\t}\r\n\r\n\t\tint[][] P = new int[items + 1][cap + 1];\r\n\r\n\t\tfor(int i = 0; i < items + 1; i++) {\r\n\t\t\tfor(int j = 0; j < cap + 1; j++) {\r\n\t\t\t\tP[i][j] = -1;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tfor(int c = 0; c < cap + 1; c++) {\r\n\t\t\tP[0][c] = 0;\r\n\t\t}\r\n\r\n\t\tfor(int i = 1; i < items + 1; i++) {\r\n\t\t\tP[i][0] = 0;\r\n\t\t\tfor(int c = 1; c < cap + 1; c++) {\r\n\t\t\t\tif(i >= 2 && c >= 2) {\r\n\t\t\t\t\tP[i-2][c-2] = -1;\r\n\t\t\t\t}\r\n\t\t\t\tif(weights[i] <= c && P[i-1][c-weights[i]] + profits[i] > P[i-1][c]) {\r\n\t\t\t\t\tP[i][c] = P[i-1][c-weights[i]] + profits[i];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tP[i][c] = P[i-1][c];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn P[items][cap];\r\n\t}", "Long[] searchSolution(int timeLimit, Graph g);", "public static void main(String[] args) {\n\t\tArrayList<Integer> primelist = sieve(7071);\n\t\tArrayList<Double> second = new ArrayList<Double>();\n\t\tfor(int one : primelist) \n\t\t\tsecond.add(Math.pow(one, 2));\n\t\tArrayList<Double> third = new ArrayList<Double>();\n\t\tprimelist = sieve(368);\n\t\tfor(int one : primelist)\n\t\t\tthird.add(Math.pow(one, 3));\n\t\tArrayList<Double> fourth = new ArrayList<Double>();\n\t\tprimelist = sieve(84);\n\t\tfor(int one : primelist)\n\t\t\tfourth.add(Math.pow(one, 4));\n\n\t\tArrayList<Double> possibilities = new ArrayList<Double>();\n\t\tfor (int k = fourth.size() - 1; k >=0 ; k--) {\n\t\t\tfor (int j = 0; j < third.size(); j++) {\n\t\t\t\tdouble sum = fourth.get(k) + third.get(j);\n\t\t\t\tif (sum > 50000000)\n\t\t\t\t\tbreak;\n\t\t\t\telse {\n\t\t\t\t\tfor (int i = 0; i < second.size(); i++) {\n\t\t\t\t\t\tdouble nextsum = sum + second.get(i);\n\t\t\t\t\t\tif (nextsum > 50000000)\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t// I am not sure whether it can be proved that the sum is unique.\n\t\t\t\t\t\t\tif (!possibilities.contains(nextsum))\n\t\t\t\t\t\t\t\tpossibilities.add(nextsum);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tint totalcount = possibilities.size();\n\t\tSystem.out.println(totalcount);\n\t}", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] dp = new int[n+1];\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\t\n\t\tfor (int i = 1; i < arr.length; i++) {\n\t\t\tfor (int j = 1; j <= i; j++) {\n\t\t\t\tdp[i] = Math.max(dp[i], dp[i-j] + arr[j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(dp[arr.length-1]);\n\t}", "public ArrayList<ArrayList<Integer>> fourSum(int[] num, int target) {\n int temp = 0;\n Arrays.sort(num);\n\n ArrayList<ArrayList<Integer>> a = new ArrayList<ArrayList<Integer>>();\n int [] s = new int [4];\n int total = 0;\n int current = -1;\n int i = 0;\n Arrays.fill(s, 0);\n HashMap<Long, Integer> m = new HashMap<Long, Integer>();\n \n \n if (num.length < 4) return a;\n \n while (i!=-1) {\n //increase the current pointer\n ++current;\n if (current > num.length-1) {\n --i;\n if (i >= 0) \n {\n current = s[i];\n total -= num[current];\n }\n }\n else if (total + num[current] > target || total + (4-i)*num[num.length-1] < target) {\n --i;\n if (i >= 0) \n {\n current = s[i];\n total -= num[current];\n }\n }\n else {\n //check if current number will work\n /*if (current == 0)\n {\n */\n if (i < 3) {s[i] = current; total += num[current]; ++i;}\n else if (num[current] + total == target) {\n //bingo one answer\n ArrayList<Integer> b = new ArrayList<Integer>();\n long c = num[s[0]]*num[s[1]]*num[s[2]]*num[current];\n long d = Math.abs((long)num[s[0]]*1000000000) \n + Math.abs((long)num[s[1]]*1000000)\n + Math.abs((long)num[s[2]]*1000)\n + Math.abs((long)num[current]);\n if (c < 0) d *= -1;\n if (!m.containsKey(d))\n {\n b.add(num[s[0]]);\n b.add(num[s[1]]);\n b.add(num[s[2]]);\n b.add(num[current]);\n a.add(b);\n m.put(d, 1);\n }\n }\n /*\n } \n else if (num[current] != num[current-1])\n {\n if (i < 2) {s[i] = current; total += num[current]; ++i;}\n else if (num[current] + total == 0) {\n //bingo one answer\n ArrayList<Integer> b = new ArrayList<Integer>();\n b.add(num[s[0]]);\n b.add(num[s[1]]);\n b.add(num[s[2]]);\n a.add(b);\n }\n }\n */\n }\n }\n return a;\n }", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "public static void main(String[] args) throws NumberFormatException, IOException {\n\r\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\r\n\t\tint T = Integer.parseInt(br.readLine());\r\n\t\tStringTokenizer st;\r\n\t\tfor (int test_case = 1; test_case <= T; test_case++) {\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tN = Integer.parseInt(st.nextToken());\r\n\t\t\tK = Integer.parseInt(st.nextToken());\r\n\t\t\tst = new StringTokenizer(br.readLine());\r\n\t\t\tlist = new ArrayList[N + 1];\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tlist[i] = new ArrayList<Integer>();\r\n\t\t\t}\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tint k = Integer.parseInt(st.nextToken());\r\n\t\t\t\tlist[k].add(i);\r\n\t\t\t}\r\n//\t\t\tfor (int i = 1; i <= N; i++) {\r\n//\t\t\t\tfor (int j = 0; j < list[i].size(); j++)\r\n//\t\t\t\t\tSystem.out.print(i + \", \" + list[i].get(j) + \" \");\r\n//\t\t\t}\r\n//\t\t\tSystem.out.println();\r\n\r\n\t\t\tQueue<Integer> q;\r\n//\t\t\tfor(int i = 1; i<=N;i++) {\r\n//\t\t\t\tif(list[i].size()==0) {\r\n//\t\t\t\t\tq.add(i);\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\t\t\tint visited[];\r\n\t\t\tint answer = 0;\r\n\t\t\tfor (int i = 1; i <= N; i++) {// 각 굴에 대해서 인원 센다\r\n\t\t\t\tq = new LinkedList<Integer>();\r\n\t\t\t\tvisited = new int[N + 1];\r\n\t\t\t\tint count = K;\r\n//\t\t\t\tfor (int j = 1; j < K; j++) {// 지날 수 있는 굴의 최대갯수 K\r\n\t\t\t\tif (list[i].size() < 1) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tint idx;\r\n\t\t\t\tfor (int u = 0; u < list[i].size(); u++) {\r\n\t\t\t\t\tidx = list[i].get(u);\r\n\t\t\t\t\tq.add(idx);\r\n\t\t\t\t}\r\n\t\t\t\twhile (count > 0 && !q.isEmpty()) {\r\n\t\t\t\t\tidx = q.poll();\r\n\r\n\t\t\t\t\tfor (int m = 0; m < list[idx].size(); m++) {\r\n\r\n\t\t\t\t\t\tint dd = list[idx].get(m);\r\n\t\t\t\t\t\tif (visited[dd] == 0 && dd != i) {\r\n\t\t\t\t\t\t\tvisited[dd] = 1;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tq.add(list[idx].get(m));\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}\r\n\t\t\t\t\tcount--;\r\n\r\n\t\t\t\t}\r\n//\t\t\t\t}\r\n\t\t\t\tfor (int e = 1; e <= N; e++) {\r\n\t\t\t\t\tif (visited[e] == 1)\r\n\t\t\t\t\t\tanswer++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"#\" + test_case + \" \" + answer);\r\n\r\n\t\t}\r\n\r\n\t}", "public String run() {\r\n\t// divisorSum[n] is the sum of all the proper divisors of n\r\n int divisorSum[]= new int[LIMIT+1];\r\n for(int i=1;i<=LIMIT;i++)\r\n {\r\n for(int j=i+i;j<=LIMIT;j+=i)\r\n divisorSum[j]+=i;\r\n }\r\n // Analyze the amicable chain length for each number in ascending order\r\n int maxChainLen=0;\r\n int minChainElem=-1;\r\n for(int i=0;i<=LIMIT;i++){\r\n Set<Integer> visited=new HashSet<>();\r\n for(int count=1,cur=i;;count++){\r\n visited.add(cur);\r\n int next=divisorSum[cur];\r\n if(next==i)\r\n {\r\n if(count>maxChainLen){\r\n minChainElem=i;\r\n maxChainLen=count;\r\n \r\n }\r\n break;\r\n }\r\n // Exceeds limit or not a chain (a rho shape instead)\r\n else if(next>LIMIT || visited.contains(next))\r\n break;\r\n else\r\n cur=next;\r\n }\r\n }\r\n return Integer.toString(minChainElem);\r\n }", "public static void main(String[] args) {\n\t\tScanner sf = new Scanner(System.in);\n\t\tint tot = sf.nextInt();\n\t\tint[] arr = new int[tot];\n\t\tint[] res_i = new int[tot];\n\t\tint[] res_d = new int[tot];\n\t\t\n\t\tfor (int i = 0; i < tot; i++) {\n\t\t\tarr[i] = sf.nextInt();\n\t\t\tres_i[i] = 1;\n\t\t\tres_d[i] = 1;\n\t\t}\n\t\tfinder(arr, res_i, 0);\n\t\tfinder_rev(arr, res_d,arr.length-1);\n\t\tint max = 0;\n\t\tfor (int i = 0; i < res_d.length; i++) {\n\t\t\t if(max<res_d[i]+res_i[i]-1) { max = res_d[i]+res_i[i]-1; }\n\t\t\t\t\t}\n\t\tSystem.out.println(max);\n\t\tsf.close();\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 }", "static int[] find2(int a[]){\r\n int sum = a[0];\r\n int pro = a[0];\r\n for(int i=1;i<a.length;i++){\r\n sum += a[i];\r\n pro += a[i]*a[i];\r\n }\r\n int s = (n*(n+1))/2 - sum;\r\n int p = (n*(n+1)*(2*n+1))/6 - pro;\r\n return solveSP(s, p);\r\n }", "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 void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int q = sc.nextInt();\n\n for(int k = 0; k < q; k++) {\n int m = sc.nextInt();\n int n = sc.nextInt();\n\n // indicate number of pieces\n long x = 1;\n long y = 1;\n \n ArrayList<Long> c_y = new ArrayList<Long>();\n for(int i = 0; i < m - 1; i++) {\n c_y.add(sc.nextLong());\n }\n \n ArrayList<Long> c_x = new ArrayList<Long>();\n for(int i = 0; i < n - 1; i++) {\n c_x.add(sc.nextLong());\n }\n\n Collections.sort(c_y, Collections.reverseOrder());\n Collections.sort(c_x, Collections.reverseOrder());\n\n // cut: most expensive = cut first\n int index_X = 0;\n int index_Y = 0;\n long totalCost = 0;\n\n while(!(x == n && y == m)) {\n if(x < n && y < m) {\n // compare cost to decide whether cut horizontally or vertically\n if(c_y.get(index_Y) >= c_x.get(index_X)) {\n totalCost += c_y.get(index_Y) * x;\n y++;\n index_Y++;\n } else if(c_y.get(index_Y) < c_x.get(index_X)) {\n totalCost += c_x.get(index_X) * y;\n x++;\n index_X++; \n }\n } else if(x == n && y < m) {\n totalCost += c_y.get(index_Y) * x;\n index_Y++;\n y++;\n } else if(x < n && y == m) {\n totalCost += c_x.get(index_X) * y;\n index_X++;\n x++;\n }\n }\n\n totalCost = totalCost % (long)(Math.pow(10, 9) + 7);\n System.out.println(totalCost );\n }\n }", "public static void main(String[] args) throws IOException {\n int max = 100000;\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n N = Integer.parseInt(br.readLine());\n\n int arr[] = new int[max+1];\n\n for (int p=2; p<=99999; p++)\n {\n if (arr[p] == 0)\n { arr[p] = 1;\n for (int i=p*2; i<=max; i += p) {\n arr[i]++;\n }\n }\n }\n\n int mat[][] = new int[6][max+1];\n// for (int i = 2; i < arr.length; i++) {\n// mat[arr[i]][i] = 1;\n// }\n\n for (int i = 1; i < 6; i++) {\n for (int j = 2; j < mat[0].length; j++) {\n if(arr[j] == i) {\n mat[i][j] = mat[i][j - 1]+1;\n } else {\n mat[i][j] = mat[i][j - 1];\n }\n }\n }\n\n\n for (int i = 0; i < N; i++) {\n String str[] = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int k = Integer.parseInt(str[2]);\n int ans = mat[k][b]-mat[k][a-1];\n System.out.println(ans);\n }\n }", "public static void main(String[] args) throws Exception {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n int[] arr = new int[n];\n \n for(int i = 0; i< n; i++){\n arr[i] = scn.nextInt();\n }\n \n int[] dp = new int[n];\n dp[0] = 1;\n int maxLen = 1;\n // traversing from 1 to jth position starting from 0\n for(int i = 1; i<n; i++){\n for(int j = 0; j<i; j++){\n \n if(arr[i] > arr[j]){\n dp[i] = Math.max(dp[i],dp[j]);\n }\n }\n dp[i] += 1;\n \n if(maxLen < dp[i]){\n maxLen = dp[i];\n }\n }\n System.out.println(maxLen);\n //System.out.println(Arrays.toString(dp));\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 }", "public static void main(String[] args) {\n \tlong[] fact = new long[MAXDOMINOES+1];\r\n \tfact[0] = 1;\r\n \tfor (int i=1; i<=MAXDOMINOES; i++)\r\n \t\tfact[i] = (fact[i-1]*i)%MOD;\r\n\r\n Scanner stdin = new Scanner(System.in);\r\n int numCases = stdin.nextInt();\r\n\r\n // Process each case.\r\n for (int loop=0; loop<numCases; loop++) {\r\n\r\n // Read in this case.\r\n n = stdin.nextInt();\r\n list = new int[n][2];\r\n for (int i=0; i<n; i++)\r\n for (int j=0; j<2; j++)\r\n list[i][j] = stdin.nextInt();\r\n\r\n // Special case - if all the dominoes are the same, all orderings work.\r\n if (same(list)) {\r\n \tSystem.out.println(fact[n]);\r\n \tcontinue;\r\n }\r\n\r\n // dp[mask][last][orientation] will store the number of permutations using the dominoes indicated by\r\n // mask, with the last domino last facing in the direction dictated by orientation. If orientation is 0,\r\n // this is the original input orientation, if it is 1, it's flipped.\r\n long[][][] dp = new long[1<<n][n][2];\r\n\r\n // Always 1 way to place one domino in a fixed orientation.\r\n for (int i=0; i<n; i++) {\r\n dp[1<<i][i][0] = 1;\r\n dp[1<<i][i][1] = 1;\r\n }\r\n\r\n // Outer DP loop, solve all problem instances for each subset of dominoes.\r\n for (int mask=3; mask<(1<<n); mask++) {\r\n\r\n // Now, try each domino as the last domino in mask.\r\n for (int last=0; last<n; last++) {\r\n\r\n // Not a valid state.\r\n if ((mask&(1<<last)) == 0) continue;\r\n\r\n int prevmask = mask - (1<<last);\r\n\r\n for (int i=0; i<n; i++) {\r\n\r\n if ((prevmask&(1<<i)) == 0) continue;\r\n\r\n // Both i and last are in regular orientation.\r\n if (list[i][1] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][0])%MOD;\r\n\r\n // Here i is flipped and last is regular.\r\n else if (list[i][0] == list[last][0])\r\n dp[mask][last][0] = (dp[mask][last][0]+dp[prevmask][i][1])%MOD;\r\n\r\n // i is regular but last is flipped.\r\n if (list[i][1] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][0])%MOD;\r\n\r\n // Both i and last are flipped.\r\n else if (list[i][0] == list[last][1])\r\n dp[mask][last][1] = (dp[mask][last][1]+dp[prevmask][i][1])%MOD;\r\n }\r\n } // end last loop\r\n } // end mask loop\r\n\r\n // Sum up result - all ways to place all dominoes over all possible last dominoes in either orientation.\r\n // Since we screened out our special case, no over-counting will occur here.\r\n long res = 0L;\r\n for (int last=0; last<n; last++) {\r\n \tres = (res + dp[(1<<n)-1][last][0])%MOD;\r\n \tif (list[last][0] != list[last][1])\r\n \t\tres = (res + dp[(1<<n)-1][last][1])%MOD;\r\n }\r\n System.out.println(res);\r\n }\r\n }", "public static void dynamicProgramming2(int[][] myArray){ \t\r\n\t\tint countNode = myArray.length;\r\n\t\tint rows = myArray[0].length;\r\n\t\tif(rows != countNode) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\t\r\n \tint[] cost = new int[countNode];\r\n \tint[] prev = new int[countNode];\r\n \tboolean[] visited = new boolean[countNode];\r\n \t\r\n \tfor(int i = 0; i < countNode; i++) {\r\n \t\tcost[i] = myArray[0][i];\r\n \t\tprev[i] = 0;\r\n \t\tvisited[i] = false;\r\n \t}\r\n \t\r\n \tint cur = 0; \t\r\n \twhile(true)\r\n \t{\r\n \t\tfor(int i = cur; i < countNode; i++)\r\n \t\t{\r\n \t\t\tif(myArray[cur][i] + cost[cur] < cost[i])\r\n \t\t\t{\r\n \t\t\t\tcost[i] = myArray[cur][i] + cost[cur];\r\n \t\t\t\tprev[i] = cur;\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t\tvisited[cur] = true;\r\n \t\tif(AllVisited(visited)) break;\r\n \t\t\r\n \t\t// Choose the node which is not visited yet\r\n \t\t// and has the minimum cost so far.\r\n \t\tint min = Integer.MAX_VALUE;\r\n \t\tfor(int i = 0; i < countNode; i++){\r\n \t\t\tif(!visited[i] && cost[i] < min) {\r\n \t\t\t\tcur = i;\r\n \t\t\t\tmin = cost[i];\r\n \t\t\t}\r\n \t\t}\r\n \t}\r\n \tSystem.out.println(\"Dynamic Programming2:\");\r\n \tSystem.out.println(\"Minimum Cost to go from 1 to \" + countNode + \" is \" + cost[countNode - 1]);\r\n \tStack<Integer> s = new Stack<Integer>();\r\n \tint traveller = countNode - 1;\r\n \ts.push(countNode);\r\n \twhile(traveller != 0)\r\n \t{\r\n \t\ts.push(prev[traveller] + 1);\r\n \t\ttraveller = prev[traveller];\r\n \t}\r\n \t\r\n \tStringBuilder sb = new StringBuilder();\r\n \twhile(!s.empty())\r\n \t{\r\n \t\tsb.append(s.pop());\r\n \t\tif (!s.empty()) {\r\n \t\tsb.append(\" -> \");\r\n \t\t}\r\n \t}\r\n \t\r\n \tSystem.out.println(\"Path from 1 to end is \" + sb.toString()); \r\n \tSystem.out.println();\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\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) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint total = sc.nextInt();\n\t\tint lastAns = 0;\n\t\tList<List<Integer>> list = new ArrayList();\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tlist.add(new ArrayList());\n\t\t}\n\t\tfor (int i = 0; i < total; i++) {\n\t\t\tint q = sc.nextInt();\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint seq = (x ^ lastAns) % N;\n\t\t\tList<Integer> seqList = list.get(seq);\n\t\t\t\n\t\t\tswitch (q) {\n\t\t\t\tcase 1:\n\t\t\t\t\tseqList.add(y);\n\t\t\t\t\tlist.set(seq, seqList);\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tlastAns = seqList.get(y % seqList.size());\n\t\t\t\t\tSystem.out.println(lastAns);\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n String str = bf.readLine();\n int N = Integer.parseInt(str);\n String[] temp = bf.readLine().split(\" \");\n // 숫자들 저장하는 배열\n int[] dp = new int[N];\n int[] data = new int[N];\n\n // 숫자 변형해서 집어넣기\n for (int i = 0; i < N; i++) {\n data[i] = Integer.parseInt(temp[i]);\n }\n // 2중 포문을 이용한 해결방법(O(N^2))\n for (int i = 0; i < N; i++) {\n dp[i] = 1;\n for (int j = 0; j < i; j++) {\n if (data[j] < data[i] && dp[i] < dp[j] + 1) {\n dp[i] = dp[j] + 1;\n // 증가하는 수열 길이를 증가시켜준다\n }\n }\n }\n Arrays.sort(dp);\n System.out.println(dp[N - 1]);\n }", "private static Integer packDPRec(Integer capacity, List<Integer> weights, List<ItemDTO> items, Integer n, Integer[][] mem, List<Integer> optimalChoice) {\n // Base condition\n if (n == 0 || capacity <= 0)\n return 0;\n\n if (mem[n][capacity] != -1) {\n return mem[n][capacity];\n }\n\n if (weights.get(n - 1) > capacity) {\n // Store the value of function call\n // stack in table before return\n List<Integer> subOptimalChoice = new ArrayList<>();\n mem[n][capacity] = packDPRec(capacity, weights, items, n - 1, mem, subOptimalChoice);\n optimalChoice.addAll(subOptimalChoice);\n return mem[n][capacity];\n } else {\n // Return value of table after storing\n List<Integer> optimalChoiceIncluded = new ArrayList<>();\n List<Integer> optimalChoiceExcluded = new ArrayList<>();\n Integer valueIncluded = items.get(n - 1).getValue() + packDPRec(capacity - weights.get(n - 1), weights, items, n - 1, mem, optimalChoiceIncluded);\n Integer valueExcluded = packDPRec(capacity, weights, items, n - 1, mem, optimalChoiceExcluded);\n if (valueIncluded > valueExcluded) {\n optimalChoice.addAll(optimalChoiceIncluded);\n optimalChoice.add(items.get(n - 1).getId());\n mem[n][capacity] = valueIncluded;\n }else{\n optimalChoice.addAll(optimalChoiceExcluded);\n mem[n][capacity] = valueExcluded;\n }\n return mem[n][capacity];\n }\n }", "public static void main(String[] args) {\r\n Scanner scanner = new Scanner(System.in);\r\n \r\n long n = scanner.nextLong();\r\n int d = scanner.nextInt();\r\n List<Integer> expenditureList = new ArrayList<>();\r\n for(long i = 0; i < n; i++){\r\n int Ei = scanner.nextInt();\r\n expenditureList.add(Ei);\r\n }\r\n System.out.println(getSolution(expenditureList, d));\r\n }", "public List<List<Integer>> fourSum_optimization(int[] nums, int target) {\n int len = nums.length;\n Arrays.sort(nums);\n if (len < 4)\n return Collections.emptyList();\n List<List<Integer>> arr = new ArrayList<>();\n\n for (int i = 0; i < len - 1; i++) {\n for (int j = i + 1; j < len - 1; j++) {\n int Left = j + 1;\n int Right = len - 1;\n int left_target_sum = target - nums[i] + nums[j];\n\n while (Left < Right) {\n int two_sum = nums[Left] + nums[Right];\n if (two_sum < left_target_sum)\n Left++;\n else if (two_sum > left_target_sum)\n Right--;\n else {\n List<Integer> arr2 = new ArrayList<>();\n if (left_target_sum + two_sum == target) {\n arr2.add(nums[i]);\n arr2.add(nums[j]);\n arr2.add(nums[Left]);\n arr2.add(nums[Right]);\n arr.add(arr2);\n }\n while (Left < Right && nums[Left] == arr2.get(2))\n ++Left;\n while (Left < Right && nums[Right] == arr2.get(3))\n --Right;\n }\n }\n while (i + 1 < len && nums[i + 1] == nums[i])\n ++i;\n while (j + 1 < len && nums[j + 1] == nums[j])\n ++j;\n }\n }\n\n return arr;\n }", "void solve() {\n num = new ArrayList<>();\n num.add(BigInteger.valueOf(4));\n for (int len = 2; len <= 100; len++)\n generate(\"4\", 1, len, false);\n Collections.sort(num);\n for (int tc = ii(); tc > 0; tc--) {\n long x = il();\n BigInteger X = BigInteger.valueOf(x);\n for (int i = 0; i < num.size(); i++) {\n if (num.get(i).mod(X).equals(BigInteger.ZERO)) {\n String z = num.get(i).toString();\n int end = z.lastIndexOf('4');\n int len = z.length();\n int a = 2 * (end+1);\n int b = len - end;\n out.println(a + b);\n break;\n }\n }\n }\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint T;\n\t\tT=sc.nextInt();\n\t\tfor(int test_case = 1; test_case <= T; test_case++){\n\t\t\tN = sc.nextInt();//3~100,000\n//\t\t\tint Max = 0;\n//\t\t\tint n2 = space(N);\n//\t\t\tint[] arr = new int[n2*2 + 1];\n//\t\t\tfor(int i = n2, size = 0; size < N; i++, size++) {\n//\t\t\t\tarr[i] = sc.nextInt();\n//\t\t\t\tMax = Max < arr[i] ? arr[i] : Max;\n//\t\t\t}\n//\t\t\tint leftIdx = n2;\n//\t\t\tint rightIdx = n2 * 2 - 1;\n//\t\t\twhile(leftIdx != 1) {\n//\t\t\t\tfor(int i = leftIdx; i<=rightIdx; i = i + 2) {\n//\t\t\t\t\tarr[i/2] = arr[i] + arr[i+1];\n//\t\t\t\t\tMax = Max < arr[i/2] ? arr[i/2] : Max;\n//\t\t\t\t}\n//\t\t\t\trightIdx = leftIdx - 1;\n//\t\t\t\tleftIdx = leftIdx / 2;\n//\t\t\t}\n\t\t\tint[] arr = new int[N];\n\t\t\tint Max = 0;\n\t\t\tfor(int i=0;i<N;i++) {\n\t\t\t\tarr[i] = sc.nextInt();\n\t\t\t}\n\t\t\tMax = fastMaxSum(arr);\n\t\t\tSystem.out.println(\"#\" + test_case + \" \" + Max);\n\t\t}\n\t}", "public Collection<MatchingPair> matchingPairs(Collection<Integer> values, Integer targetSum)\n {\n HashMap<Integer, Integer> tableCompteur = new HashMap<>();\n LinkedHashMap<Integer, Integer> tablePaire = new LinkedHashMap<Integer, Integer>();\n Collection<MatchingPair> paireSansDuplication = new LinkedList();\n Collection<MatchingPair> solution = new LinkedList();\n\n // On itere sur les valeurs donnee pour savoir le compte de chaque valeur\n for (Integer valeur : values)\n {\n if (tableCompteur.containsKey(valeur))\n {\n // Partie Compteur\n Integer compteur = tableCompteur.get(valeur);\n compteur++;\n tableCompteur.put(valeur, compteur);\n }\n else {\n tableCompteur.put(valeur, 0);\n }\n\n }\n\n // On itere sur les valeurs donnee pour savoir les paires\n for (Integer element : values)\n {\n int temp = targetSum - element;\n if (tablePaire.containsKey(element))\n {\n if (tablePaire.get(element) != null)\n {\n paireSansDuplication.add(new MatchingPair(element, temp));\n }\n // si la table contient l'element on met nul pour ne pas avoir de repetition\n tablePaire.put(temp, null);\n }\n else if (!tablePaire.containsKey(element))\n {\n tablePaire.put(temp, element);\n }\n }\n\n // On trouve le minimum count entre les paire et leur compte pour tenir en compte de toutes les possibilites. Ici le meilleur cas reste O(n) ( pas de paire)\n for (MatchingPair paire : paireSansDuplication)\n {\n if (paire != null) { // verification au debug pr erreur nullpointer\n int a = tableCompteur.get(paire.first);\n int b = tableCompteur.get(paire.second);\n int minCount = Math.min(a+1, b+1);\n for (int i = 0; i < pow(minCount, 2); i++)\n {\n solution.add(new MatchingPair(paire.first, paire.second));\n }\n }\n }\n return solution;\n }", "@Override\n public DRFLPSolution algorithm(DRFLPInstance instance) {\n try {\n List<Future<DRFLPSolution>> futures = new ArrayList<>();\n RandomManager.reinitialize(RandomType.LEGACY, 0, this.n);\n for (int i = 0; i < n; i++) {\n int _i = i;\n futures.add(executor.submit(() -> {\n RandomManager.reset(_i);\n return alg.algorithm(instance);\n }));\n }\n var results = ConcurrencyUtil.awaitAll(futures);\n DRFLPSolution best = null;\n for(var solution: results){\n if(solution.isBetterThan(best)){\n best = solution;\n }\n }\n return best;\n } finally {\n executor.shutdown();\n }\n }", "public static long arrayManipulation(int n, List<List<Integer>> queries) {\r\n // Create an array of n+1 elements, all set to 0\r\n long resultArray[] = new long[n+1];\r\n \r\n // Gets number of input queries\r\n int size = queries.size(); \r\n \r\n // Value of the max value\r\n long maxValue = 0;\r\n \r\n // Cycles through all queries\r\n for (int i = 0; i < size; i++) {\r\n List<Integer> query = queries.get(i); // Gets current query\r\n int value = query.get(2); // Gets number to be added to resultArray\r\n \r\n /* Adds number to the right indexes of resultArray: TAKES TOO MUCH TIME!\r\n for (int j = query.get(0)-1; j <= query.get(1)-1; j++) {\r\n resultArray[j] += value;\r\n \r\n // Checks if this is the biggest value\r\n if (resultArray[j] > maxValue) {\r\n maxValue = resultArray[j];\r\n }\r\n } */\r\n \r\n // Adds number to only two indexes of resultArray:\r\n resultArray[query.get(0)-1] += value; // We signal the beginning of the 'positive curve', which spans until query.get(1).\r\n resultArray[query.get(1)] -= value; // We signal the ending of the 'positive curve'.\r\n }\r\n \r\n // Gets the max value\r\n long sum = 0;\r\n for (int i = 0; i < n; i++) {\r\n sum += resultArray[i];\r\n if (sum > maxValue) {\r\n maxValue = sum;\r\n }\r\n }\r\n \r\n return maxValue;\r\n}", "public static void main(String[] args) {\n Arrayss arrayss = new Arrayss();\n arrayss.infiniteArray(new int[]{3,5,6,7,8,10,12,14,15,16,17,18,20,34,56,78,24}, 20);\n// SlidingWindow slidingWindow = new SlidingWindow();\n//// System.out.println(slidingWindow.longestSubstring(\"AAAHHIBC\", 2));\n// Strings s = new Strings();\n// s.reverseString(\"hello\");\n// Binary binary = new Binary();\n// binary.solution(1041);\n// Arrayss arrays = new Arrayss();\n//\n// arrays.rotateByK(new int[]{3,5,6,7,8}, 3);\n//\n// BinarySearch binarySearch = new BinarySearch();\n// binarySearch.search(new int[]{3,5,6,7,8}, 9);\n// System.out.println(s.palindrome(\"civic\"));\n\n// Node node1 = new Node(1);\n// Node node2 = new Node(2);\n// Node node3 = new Node(3);\n// Node node4 = new Node(4);\n\n// node1.next = node2;\n// node2.next = node3;\n// node3.next = node4;\n// node4.next = null;\n//\n// Node head = new List().reverseRecursively(node1);\n DynamicProgramming dynamicProgramming = new DynamicProgramming();\n dynamicProgramming.fibo(5);\n dynamicProgramming.recursiveStairCaseBottomUp(3, new int[]{1,3,5});\n// System.out.println( dynamicProgramming.recursiveStairCaseBottomUp(3, new int[]{1,3,5}));\n//\n// Arrays arrays = new Arrays();\n// System.out.println(arrays.infiniteArray(new int[]{1,3,5,6,7,8,9,10,12,13}, 9));\n//\n// MicrosoftQuestions microsoftQuestions = new MicrosoftQuestions();\n// System.out.println(microsoftQuestions.twoSum(new int[]{2,4,5,7,6,8}, 14)[0]);\n\n\n\n// List list = new List();\n// Node head;\n// list.insert(5);\n// list.insert(12);\n// list.insert(20);\n// list.insertAtStart(34);\n// list.show();\n\n// ArrayList<Status> statuses = new ArrayList<>();\n// Status status1 = new Status(1);\n// Status status2 = new Status(2);\n// Status status3 = new Status(3);\n// statuses.add(status1);\n// statuses.add(status2);\n// statuses.add(status3);\n//\n// ArrayList<Holder> container = new ArrayList<>();\n// Holder holder = new Holder(\"jackie\", 1);\n// Holder holder1 = new Holder(\"tosh\", 2);\n// Holder holder2 = new Holder(\"kesh\", 3);\n// Holder holder3 = new Holder(\"tev\", 4);\n// container.add(holder);\n// container.add(holder1);\n// container.add(holder2);\n// container.add(holder3);\n//\n// List<Integer> statuseses = statuses.stream()\n// .map(Status::getStatus)\n// .collect(Collectors.toList());\n//\n// List<Holder> res = container.stream()\n// .filter(e -> !statuseses.contains(e.getStatus()))\n// .collect(Collectors.toList());\n//\n// res.forEach(e -> System.out.println(e.name));\n\n\n\n\n }", "private static int distance(ArrayList<Integer>[] adj, ArrayList<Integer>[] cost, int s, int t) {\n\n Set<Integer> visited = new HashSet<>(); //option 1\n Map<Integer, Integer> distance = new HashMap<>();\n// Queue<Integer> q = new PriorityQueue<>(11, (o1, o2) -> { //option 0\n// Integer d1 = distance.get(o1); //option 0\n// Integer d2 = distance.get(o2); //option 0\n Queue<Map.Entry<Integer, Integer>> q = new PriorityQueue<>(11, (o1, o2) -> { //option 1\n Integer d1 = o1.getValue(); //option 1\n Integer d2 = o2.getValue(); //option 1\n\n if (Objects.equals(d1, d2)) return 0;\n if (d1 == null) return 1;\n if (d2 == null) return -1;\n\n return d1 - d2;\n });\n\n distance.put(s, 0);\n// q.addAll(IntStream.range(0, adj.length).boxed().collect(Collectors.toList())); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(s, 0)); //option 1\n\n while (!q.isEmpty()) {\n// int u = q.remove(); //option 0\n int u = q.remove().getKey(); //option 1\n\n if (u == t) {\n Integer dist = distance.get(u);\n if (dist == null) return -1;\n return dist;\n }\n\n if (visited.contains(u)) continue; //option 1\n visited.add(u); //option 1\n\n List<Integer> adjList = adj[u];\n List<Integer> costList = cost[u];\n for (int i = 0; i < adjList.size(); i++) {\n int v = adjList.get(i);\n int w = costList.get(i);\n Integer dist = distance.get(v);\n Integer newDist = distance.get(u);\n if (newDist != null) newDist += w;\n\n if (newDist != null && (dist == null || dist > newDist)) {\n //relax\n distance.put(v, newDist);\n// q.remove(v); //option 0\n// q.add(v); //option 0\n q.add(new AbstractMap.SimpleImmutableEntry<>(v, distance.get(v))); //option 1\n }\n }\n }\n\n return -1;\n }", "static long solve(long[] d) {\n int len = d.length;\n long[] dp = new long[len];\n\n Set<Long> set = new HashSet<>();\n\n for (int index1 = len - 1; index1 >= 0; index1--) {\n int count = 0;\n for (int index2 = index1 + 1; index2 < len; index2++) {\n if (d[index2] > d[index1]) {\n if( set.contains(d[index2] ) )continue;\n set.add(d[index2]);\n count++;\n }\n }\n set = new HashSet<>();\n dp[index1] = count;\n }\n\n long res = 0;\n Set<Long> distinct = new HashSet<>();\n for (int index1 = 0; index1 < len; index1++) {\n long curr = d[index1];\n if (distinct.contains(curr)) {\n continue;\n } else distinct.add(curr);\n for (int index2 = index1 + 1; index2 < len; index2++) {\n if (d[index2] > curr) {\n if (set.contains(d[index2])) continue;\n res += dp[index2];\n set.add(d[index2]);\n }\n }\n set = new HashSet<>();\n }\n\n return res;\n\n }", "@Override\n \tpublic Solution solve() {\n \t\tfor (int i = 0; i < n; i++) {\n \t\t\tnest[i] = generator.getSolution();\n \t\t}\n \n \t\tfor (int t = 0; t < maxGeneration; t++) { // While (t<MaxGeneration) or\n \t\t\t\t\t\t\t\t\t\t\t\t\t// (stop criterion)\n \t\t\t// Get a cuckoo randomly (say, i) and replace its solution by\n \t\t\t// performing random operations;\n \t\t\tint i = r.nextInt(n);\n \t\t\tSolution randomNest = nest[i];\n \t\t\t//FIXME: randomNest = solutionModifier.modify(nest[i]);\n \n \t\t\t// Evaluate its quality/fitness\n \t\t\tint fi = randomNest.f();\n \n \t\t\t// Choose a nest among n (say, j) randomly;\n \t\t\tint j = r.nextInt(n);\n \t\t\tint fj = f[j];\n \n \t\t\tif (fi > fj) {\n \t\t\t\tnest[i] = randomNest;\n \t\t\t\tf[i] = fi;\n \t\t\t}\n \n \t\t\tsort();\n \t\t\t// A fraction (pa) of the worse nests are abandoned and new ones are built;\n\t\t\tfor(i = n-toAbandon; i<n; i++) {\n \t\t\t\tnest[i] = generator.getSolution();\n \t\t\t}\n \t\t\t\n \t\t\t// Rank the solutions/nests and find the current best;\n \t\t\tsort();\n \t\t}\n \n \t\treturn nest[0];\n \t}", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint t = scanner.nextInt();\n\t\tfor (int i = 0; i < t; i++) {\n\t\t\tint n = scanner.nextInt();\n\t\t\tdp = new int [n+1];\n\t\t\tArrays.fill(dp, -1);\n\t\t\tfor (int j = 1; j <= n; j++) {\n\t\t\t\tint v = scanner.nextInt();\n\t\t\t\tfind(1, j, v);\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\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 void main(String[] args) {\n\r\n\t\tint n,i,j;\r\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tn=sc.nextInt();\r\n\t\t//System.out.println(\"n is: \"+n);\r\n\t\tBigInteger [] arr=new BigInteger[n];\r\n\t\tBeast be=new Beast();\r\n\t\tfor( i=0;i<n;i++)\r\n\t\t{arr[i]=BigInteger.valueOf(0);\r\n\t\t\tint h=sc.nextInt();\r\n\t\t\tif(h<3)\r\n\t\t\t{\r\n\t\t\t\tarr[i]=new BigInteger(\"-1\");\r\n\t\t\t}\r\n\t\t\telse if((h%3)==0)\r\n\t\t\t{\r\n\t\t\t\tfor(j=0;j<h;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tlong x=5*(be.power(10,j));\r\n\t\t\t\t\tarr[i]=arr[i].add(BigInteger.valueOf(x));\r\n\t\t\t\t//\tSystem.out.println(arr[i]);\r\n\t\t\t\t}\r\n\t\t\t\t//System.out.println(arr[i]);\r\n\t\t\t}\r\n\t\t\telse if((h%5)==0)\r\n\t\t\t{\r\n\t\t\t\tfor(j=0;j<h;j++)\r\n\t\t\t\t{\r\n\t\t\t\t\tlong x=3*(be.power(10,j));\r\n\t\t\t\t\tarr[i]=arr[i].add(BigInteger.valueOf(x));\r\n\t\t\t\t//\tSystem.out.println(arr[i]);\r\n\t\t\t\t}\r\n\t\t\t\t//System.out.println(arr[i]);\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tint o=3;\r\n\t\t\t\twhile(o<h)\r\n\t\t\t\t{\r\n\t\t\t\t\tif((h-o)%5==0)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\t//System.out.println(\"O is:\"+o+\"\\nH is:\"+h);\r\n\t\t\t\t\t\tfor(j=h;j>h-o;j--)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlong x=5*(be.power(10,j-1));\r\n\t\t\t\t\t\t\tarr[i]=arr[i].add(BigInteger.valueOf(x));\r\n\t\t\t\t\t\t//\tSystem.out.println(\"array is:\"+arr[i]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfor(j=h-o-1;j>=0;j--)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tlong x=3*(be.power(10,j));\r\n\t\t\t\t\t\t\tarr[i]=arr[i].add(BigInteger.valueOf(x));\r\n\t\t\t\t\t\t//\tSystem.out.println(\"array is:\"+arr[i]);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\to=h;\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\to=o+3;}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor(i=0;i<n;i++)\r\n\t\t{\r\n\t\t\tSystem.out.println(arr[i]);\r\n\t\t}\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n int n = 4;\n long[] coins1 = {1, 2, 3};\n runTestCase(n, coins1);\n /*\n Number of ways: 4\n Recursive: 4,595 ns\n Dynamic programming: 538,243 ns\n */\n\n // Test 2\n n = 10;\n long[] coins2 = {2, 3, 5, 6};\n runTestCase(n, coins2);\n /*\n Number of ways: 5\n Recursive: 6,057 ns\n Dynamic programming: 91,954 ns\n */\n\n // Test 3\n n = 100;\n long[] coins3 = {2, 3, 5, 6};\n runTestCase(n, coins3);\n /*\n Number of ways: 1163\n Recursive: 888,360 ns\n Dynamic programming: 3,817,729 ns\n */\n\n // Test 4\n n = 1000;\n long[] coins4 = {2, 3, 5, 6};\n runTestCase(n, coins4);\n /*\n Number of ways: 948,293\n Recursive: 804,397,007 ns\n Dynamic programming: 72,303,683 ns\n */\n\n // Test 5\n n = 2000;\n long[] coins5 = {2, 3, 5, 6};\n runTestCase(n, coins5);\n /*\n Number of ways: 7,496,697\n Recursive: 12,104,041,809 ns\n Dynamic programming: 112,009,974 ns\n */\n }", "public int[] solver(int startPlayerId, int curplayer, int[][] oneP, int[][][] memory, int count) {\n\r\n int[][] one = oneP.clone(); // OnePlay Input\r\n int[] k; // onePlay points\r\n int j = curplayer;\r\n int[][][] m = memory.clone();\r\n int[] minCard = new int[3];\r\n int[] t;\r\n ArrayList<int[]> store = new ArrayList<>();\r\n minCard[2] = 100000;\r\n t = new int[3];\r\n for (int i = 0; i < 4; i++) { // 4 types of cards\r\n for (int l = 2; l < cardPerPlayer + 2; l++) {\r\n if (m[j][i][l] == 1 || m[j][i][l] == 2) {\r\n one[j][0] = i;\r\n one[j][1] = l;\r\n remove(new int[] { i, l }, m);\r\n if ((j + 1) % players != startPlayerId) {\r\n t = solver(startPlayerId, (j + 1) % players, one, m, count);\r\n one[(j + 1) % players][0] = t[0];\r\n one[(j + 1) % players][1] = t[1];\r\n }\r\n // } else if ((j + 2) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 2) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // } else if ((j + 3) % players != startPlayerId) {\r\n // t = solver(startPlayerId, (j + 3) % players, one, m, count);\r\n // one[(j + 1) % players][0] = t[0];\r\n // one[(j + 1) % players][1] = t[1];\r\n // }\r\n\r\n k = onePlay(one, startPlayerId);\r\n int curpoint = 0;\r\n if (count != cardPerPlayer - 1) { // cardPerPlayer - 1 = 12\r\n t = solver(k[0], k[0], new int[4][2], m, count++);\r\n curpoint = t[2];\r\n }\r\n\r\n if (k[0] == myID) {\r\n curpoint += k[1] + k[2] * 12;\r\n }\r\n store.add(new int[] { i, l, curpoint });\r\n if (curpoint < minCard[2]) {\r\n minCard[2] = curpoint;\r\n minCard[0] = i;\r\n minCard[1] = l;\r\n }\r\n }\r\n }\r\n }\r\n\r\n return minCard;\r\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint[] arr = new int[n+1];\n\t\tint[] list = new int[n+1];\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\tarr[i] = sc.nextInt();\n\t\t}\n\t\tlist[0] = 0;\n\t\tlist[1] = arr[1];\n\t\tif(n>=2) {\n\t\t\tlist[2] = arr[1] + arr[2];\n\t\t}\n\t\tif(n>=3) {\n\t\t\tfor(int i=3; i<=n; i++) {\n\t\t\t\tint a = arr[i] + arr[i-1] + list[i-3];\n\t\t\t\tint b = arr[i] + list[i-2];\n\t\t\t\tint c = list[i-1];\n\t\t\t\tlist[i] = Math.max(c, Math.max(a, b));\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Math.max(list[n], list[n-1]));\n\t\t\n\t}", "public static void main(String[] args) {\n\n Map<String, Integer> nyt;\n nyt = new HashMap<String, Integer>();\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt(), m = scan.nextInt();\n scan.nextLine();\n int cont = 0;\n seen = new boolean[193];\n g = new ArrayList[193];\n\n for (int i = 0; i < 193; i++) {\n g[i] = new ArrayList<Integer>();\n }\n for (int i = 0; i < n; i++) {\n String[] value = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(value[0])) {\n nyt.put(value[0], cont);\n cont++;\n }\n if (!nyt.containsKey(value[1])) {\n nyt.put(value[1], cont);\n cont++;\n }\n\n int u = nyt.get(value[0]);\n int v = nyt.get(value[1]);\n g[u].add(v);\n }\n boolean ok;\n for (int i = 0; i < m; i++) {\n ok = true;\n String[] trump = scan.nextLine().split(\" are worse than \");\n if (!nyt.containsKey(trump[0]) || !nyt.containsKey(trump[1])) {\n System.out.println(\"Pants on Fire\");\n } else {\n\n dfs(nyt.get(trump[0]));\n if (seen[nyt.get(trump[1])]) {\n System.out.println(\"Fact\");\n ok = false;\n }\n\n if (ok) {\n seen = new boolean[193];\n dfs(nyt.get(trump[1]));\n if (seen[nyt.get(trump[0])]) {\n System.out.println(\"Alternative Fact\");\n } else {\n System.out.println(\"Pants on Fire\");\n }\n\n }\n\n }\n seen = new boolean[193];\n\n }\n\n }", "@SuppressWarnings(\"Main Logic\")\n void solve() {\n n = ii();\n m = ii();\n a = iia(n);\n int from[] = new int[n - 1];\n int to[] = new int[n - 1];\n for (int i = 0; i < n - 1; i++) {\n from[i] = ii() - 1;\n to[i] = ii() - 1;\n }\n g = packU(n, from, to, n - 1);\n int[][] pars = parents3(g, 0);\n par = pars[0];\n int[] ord = pars[1];\n dep = pars[2];\n spar = logstepParents(par);\n subTree = new int[n];\n dfs(0, -1);\n pointer = 1;\n baseArray = new int[n + 1];\n chainNo = 0;\n chainInHead = new int[n];\n Arrays.fill(chainInHead, -1);\n posInBase = new int[n];\n chainInInd = new int[n];\n HLD(0, -1);\n makeTree();\n out.println(Arrays.toString(baseArray));\n out.println(Arrays.toString(a));\n for (int q = 0; q < m; q++) {\n int type = ii();\n if (type == 1) {\n int u = ii() - 1, v = ii() - 1;\n query(u, v);\n out.println(\"DONE\");\n } else {\n int u = ii(), v = ii();\n // update\n }\n }\n }", "public int solution(int[] A) {\n ArrayList<Integer> fibonacci = new ArrayList<>();\n\n fibonacci.add(0); // note: f(0) = 0 (as in the quesion)\n fibonacci.add(1);\n // note: using \"while\" is better than \"for\" (avoid errors)\n\n while (true) {\n int temp1 = fibonacci.get(fibonacci.size() - 1);\n int temp2 = fibonacci.get(fibonacci.size() - 2);\n\n fibonacci.add(temp1 + temp2);\n\n // if already bigger than length, then break;\n if (temp1 + temp2 > A.length) {\n break;\n }\n }\n\n // reverse \"List\": from big to small\n Collections.reverse(fibonacci);\n\n // use \"queue\" with \"point\"\n // point(x,y) = point(\"position\", \"number of steps\")\n ArrayList<Point> queue = new ArrayList<>();\n\n queue.add(new Point(-1, 0)); // position:-1, steps:0\n\n // index: the current index for queue element\n int index = 0;\n while (true) {\n // cannot take element from queue anymore\n if (index == queue.size()) {\n return -1;\n }\n\n // take element from queue\n Point current = queue.get(index);\n\n // from big to small\n for (Integer n : fibonacci) {\n int nextPosition = current.x + n;\n\n // case 1: \"reach the other side\"\n if (nextPosition == A.length) {\n // return the number of steps\n return current.y + 1;\n }\n\n // case 2: \"cannot jump\"\n // note: nextPosition < 0 (overflow, be careful)\n else if ((nextPosition > A.length) || (nextPosition < 0) || (A[nextPosition] == 0)) {\n // note: do nothing\n }\n\n // case 3: \"can jump\" (othe cases)\n else {\n // jump to next position, and step+1\n Point temp = new Point(nextPosition, current.y + 1);\n // add to queue\n queue.add(temp);\n\n A[nextPosition] = 0; // key point: for high performance~!!\n }\n }\n\n index++; // take \"next element\" from queue\n }\n }", "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 }", "static int recurseMaxStolenValue(int[] values,int i){\r\n\t if(i >= values.length) return 0;\r\n\t if(i == values.length -1) return values[values.length-1];\r\n\t \r\n\t return Math.max( values[i] + recurseMaxStolenValue(values,i+2)\r\n\t ,values[i+1] + recurseMaxStolenValue(values,i+3)\r\n\t );\r\n\t /*\r\n\t *Approach #2 for Recursion --> This approach won't work to convert to DP,but recursion yields right result\r\n\t */\r\n\t \r\n\t /*\r\n\t if(i >= values.length) return 0; \r\n\t int result1 = values[i]+recurseMaxStolenValue(values,i+2);\r\n\t int result2 = recurseMaxStolenValue(values,i+1);\r\n\t return (Math.max(result1,result2));\r\n\t */\r\n\t \r\n\t }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint arr[] = new int[n+1];\n\t\t\n\t\tint dp[] =new int[n+1];\n\t\t\n\t\t\n\t\tfor(int i =1; i<=n; i++){\n\t\t\tarr[i]=sc.nextInt();\n\t\t}\n\t\t\n\t\tdp[1]=arr[1];\n\t\t\n\t\tif(n>=2) {\n\t\tdp[2]=dp[1]+arr[2];\n\t\t}\n\t\t\n\t\tfor(int i=3; i<=n; i++){\n\t\t\t\n\t\t\tdp[i] = Math.max(dp[i-2]+arr[i], dp[i-3]+arr[i-1]+arr[i]);\n\t\t}\n\t\t\n\t\tSystem.out.println(dp[n]);\n\t\t\n\t}", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\t\t\n\t\tStringTokenizer st = new StringTokenizer(br.readLine());\n\t\tN = Integer.parseInt(st.nextToken());\n\t\tM = Integer.parseInt(st.nextToken());\n\t\t\n\t\tcon = new ArrayList[N+1]; conW = new ArrayList[N+1];\n\t\tD = new long[N+1];\n\t\tfor(int i =1;i<=N;i++ ){\n\t\t\tcon[i] = new ArrayList<>();\n\t\t\tconW[i] = new ArrayList<>();\n\t\t\tD [i] = Long.MAX_VALUE;\n\t\t}\n\t\t\n\t\tfor(int i=1;i<=M;i++){\n\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\tcon[a].add(b); \n\t\t\tconW[a].add(c); \n\t\t}\n\n\t\tD[1] = 0;\n\t\tfor(int i=1;i<=N;i++){\n\t\t\tif(D[i] < Long.MAX_VALUE){\n\t\t\t\tfor (int j=0;j<con[i].size();j++){\n\t\t\t\t\tint k = con[i].get(j);//i->k\n\t\t\t\t\tint w = conW[i].get(j);//i->k까지 가는데 cost\n\t\t\t\t\tD[k] = Math.min(D[k], D[i]+w);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(D[N] < Long.MAX_VALUE ? D[N] : -1);\n\n\t}", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "@Override\n\tprotected void computeWithoutTime() {\n\t\tinitShortestPaths();\n\n\t\t// Then we sort for each node v the list of terminals by the distance from v\n\t\tsortedRequiredVertices = new HashMap<Integer, TreeSet<Integer>>();\n\t\tsortRequiredVertices();\n\t\t\n\t\t// Copy of the terminals\n\t\tHashSet<Integer> req = new HashSet<Integer>(\n\t\t\t\tinstance.getRequiredVertices());\n\n\t\t// Union of all the solutions returned by the subalgorithm CH2\n\t\tHashSet<Arc> currentSol = new HashSet<Arc>();\n\n\t\t// Until all terminals are reached\n\t\twhile (req.size() > 0) {\n\n\t\t\t// We apply CH2 to reach some of the non reached terminals\n\t\t\tCouple<HashSet<Arc>, HashSet<Integer>> tree = applyCH2(req);\n\n\t\t\t// tree.first the tree returned by CH2\n\t\t\t// tree.second is the terminals of that tree\n\n\t\t\tcurrentSol.addAll(tree.first);\n\t\t\tfor (Arc a : tree.first)\n\t\t\t\tcosts.put(a, 0); // Set the cost of the arc to 0, as this arc is already used in the solution, it does not cost anything to use it again.\n\t\t\treq.removeAll(tree.second);\n\t\t}\n\n\t\t// Compute the returned solution and its cost.\n\t\tarborescence = new HashSet<Arc>();\n\t\tint c = 0;\n\t\tfor (Arc a : currentSol) {\n\t\t\tList<Arc> l = shortestPaths.get(a);\n\t\t\tif (a.getInput().equals(a.getOutput()))\n\t\t\t\tl = new ArrayList<Arc>();\n\t\t\tfor (Arc b : l) {\n\t\t\t\tarborescence.add(b);\n\t\t\t\tc += instance.getCost(b);\n\t\t\t}\n\t\t}\n\t\tcost = c;\n\t}", "int help(int n, int k, int[][] map) {\n if (n <= 0 || k < 0) return 0;\n if (0 == k) return 1;\n if (1 == k) return n - 1;\n if (map[n][k] > 0) return map[n][k];\n long sum = 0;\n for (int i = 1; i <= k; i ++) {\n for (int j = 0; j < n; j ++) {\n// System.out.println(\"i = \" + i + \", j = \" + j + \", j - i = \" + (j - i) + \", j + i = \" + (j + i) + \", f0 = \" + (n - j + i - 1) + \", f1 = \" + (n - j - i - 1) + \", k - i = \" + (k - i));\n int g = 0, g0 = 0, g1 = 0;\n if (j - i >= 0) {\n g += help(n - j + i - 1, k - i, map);\n sum += g;\n// System.out.println(\"g0 = \" + g0 + \", g1 = \" + g1 + \", g = \" + g + \", sum = \" + sum);\n// System.out.println(\"-\");\n }\n }\n\n }\n// System.out.println(\"sum = \" + sum + \" ----\");\n map[n][k] = (int)sum;\n return (int)sum;\n }", "public String solve(long n, long a, long b, long c, long d, long x0, long y0, long m)\n {\n long[] count = new long[9];\n long x = x0;\n long y = y0;\n for (long t = 0; t < n; t++)\n {\n// System.out.println(x + \", \" + y);\n int i = (int) (x % 3) * 3 + (int) (y % 3);\n count[i]++;\n x = (a * x + b) % m;\n y = (c * y + d) % m;\n }\n\n long totalCount = 0;\n for (int i1 = 0; i1 < 9; i1++)\n {\n long count1 = count[i1];\n if (count1 == 0)\n {\n continue;\n }\n count[i1]--;\n for (int i2 = i1; i2 < 9; i2++)\n {\n long count2 = count[i2];\n if (count2 == 0)\n {\n continue;\n }\n count[i2]--;\n int x1 = i1 / 3;\n int y1 = i1 % 3;\n int x2 = i2 / 3;\n int y2 = i2 % 3;\n int x3 = (3 - (x1 + x2) % 3) % 3;\n int y3 = (3 - (y1 + y2) % 3) % 3;\n int i3 = (x3 % 3) * 3 + (y3 % 3);\n long count3 = count[i3];\n if (i3 >= i2 && count3 > 0)\n {\n // either i1==i2==i3 OR i1!=i2!=i3; you can never have only two i's the same.\n if (i1 == i2 && i2 == i3)\n {\n totalCount += calcCombinations(count1);//the first count value is the genuine count for that x,y coordinate.\n }\n else\n {\n totalCount += count1 * count2 * count3;\n }\n }\n count[i2]++;\n }\n count[i1]++;\n }\n\n return String.valueOf(totalCount);\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\r\n\t\t\r\n\t\tint T = sc.nextInt();\r\n\t\t\r\n\t\tfor (int z = 1; z <= T; z++) {\r\n\t\t\tint N = sc.nextInt();\r\n\t\t\tint[] input = new int[N+1];\r\n\t\t\t\r\n\t\t\tfor (int j = 1; j <= N; j++) {\r\n\t\t\t\tinput[j] = sc.nextInt();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tint[] weight = new int[N+1];\r\n\t\t\tint[] memWeight = new int[N+1];\r\n\t\t\t\r\n\t\t\tint cnt = 1;\r\n\t\t\tweight[1] = 1;\r\n\t\t\tmemWeight[1] = input[1]; \r\n\t\t\tfor (int j = 2; j <= N; j++) {\r\n\t\t\t\tfor (int k = cnt; k >= 1 ; k--) {\r\n\t\t\t\t\tif(input[j] > memWeight[k] && k == cnt) {\r\n\t\t\t\t\t\tmemWeight[++cnt] = input[j];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(input[j] > memWeight[k] && k < cnt) {\r\n\t\t\t\t\t\tmemWeight[k+1] = input[j];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(k == 1) {\r\n\t\t\t\t\t\tmemWeight[k] = input[j] < memWeight[k] ? input[j] : memWeight[k];\r\n\t\t\t\t\t\tweight[j] = cnt;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// result\r\n\t\t\tint maxV = -1;\r\n\t\t\tfor (int i = 1; i <= N; i++) {\r\n\t\t\t\tif(maxV < weight[i]) {\r\n\t\t\t\t\tmaxV = weight[i];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"#\"+z+\" \"+maxV);\r\n\t\t}\r\n\t\t\r\n\t\tsc.close();\r\n\t}", "public static void main(String[] args) throws Exception {\n \n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n \n long[] sp = new long[n+1];\n long[] bl = new long[n+1];\n \n sp[1] = 1;\n bl[1] =1;\n \n \n for(int i = 2; i < n+1; i++){\n sp[i] = sp[i-1] + bl[i-1];\n bl[i] = sp[i-1];\n }\n \n long way = sp[n] + bl[n];\n long bothWay = way*way;\n \n System.out.println(bothWay);\n \n }", "public static void find() {\n Scanner sc = new Scanner(System.in);\n int N = sc.nextInt();\n sc.nextLine();\n\n int[] a = new int[N];\n\n for (int i = 0; i < N; i++) {\n a[i] = sc.nextInt();\n }\n // build a map of relationships\n\n Map<Integer,Integer> map = new HashMap<Integer,Integer>();\n\n for (int i = 0; i < N; i++) {\n map.put(i+1,a[i]);\n }\n\n for (int i = 1; i <=N ; i++) {\n if(!map.containsValue(i)){\n System.out.print(i + \" \");\n }\n }\n }", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in); //scanner initialization\n String []inputs = in.nextLine().split(\",\");// [5,2]\n int N = Integer.parseInt(inputs[0]);\n int K = Integer.parseInt(inputs[1]);\n String []itemPrices = in.nextLine().split(\" \"); //prices of the items are read.\n long []prices = new long[itemPrices.length];\n for (int i=0;i<prices.length; i++) { //N\n prices[i] = Long.parseLong(itemPrices[i]);\n }\n Arrays.sort(prices); //sorting NLogN\n long result = 0;\n for (int i=2; i<K+2; i++) { //Ktimes\n result = result + prices[i];\n }\n System.out.println(result);\n in.close();\n\n //Time Complexity: O(N+NLogN+K) < O(NLogN+2N)=> O(N*(2+LOGN)) => O(NLOGN)\n }", "public int fib(int n) {\n// // 法一:记忆化递归\n// if (n <= 1) {\n// return n;\n// }\n// if (cache[n] != 0) {\n// return cache[n];\n// }\n// cache[n] = (fib(n - 1) + fib(n - 2)) % 1000000007;\n// return cache[n];\n// // 法二:动态规划\n// if (n == 0 || n == 1) {\n// return n;\n// }\n// int[] dp = new int[n + 1];\n// dp[0] = 0; dp[1] = 1;\n// for (int i = 2; i <= n; i++) {\n// dp[i] = dp[i - 1] + dp[i - 2];\n// dp[i] = dp[i] % 1000000007;\n// }\n// return dp[n];\n // 动态规划,优化空间\n if (n == 0 || n == 1) {\n return n;\n }\n int a = 0, b = 1, sum = 0;\n for (int i = 2; i <= n; i++) {\n sum = (a + b) % 1000000007;\n a = b;\n b = sum;\n }\n return sum;\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 void main(String[] args) {\n /* *************** */\n /* * QUESTION 7 * */\n /* *************** */\n /* *************** */\n\n for(double p=0; p<1; p+=0.1){\n for(double q=0; q<1; q+=0.1){\n int res_1 = 0;\n int res_2 = 0;\n for(int i=0; i<100; i++){\n Graph graph_1 = new Graph();\n graph_1.generate_full_symmetric(p, q, 100);\n //graph_2.setVertices(new ArrayList<>(graph_1.getVertices()));\n Graph graph_2 = (Graph) deepCopy(graph_1);\n res_1+=graph_1.resolve_heuristic_v1().size();\n res_2+=graph_2.resolve_heuristic_v2();\n }\n res_1/=100;\n System.out.format(\"V1 - f( %.1f ; %.1f) = %s \\n\", p, q, res_1);\n res_2/=100;\n System.out.format(\"V2 - f( %.1f ; %.1f) = %s \\n\", p, q, res_2);\n }\n }\n\n }", "private static void testAlgorithmOptimality() {\n AlgoFunction testAlgo = SG16Algorithm::new;\n\n //printSeed = false; // keep this commented out.\n Random seedRand = new Random(1241);\n int initial = seedRand.nextInt();\n for (int i=0; i<50000000; i++) {\n int sizeX = seedRand.nextInt(150) + 5;\n int sizeY = seedRand.nextInt(150) + 5;\n int seed = i+initial;\n int ratio = seedRand.nextInt(50) + 5;\n \n int max = (sizeX+1)*(sizeY+1);\n int p1 = seedRand.nextInt(max);\n int p2 = seedRand.nextInt(max-1);\n if (p2 == p1) {\n p2 = max-1;\n }\n \n int sx = p1%(sizeX+1);\n int sy = p1/(sizeX+1);\n int ex = p2%(sizeX+1);\n int ey = p2/(sizeX+1);\n\n double restPathLength = 0, normalPathLength = 0;\n try {\n GridGraph gridGraph = DefaultGenerator.generateSeededGraphOnly(seed, sizeX, sizeY, ratio);\n for (int iii=0;iii<300;++iii) Utility.generatePath(testAlgo, gridGraph, seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1),seedRand.nextInt(sizeX+1),seedRand.nextInt(sizeY+1));\n int[][] path = Utility.generatePath(testAlgo, gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n restPathLength = Utility.computePathLength(gridGraph, path);\n \n path = Utility.computeOptimalPathOnline(gridGraph, sx, sy, ex, ey);\n path = Utility.removeDuplicatesInPath(path);\n normalPathLength = Utility.computePathLength(gridGraph, path);\n }catch (Exception e) {\n e.printStackTrace();\n System.out.println(\"EXCEPTION OCCURRED!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n }\n \n if (Math.abs(restPathLength - normalPathLength) > 0.000001f) {\n //if ((restPathLength == 0.f) != (normalPathLength == 0.f)) {\n System.out.println(\"============\");\n System.out.println(\"Discrepancy Discovered!\");\n System.out.println(\"Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Start = \" + sx + \",\" + sy + \" End = \" + ex + \",\" + ey);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n System.out.println(restPathLength / normalPathLength);\n System.out.println(\"============\");\n throw new UnsupportedOperationException(\"DISCREPANCY!!\");\n } else {\n if (i%1000 == 999) {\n System.out.println(\"Count: \" + (i+1));\n System.out.println(\"OK: Seed = \" + seed +\" , Ratio = \" + ratio + \" , Size: x=\" + sizeX + \" y=\" + sizeY);\n System.out.println(\"Actual: \" + restPathLength + \" , Expected: \" + normalPathLength);\n }\n }\n }\n }", "public static void main(String[] args) {\n int[] example1 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 2, 4, 6, 8, 10, 12, 14, 16, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target1 = 59;\n int[] example2 = {2, 4, 6, 8, 10, 12, 14, 16, 18, 1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30};\n int target2 = 59;\n int[] example3 = {1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 2, 4, 6, 8, 10, 12, 14, 16, 18};\n int target3 = 34;\n\n int[] result1;\n int[] result2;\n int[] result3;\n\n // 1.Brute Force\n System.out.println(\"Brute Force start\");\n long startBF = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Brute Force result1 \", result1);\n println(\"Brute Force result2 \", result2);\n println(\"Brute Force result3 \", result3);\n System.out.println(\"Brute Force costs: \" + (System.currentTimeMillis() - startBF));\n\n // 2.Two Pass Hash Table\n System.out.println(\"Two Pass Hash Table start\");\n long startTP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startTP));\n\n // 3.One Pass Hash Table\n System.out.println(\"One Pass Hash Table start\");\n long startOP = System.currentTimeMillis();\n result1 = twoSum_1(example1, target1);\n result2 = twoSum_2(example2, target2);\n result3 = twoSum_3(example3, target3);\n println(\"Two Pass Hash Table start result1 \", result1);\n println(\"Two Pass Hash Table start result2 \", result2);\n println(\"Two Pass Hash Table start result3 \", result3);\n System.out.println(\"Two Pass Hash Table costs: \" + (System.currentTimeMillis() - startOP));\n }", "public static void main(String[] args) {\n int N, Q;\n int a, x, y;\n int lastAnswer = 0;\n\n Scanner sc = new Scanner(System.in);\n N = sc.nextInt();\n Q = sc.nextInt();\n\n ArrayList<ArrayList<Integer>> seqList = new ArrayList<ArrayList<Integer>>(N);\n ArrayList<Integer> seq;\n for (int i = 0; i < N; i++) {\n seq = new ArrayList<Integer>();\n seqList.add(seq);\n }\n for (int i = 0; i < Q; i++) {\n seq = new ArrayList<Integer>();\n a = sc.nextInt();\n x = sc.nextInt();\n y = sc.nextInt();\n\n seq = seqList.get((x ^ lastAnswer) % N);\n if (a == 1) {\n seq.add(y);\n } else if(a == 2) {\n lastAnswer = seq.get(y % seq.size());\n System.out.println(lastAnswer);\n }\n\n }\n }", "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}", "int catalanDP(int n) {\n int[] catalan = new int[n+1]; \n \n // Initialize first two values in table \n catalan[0] = catalan[1] = 1; \n\n // Fill entries in catalan[] using recursive formula \n for (int i=2; i<=n; i++) { \n catalan[i] = 0; \n for (int j=0; j<i; j++) \n catalan[i] += catalan[j] * catalan[i-j-1]; \n } \n \n // Return last entry \n return catalan[n]; \n }", "public int kSum(int[] A, int k, int target) {\n\t\tint res=0;\r\n\t\t//考虑k=1的情况\r\n//\t\tif (k==1) {\r\n//\t\t\tfor(int i=0;i<A.length;i++) {\r\n//\t\t\t\tif (A[i]==target) {\r\n//\t\t\t\t\tres++;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t\treturn res;\r\n//\t\t}\r\n//\t\tint sum_k_1=0;\r\n//\t\tint sum=target-sum_k_1;\r\n//\t\tif (k>1 && k<A.length) {\r\n//\t\t\tfor(int i=0;i<A.length-1;i++) {\r\n//\t\t\t\tfor(int j=i+1;j<A.length;j++) {\r\n//\t\t\t\t\t\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n//\t\t}\r\n\t\t//动态规划\r\n\t\tint n=A.length;\r\n\t\tint[][][] f=new int[n+1][k+1][target+1];\r\n\t\tfor(int i=0;i<n+1;i++) {\r\n\t\t\tf[i][0][0]=1;\r\n\t\t}\r\n\t\tfor(int i=1;i<=n;i++) {\r\n\t\t\tfor(int j=1;j<=k && j<=i;j++) {\r\n\t\t\t\tfor(int t=1;t<=target;t++) {\r\n\t\t\t\t\tf[i][j][t]=0;\r\n\t\t\t\t\tif (t>=A[i-1]) {\r\n\t\t\t\t\t\tf[i][j][t]=f[i-1][j-1][t-A[i-1]];\r\n\t\t\t\t\t}\r\n\t\t\t\t\tf[i][j][t]+=f[i-1][j][t];\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn f[n][k][target];\r\n }", "public static void main(String[] args) {\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 3, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 3, 5, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, \"cartellainesistente\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, \"strategies\")));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(2, 2, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(3, 3, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(5, 5, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(6, 6, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 3, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, true, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(7, 7, 2, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, false, null)));\n tryOrPrintStackTrace(() -> measureTime(() -> testOptimalMNK(4, 4, 4, true, null)));\n measureTime(()->checkInterruptSequential(4, 4, 3, false));\n measureTime(()->checkInterruptSequential(4, 4, 3, true));\n }", "public static void main(String[] args) {\n\t\tint width=35;\n\t\tint length=31;\n\t\tlong[][] dp = new long[width+1][length+1];\n\t\tdp[0][0]=0;\n\t\tfor(int i=1;i<length+1;i++){\n\t\t\tif(badCheck(0,i,0,i-1)){\n\t\t\t\tdp[0][i]=0;\n\t\t\t\tfor(int k=i+1;k<length+1;k++){\n\t\t\t\t\tdp[0][k]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[0][i]=1;\n\t\t\t}\n\t\t}\n\t\tfor(int i=1;i<width+1;i++){\n\t\t\tif(badCheck(i,0,i-1,0)){\n\t\t\t\tdp[i][0]=0;\n\t\t\t\tfor(int k=i+1;k<width+1;k++){\n\t\t\t\t\tdp[k][0]=0;\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdp[i][0]=1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=1;i<=width;i++){\n\t\t\tfor(int j=1;j<=length;j++){\n\t\t\t\tif(!badCheck(i-1,j,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i-1][j];\n\t\t\t\t}\n\t\t\t\tif(!badCheck(i,j-1,i,j)){\n\t\t\t\t\tdp[i][j]+=dp[i][j-1];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//System.out.println(dp[6][6]);\n\t\t//System.out.println(dp[2][2]);\n\t\t//System.out.println(dp[1][1]);\n\t\tSystem.out.println(dp[35][31]);\n\t}", "public static int[] mostCompetitive(int[] nums, int k) {\n int[] copy = Arrays.copyOf(nums, nums.length); // 复制一个数组\n Arrays.sort(copy); // 排序\n for (int value : copy) { // 挨个顺序作为最小竞争子序列的头元素\n for (int j = 0; j < nums.length; j++) {\n if (nums[j] == value) {\n // 判断后续元素个数可够k长度\n if(k == 1){\n int[] ret = new int[1];\n ret[0] = nums[j];\n return ret;\n }\n if (j + k > nums.length) break;\n else if (j + k == nums.length) return Arrays.copyOfRange(nums, j, nums.length);\n else {\n int[] child = Arrays.copyOfRange(nums, j + 1, nums.length);\n int[] childMost = mostCompetitive(child, k - 1);\n System.out.println(Arrays.toString(childMost));\n // 取前k-1即为最优解\n int[] ret = new int[k];\n ret[0] = nums[j];\n System.arraycopy(childMost, 0, ret, 1, k - 1);\n System.out.println(Arrays.toString(ret));\n return ret;\n }\n }\n }\n }\n // [10, 23, 61, 62, 34, 41, 80, 25, 91, 43, 4, 75, 65, 13, 37, 41, 46, 90, 55, 8, 85, 61, 95, 71]\n // [10, 23, 61, 62, 34, 41, 80, 25, 91, 43, 4, 75, 65, 13, 37, 41, 46, 90, 55, 8, 85, 61, 95, 71]\n /* 2\n 4 3 3 5 4 9 6 3\n 3\n 3 5 4 9 6 3\n 2\n 5 4 9 6\n 1\n */\n return Arrays.copyOf(nums, k); // 这步不会执行\n }" ]
[ "0.63012224", "0.6216663", "0.6130091", "0.6070631", "0.5997837", "0.59102243", "0.5879966", "0.5876093", "0.5852768", "0.57877064", "0.5772572", "0.57603055", "0.57585645", "0.5730384", "0.57279944", "0.5727617", "0.57193565", "0.5715586", "0.5691887", "0.5691367", "0.5680024", "0.5664112", "0.56596464", "0.562969", "0.56274885", "0.56263113", "0.56158423", "0.56125224", "0.55917853", "0.55832934", "0.55735654", "0.5572793", "0.5572276", "0.5570739", "0.55679464", "0.5567262", "0.55585915", "0.5543068", "0.55392855", "0.5538451", "0.5529146", "0.5528486", "0.5517196", "0.5513421", "0.55031407", "0.549705", "0.5490982", "0.54852664", "0.54797715", "0.54788214", "0.5475867", "0.5458165", "0.5457978", "0.54565346", "0.54498553", "0.5446651", "0.5446603", "0.5439875", "0.5439551", "0.54393506", "0.54380274", "0.5434833", "0.54298407", "0.5429057", "0.541965", "0.54120404", "0.5408343", "0.5402853", "0.5384496", "0.5381056", "0.5376632", "0.53716487", "0.5349148", "0.5347818", "0.5344292", "0.5342986", "0.5341072", "0.53406954", "0.5326238", "0.53189707", "0.5314684", "0.53059", "0.5305728", "0.53048235", "0.5299852", "0.52991706", "0.5297842", "0.5295809", "0.5295806", "0.5292051", "0.52909636", "0.52870786", "0.52816194", "0.5280938", "0.5280545", "0.52791524", "0.5278641", "0.52757025", "0.52756387", "0.52746737", "0.52709013" ]
0.0
-1
Returns number of children for DOM element with given id.
private int getNumberOfChildren(String elemId) { return selenium.getXpathCount("//*[@id='" + elemId + "']/*").intValue(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "int getNumberOfChildren(int nodeID){\n check(nodeID);\n return nodes_[nodeID].size_;\n }", "@DISPID(11)\n\t// = 0xb. The runtime will prefer the VTID if present\n\t@VTID(20)\n\tint childrenCount();", "public Collection<EfoTermCount> getTermChildren(String id) {\n List<EfoTermCount> result = new ArrayList<EfoTermCount>();\n if (id == null) {\n for (EfoTerm root : efo.getRoots()) {\n Long count = getCount(root.getId());\n if (count != null)\n result.add(new EfoTermCount(root, count));\n }\n } else {\n Collection<EfoTerm> children = efo.getTermChildren(id);\n if (children != null)\n for (EfoTerm term : children) {\n Long count = getCount(term.getId());\n if (count != null)\n result.add(new EfoTermCount(term, count));\n }\n }\n return result;\n }", "int childrenSize();", "public int getLengthOfChildren() {\n int length = 0;\n IBiNode childTmp;\n\n if (this.child != null) {\n // length of first child\n length += this.child.getLength();\n\n childTmp = this.child.getSibling();\n while (childTmp != null) {\n // length of 2nd - nth children\n length += childTmp.getLength();\n childTmp = childTmp.getSibling();\n }\n\n }\n\n return length;\n }", "public int countChildren() {\n return this.children.size();\n }", "public int countChildren() {\n return this.children.size();\n }", "int childCount(){\n return this.children.size();\n }", "int getChildCount();", "public int getChildCount();", "public int numberOfChildren() {\n\t\tif(children == null) return 0;\n\t\telse return children.size();\n\t}", "public int getChildCount() {\r\n if (_children == null) {\r\n return 0;\r\n }\r\n return _children.size();\r\n }", "public abstract int getNumChildren();", "public static int size(Node root){\r\n int count = 0;\r\n for(int i=0; i<root.children.size(); i++){\r\n Node child = root.children.get(i);\r\n count += size(child);\r\n }\r\n return count + 1;\r\n }", "public int getChildCount() {return children.size();}", "@Override\n public int getChildrenCount(String name)\n {\n return children.getSubNodes(name).size();\n }", "public int childrenSize()\r\n\t{\r\n\t\treturn this.children.size();\r\n\t}", "public int getChildIndexWithID(int id) {\r\n\t\tif (children == null)\r\n\t\t\treturn -1;\r\n\t\tint i = 0;\r\n\t\tfor (estNode child : children) {\r\n\t\t\tif (child.itemID == id) {\r\n\t\t\t\treturn i;\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t\treturn -1;\r\n\t}", "public int getChildCount()\n/* */ {\n/* 500 */ return this.children.size();\n/* */ }", "public int getChildCount() {\n return this.children.size();\n }", "@Override\n public int getChildrenCount()\n {\n return children.getSubNodes().size();\n }", "@Override\n public int getNumChildren() {\n\t return this._children.size();\n }", "int sizeOf(int node){\n\t\tint counter =1;\r\n\t\tfor (int i=0;i<idNode.length;i++){ //Count all node with the same parent\r\n\t\t\tif (idNode[i]==node){\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn counter;\r\n\t}", "public Collection<EfoTermCount> getTreeDownToTerm(String id) {\n\n for (EfoTerm found : efo.searchTerm(id))\n if (getCount(found.getId()) != null) {\n Collection<EfoTerm> tree = efo.getTreeDownTo(found.getId());\n\n List<EfoTermCount> result = new ArrayList<EfoTermCount>();\n if (tree != null) {\n for (EfoTerm term : tree) {\n Long count = getCount(term.getId());\n if (count != null) {\n result.add(new EfoTermCount(term, count));\n }\n }\n }\n return result;\n }\n return getTermChildren(null);\n }", "@Override\n\tpublic int countByParent(String id) {\n\t\treturn menuMapper.countByParent(id);\n\t}", "@Override\n\tpublic int getChildrenNum() {\n\t\treturn children.size();\n\t}", "@Override\n public final int size() {\n return children.size();\n }", "public int getAllChildrenNumber(String path) throws KeeperException.NoNodeException {\n return dataTree.getAllChildrenNumber(path);\n }", "List<HNode> getChildren(Long id);", "public int getChildCount()\n {\n return mChildren.length; // The indexes and constraints\n }", "public int getChildCount () {\n return childCount;\n }", "@Override\n\tpublic int size() {\n\t\tmodCount = root.numChildren();\n\t\treturn modCount;\n\t}", "int getChildrenCount(int groupPosition);", "int getNumXTiles(Long id) throws RemoteException;", "private int numChildren(int index){\n\t\t\n\t\tint children = 0;\n\t\t\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 1] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\tif((index*2) + 1 <= this.currentSize){\n\t\t\tif(array[(index * 2) + 2] != null){\n\t\t\t\tchildren++;\n\t\t\t}\n\t\t}\n\t\treturn children;\n\t}", "private int countChildElements(final Node parent)\r\n {\r\n NodeList listOfChildren = parent.getChildNodes();\r\n return listOfChildren.getLength();\r\n }", "public int getChildCount() { return data.length; }", "public int getTotalChildren() {\n\t\treturn _nTotalChildren;\n\t}", "public int size() {\r\n\t\tint i = 0;\r\n\t\tif (this.value != 0) {\r\n\t\t\ti++;\r\n\t\t\tif(this.leftChild != null) {\r\n\t\t\t\ti = i + this.leftChild.size();\r\n\t\t\t}\r\n\t\t\tif(rightChild != null){\r\n\t\t\t\ti = i + this.rightChild.size();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn i; \r\n\t}", "int getParentIdCount();", "@Override\n\tpublic Long findChildEntityCount(String entityId) {\n\t\treturn parentEntityNodeRepository.countByParentIdAndActive(entityId, true);\n\t}", "@Override\r\n\tpublic int getNumberOfDescendants(Node<T> node) {\r\n\t\tif (node.getChildren() != null) {// Si tiene hijos\r\n\t\t\treturn (node.getChildren()).size();// El tamaņo de la lista de hijos\r\n\t\t}\r\n\t\treturn 0; // Si no tiene entonces 0\r\n\t}", "public int countChildren(Nodo t) {\r\n int count = 0;\r\n if(t == null)\r\n return 0;\r\n if(t.getLeft() != null)\r\n count++;\r\n count += countChildren(t.getLeft());\r\n if(t.getRight() != null)\r\n count++;\r\n count += countChildren(t.getRight());\r\n return count;\r\n }", "public int countByid_(long id_);", "public StringWithCustomFacts getNumChildren() {\n return numChildren;\n }", "public IntegerArray getDOMNodeById(String id) {\n\tIntegerArray nodes = null;\n\n\tif (_enhancedDOM != null) {\n\t int ident = _enhancedDOM.getElementById(id);\n\n\t if (ident != DTM.NULL) {\n\t\tInteger root = _enhancedDOM.getDocument();\n\t\tMap&lt;String, IntegerArray&gt; index = _rootToIndexMap.get(root);\n\n\t\tif (index == null) {\n\t\t index = new HashMap&lt;&gt;();\n\t\t _rootToIndexMap.put(root, index);\n\t\t} else {\n\t\t nodes = index.get(id);\n\t\t}\n\n\t\tif (nodes == null) {\n\t\t nodes = new IntegerArray();\n\t\t index.put(id, nodes);\n\t\t}\n\n\t\tnodes.add(_enhancedDOM.getNodeHandle(ident));\n\t }\n\t}\n\n\treturn nodes;\n }", "protected int numChildren() {\r\n return 3;\r\n }", "public static int height(Node root){\r\n int ht = -1;\r\n for(Node child : root.children){\r\n ht = Math.max(ht, height(child));\r\n }\r\n return ht + 1;\r\n }", "public int size() {\n\t\treturn root.count();\n\t}", "public abstract int getMaxChildren();", "public int size() {\n int count = terminal ? 1 : 0;\n for (Set<String> child : children)\n if (child != null) count += child.size();\n return count;\n }", "abstract long calculateChildCount() throws TskCoreException;", "int numChildren(Position<E> p) throws IllegalArgumentException;", "@Override\n public int getChildrenCount(int groupPosition) {\n return children[groupPosition].length;\n }", "@FameProperty(name = \"numberOfChildren\", derived = true)\n public Number getNumberOfChildren() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public int childListCount() // 페이징, 검색 뺐음, A반 기준 -> 나중에 반 생성 시 변경하기. ★학부모 정보 제외함 (회원가입안할 시 에러)\r\n\t\t\tthrows Exception {\r\n\t\tConnection conn = null;\r\n\t\tPreparedStatement pstmt = null;\r\n\t\tResultSet rs = null;\r\n\t\tint result = 0;\r\n\r\n\t\ttry {\r\n\t\t\tconn = getConnection();\r\n\r\n\t\t\tpstmt = conn.prepareStatement(\"select count(child_num) from child where child_class = 'A'\");\r\n\t\t\trs = pstmt.executeQuery();\r\n\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tresult = rs.getInt(1);\r\n\t\t\t}\r\n\t\t} catch (Exception ex) {\r\n\t\t\tex.printStackTrace();\r\n\t\t} finally {\r\n\t\t\tif (rs != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\trs.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (pstmt != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tpstmt.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t\tif (conn != null)\r\n\t\t\t\ttry {\r\n\t\t\t\t\tconn.close();\r\n\t\t\t\t} catch (SQLException ex) {\r\n\t\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "@Override\n\tpublic Integer count(Integer id) {\n\t\treturn chiTietDonHangRepository.count(id);\n\t}", "public int getChildCount() { return 0; }", "Long getNumberOfElement();", "public int size() {\n return tree.count();\n }", "public int getCount()\r\n {\r\n int answer=0;\r\n answer+=recCount(root);\r\n return answer;\r\n }", "public int size() \r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public static int size(Node node){\n\n if(node!=null){ // node มีตัวตน\n\n return 1 + size(node.left) + size(node.right); // size = #children + 1(itself)\n }\n else{\n return 0;\n }\n }", "@Override\n\tpublic int size() {\n\t\tint s = valCount; // saves value of current node\n\t\tfor (int i = 0; i < childCount; ++i) { // then checks all children\n\t\t\ts += children[i].size();\n\t\t}\n\t\treturn s;\n\t}", "public XMLElement[] getChildren()\n/* */ {\n/* 532 */ int childCount = getChildCount();\n/* 533 */ XMLElement[] kids = new XMLElement[childCount];\n/* 534 */ this.children.copyInto(kids);\n/* 535 */ return kids;\n/* */ }", "public int getAccessibleChildrenCount() {\n try {\n return unoAccessibleContext.getAccessibleChildCount();\n } catch (com.sun.star.uno.RuntimeException e) {\n return 0;\n }\n }", "public static NodeList readXML(String filename, String id)\r\n\t{\r\n\t\t\r\n\t\tNode child = readXML(filename);\r\n\t // Lista di tutti gli elementi\r\n\t NodeList list = ((Element)child).getElementsByTagName(id);\r\n\t \r\n\t\t \r\n\t\treturn list;\r\n\t}", "public int countNodes() {\r\n \r\n // call the private countNodes method with root\r\n return countNodes(root);\r\n }", "public int\tgetChildCount(Object parent) {\n \tif (! (parent instanceof IdentityBranch)) return -1;\n \tIdentityBranch ibParent = (IdentityBranch)parent;\n \treturn ibParent.getChildCount();\n }", "public int getChildCount(V vertex);", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\treturn size(root);\n\t}", "public int size() {\n\t\t// TODO\n\t\treturn size(root);\n\t}", "int size()\r\n\t{\r\n\t\treturn size(root);\r\n\t}", "public int size() {\n return size(root);\n }", "public int size() {\n return size(root);\n }", "public int getBoundContainerElementCount() {\n return nestedElements.size();\n }", "@Override\n public int getChildrenCount(int groupPosition)\n {\n return children.get(headers.get(groupPosition)).size();\n }", "public Integer GetNumOfChild() {\n\t\treturn this.ChildSMILES.size();\n\t}", "private Collection<EfoTermCount> getAllTermChildren(EfoTerm term) {\n\n List<EfoTermCount> result = new ArrayList<EfoTermCount>();\n Collection<EfoTerm> children = efo.getTermChildren(term.getId());\n result.add(new EfoTermCount(term, 0));\n for (EfoTerm child : children) {\n result.addAll(getAllTermChildren(child.getId()));\n }\n return result;\n }", "public int getCount(Node root, int key){\n\t\tif(root==nil){\n\t\t\treturn 0;\n\t\t}\n\t\t\n\t\tif(root.id == key){\n\t\t\treturn root.count;\n\t\t}\n\t\t\n\t\tif(key < root.id){\n\t\t\treturn getCount(root.left,key);\n\t\t}else{\n\t\t\treturn getCount(root.right,key);\n\t\t}\n\t}", "public int size() \n\t {\n\t\t return size(root);\n\t }", "public int getChildCount(Object parent) {\n\t\tint result = 0;\n\t\tFile file = (File) parent;\n\n\t\tif (file instanceof Directory) {\n\t\t\tDirectory directory = (Directory) file;\n\t\t\tresult = directory.getNumberOfChildren();\n\t\t}\n\t\treturn result;\n\t}", "public int size(){\n return size(root);\n }", "public int size() \n {\n return size(root);\n }", "protected int getChildrenCount(final ChoiceComposite control) {\n \t\tif (SwtUtilities.isDisposed(control)) {\n \t\t\treturn 0;\n \t\t}\n\t\treturn control.getChildren().length;\n \t}", "int getIdsCount();", "public int countNodes(){\r\n \treturn count(root);\r\n }", "@DISPID(4)\n\t// = 0x4. The runtime will prefer the VTID if present\n\t@VTID(10)\n\tcom.gc.IList children();", "private int findChildOrIndex(BTreeNode<T> currentNode, I id) {\n int indexChild = 0;\n while (currentNode.getKey(indexChild) != null && comparator.compare(currentNode.getKey(indexChild), id) < 0) {\n indexChild++;\n }\n\n return indexChild;\n }", "public int getNumberOfElements();", "public int shapeCount()\n {\n // return the number of children in the list\n return children.size();\n }", "public Collection<List<EfoTermCount>> getTermParentPaths(String id) {\n Collection<List<EfoTerm>> paths = efo.getTermParentPaths(id, true);\n if (paths == null)\n return null;\n\n List<List<EfoTermCount>> result = new ArrayList<List<EfoTermCount>>();\n for (List<EfoTerm> path : paths) {\n int depth = 0;\n List<EfoTermCount> current = new ArrayList<EfoTermCount>();\n Collections.reverse(path);\n for (EfoTerm term : path) {\n Long count = getCount(term.getId());\n if (count != null) {\n current.add(new EfoTermCount(new EfoTerm(term, depth++), count));\n }\n }\n if (!current.isEmpty()) {\n Long count = getCount(id);\n if (count != null) {\n current.add(new EfoTermCount(new EfoTerm(efo.getTermById(id), depth), count));\n result.add(current);\n }\n }\n }\n return result;\n }", "@Override\n\tpublic int cartCount(String id) {\n\t\treturn cookie.cartCount(id);\n\t}", "@Override\n\tpublic int getChildrenCount(int sectionPosition) {\n\t\treturn sections.get(sectionPosition).getArrayChildren().size();\n\t}", "@Override\n public int getChildrenCount(int groupPosition) {\n return getGroup(groupPosition).getChildrenCount();\n }", "private void count(String[] arguments) {\n\t\ttry { \n\t int ID = Integer.parseInt(arguments[1]);\n\t Node curr = searchID(root, ID);\n\t if(curr != null)\n\t \tSystem.out.printf(\"%d\\n\", curr.count);\n\t else\n\t \tSystem.out.println(\"0\");\n\t } catch(NumberFormatException e) { \n\t System.out.println(\"Argument not an Integer\");; \n\t }\n\t}", "@Override\r\n public int getChildrenCount(int groupPosition) {\n return mDataList.get(\"\" + groupPosition).size();\r\n }", "int size() \n { \n return size(root); \n }", "public int count( ) {\n if(empty()) {\n return 0;\n } else{\n return countNodes(root);\n }\n }" ]
[ "0.7056297", "0.6674667", "0.661454", "0.6483752", "0.645568", "0.64209944", "0.6388151", "0.63520944", "0.63263905", "0.62899333", "0.6284692", "0.62649274", "0.62535334", "0.6236902", "0.62155557", "0.62083656", "0.62074906", "0.61339605", "0.6132879", "0.61217344", "0.611115", "0.6102135", "0.6079056", "0.603186", "0.6027622", "0.6026744", "0.60111284", "0.58802336", "0.5875649", "0.5872063", "0.57831943", "0.5777129", "0.5758495", "0.56742775", "0.5658614", "0.5603018", "0.55952483", "0.55404985", "0.5528729", "0.5522193", "0.5508836", "0.5487865", "0.5485208", "0.5480229", "0.547861", "0.5475724", "0.54488957", "0.54000276", "0.5394827", "0.5391775", "0.5389749", "0.53764343", "0.5375465", "0.53666216", "0.53651315", "0.5341803", "0.53241014", "0.5313733", "0.53114545", "0.5276056", "0.5269931", "0.5263501", "0.52625835", "0.5251218", "0.52486265", "0.5248444", "0.52474004", "0.5239334", "0.5236981", "0.5235577", "0.52306956", "0.52306956", "0.5225091", "0.52219546", "0.52152836", "0.52152836", "0.52149934", "0.52105725", "0.5199103", "0.51954925", "0.51952165", "0.51943123", "0.5191091", "0.518494", "0.51775455", "0.5177042", "0.5171064", "0.5170808", "0.5170513", "0.51636505", "0.5132481", "0.51285183", "0.5101067", "0.50990087", "0.5096198", "0.5092097", "0.5067233", "0.50637823", "0.506299", "0.5056174" ]
0.83902276
0
making sure that the formatting will not matter in the comparition we parse and format them the same way
protected void assertEqualsJavaContents(String actualValue, String expectedValue) { String actual = parseAst(actualValue.toCharArray()).toString(); String expected = parseAst(expectedValue.toCharArray()).toString(); assertEquals(actual, expected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static String format(String message, Object expected, Object actual)\n\t\t{\n\t\tString formatted = \"\";\n\t\tif (message != null && !message.equals(\"\"))\n\t\t\t{\n\t\t\tformatted = message + \" \";\n\t\t\t}\n\n\t\tString expectedString = String.valueOf(expected);\n\t\tString actualString = String.valueOf(actual);\n\t\treturn expectedString.equals(actualString) ? formatted + \"expected: \" + formatClassAndValue(expected, expectedString) + \" but was: \" + formatClassAndValue(actual, actualString) : formatted + \"expected:<\" + expectedString + \"> but was:<\" + actualString + \">\";\n\t\t}", "public abstract int compare(String s1, String s2) throws NumberFormatException, ParseException;", "protected static Value canonicalize(Value v) {\n if (Options.get().isDebugOrTestEnabled()) { // checking representation invariants\n String msg = null;\n if ((v.flags & (STR_OTHERNUM | STR_IDENTIFIERPARTS | STR_OTHER)) != 0 && v.str != null)\n msg = \"fixed string and flags inconsistent\";\n else if ((v.flags & STR_PREFIX) != 0 && (v.str == null || v.str.isEmpty()))\n msg = \"prefix string inconsistent\";\n else if ((v.flags & NUM) != 0 && v.num != null)\n msg = \"number facet inconsistent\";\n else if (v.num != null && Double.isNaN(v.num))\n msg = \"number constant is NaN\";\n else if (v.object_labels != null && v.object_labels.isEmpty())\n msg = \"empty set of object labels\";\n else if (v.getters != null && v.getters.isEmpty())\n msg = \"empty set of getters\";\n else if (v.setters != null && v.setters.isEmpty())\n msg = \"empty set of setters\";\n else if (v.excluded_strings != null && v.excluded_strings.isEmpty())\n msg = \"empty set of excluded strings\";\n else if (v.included_strings != null && v.included_strings.isEmpty())\n msg = \"empty set of included strings\";\n else if (v.included_strings != null && v.included_strings.size() <= 1)\n msg = \"invalid number of included strings\";\n else if (v.excluded_strings != null && v.included_strings != null)\n msg = \"has both excluded strings and included strings\";\n else if ((v.flags & UNKNOWN) != 0 && ((v.flags & ~UNKNOWN) != 0 || v.str != null || v.num != null\n || (v.object_labels != null && !v.object_labels.isEmpty())\n || (v.getters != null && !v.getters.isEmpty())\n || (v.setters != null && !v.setters.isEmpty())))\n msg = \"'unknown' inconsistent with other flags\";\n else if (v.var != null && ((v.flags & PRIMITIVE) != 0 || v.str != null || v.num != null\n || (v.object_labels != null && !v.object_labels.isEmpty())\n || (v.getters != null && !v.getters.isEmpty())\n || (v.setters != null && !v.setters.isEmpty())))\n msg = \"mix of polymorphic and ordinary value\";\n else if ((v.flags & (PRESENT_DATA | PRESENT_ACCESSOR)) != 0 && v.var == null)\n msg = \"PRESENT set for non-polymorphic value\";\n else if (v.excluded_strings != null && (v.flags & STR) == 0)\n msg = \"excluded strings present without fuzzy strings\";\n else if (v.included_strings != null && (v.flags & STR) == 0)\n msg = \"included_strings present without fuzzy strings\";\n if (msg != null)\n throw new AnalysisException(\"Invalid value (0x\" + Integer.toHexString(v.flags) + \",\"\n + Strings.escape(v.str) + \",\" + v.num + \",\" + v.object_labels\n + \",\" + v.getters + \",\" + v.setters + \",\" + (v.excluded_strings != null ? Strings.escape(v.excluded_strings) : null)\n + \",\" + (v.included_strings != null ? Strings.escape(v.included_strings) : null) + \"), \" + msg);\n if (Options.get().isPolymorphicDisabled() && v.isPolymorphic())\n throw new AnalysisException(\"Unexpected polymorphic value\");\n }\n canonicalizing = true;\n if (v.object_labels != null)\n v.object_labels = Canonicalizer.get().canonicalizeSet(v.object_labels);\n if (v.getters != null)\n v.getters = Canonicalizer.get().canonicalizeSet(v.getters);\n if (v.setters != null)\n v.setters = Canonicalizer.get().canonicalizeSet(v.setters);\n if (v.excluded_strings != null)\n v.excluded_strings = Canonicalizer.get().canonicalizeStringSet(v.excluded_strings);\n if (v.included_strings != null)\n v.included_strings = Canonicalizer.get().canonicalizeStringSet(v.included_strings);\n v.hashcode = v.computeHashCode();\n Value cv = Canonicalizer.get().canonicalize(v);\n canonicalizing = false;\n return cv;\n }", "@Test\r\n\tpublic void testTournamentTagsFormat() {\r\n\t\tassertTrue(cl.checkTournamentTagsFormat(tags));\r\n\t\tassertFalse(cl.checkTournamentTagsFormat(tags2));\r\n\t}", "private String formatExpected() {\n String result = \"tokens \";\n if (tokens.length == 1) {\n return \"token \" + tokens[0];\n } else if (tokens.length == 2) {\n return result + tokens[0] + \" and \" + tokens[1];\n }\n\n for (int i = 0; i < tokens.length - 1; i++) {\n result = result.concat(tokens[i] + \", \");\n }\n\n return result + \"and \" + tokens[tokens.length - 1];\n }", "protected abstract String format();", "private void compareString(String rs, String ts, String meaning) {\n\t\tassertNotNull(\"NULL \"+meaning, ts);\n\t\tassertEquals(\"Wrong \"+meaning, rs, ts);\t\t\n\t}", "public static int compareDateStrings(String o1, String o2, String format) {\n\t\tDate d1 = (DateUtils.string2Date(o1,format));\n\t\tDate d2 = (DateUtils.string2Date(o2,format));\n\t\tint result = d1.compareTo(d2);\n\n\t\tif (DEBUG) Log.i(TAG, \"+++ compareDateStrings: o1=\" + o1 + \" o2=\" + o2 + \" ===> \" + result + \" +++ \");\n\n\t\treturn result;\n\t}", "public String validate(Revision<?, ?> another) throws IOException {\n assert another != null;\n\n StringBuilder buf = new StringBuilder();\n\n if (this.stamp != another.stamp) {\n buf.append(\"\\t\\tRevision.sapNid not equal: \\n\\t\\t\\tthis.sapNid = \").append(this.stamp).append(\n \"\\n\\t\\t\\tanother.sapNid = \").append(another.stamp).append(\"\\n\");\n }\n\n if (!this.primordialComponent.equals(another.primordialComponent)) {\n buf.append(\n \"\\t\\tRevision.primordialComponent not equal: \" + \"\\n\\t\\t\\tthis.primordialComponent = \").append(\n this.primordialComponent).append(\"\\n\\t\\t\\tanother.primordialComponent = \").append(\n another.primordialComponent).append(\"\\n\");\n }\n\n return buf.toString();\n }", "public void testArrayFormat() {\n result = MessageFormatter.arrayFormat(\n \"Value {} is smaller than {} and {}.\", ia0).getMessage();\n assertEquals(\"Value 1 is smaller than 2 and 3.\", result);\n\n result = MessageFormatter.arrayFormat(\"{}{}{}\", ia0).getMessage();\n assertEquals(\"123\", result);\n\n result = MessageFormatter.arrayFormat(\"Value {} is smaller than {}.\", ia0)\n .getMessage();\n assertEquals(\"Value 1 is smaller than 2.\", result);\n\n result = MessageFormatter.arrayFormat(\"Value {} is smaller than {}\", ia0)\n .getMessage();\n assertEquals(\"Value 1 is smaller than 2\", result);\n\n result = MessageFormatter.arrayFormat(\"Val={}, {, Val={}\", ia0)\n .getMessage();\n assertEquals(\"Val=1, {, Val=2\", result);\n\n result = MessageFormatter.arrayFormat(\"Val={}, {, Val={}\", ia0)\n .getMessage();\n assertEquals(\"Val=1, {, Val=2\", result);\n\n result = MessageFormatter.arrayFormat(\"Val1={}, Val2={\", ia0).getMessage();\n assertEquals(\"Val1=1, Val2={\", result);\n }", "private ARXOrderedString(List<String> format){\r\n if (format.size()==0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.size(); i++){\r\n if (this.order.put(format.get(i), i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format.get(i)+\"'\");\r\n }\r\n }\r\n }\r\n }", "private ARXOrderedString(String[] format){\r\n if (format.length == 0) {\r\n this.order = null;\r\n } else {\r\n this.order = new HashMap<String, Integer>(); \r\n for (int i=0; i< format.length; i++){\r\n if (this.order.put(format[i], i) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+format[i]+\"'\");\r\n }\r\n }\r\n }\r\n }", "String getValueFormat();", "@SuppressWarnings(\"rawtypes\")\r\n\t@Override\r\n\tpublic int compare(WritableComparable a, WritableComparable b)\r\n\t{\n\t\tText left = (Text)a;\r\n\t\tText right = (Text)b;\r\n\t\t\r\n\t\tText realLeft = new Text(left.toString().split(\"-,-\")[1]);\r\n\t\tText realRight = new Text(right.toString().split(\"-,-\")[1]);\r\n\t\t\t\t\r\n\t\tint result = tc.compare(realLeft, realRight);\r\n\t\t\t\t\r\n\t\treturn result;\r\n\t}", "@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tif ((Double.parseDouble(o1)-Double.parseDouble(o2))>0) {\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if ((Double.parseDouble(o1)-Double.parseDouble(o2))<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}", "@Override\r\n\t\t\tpublic int compare(String o1, String o2) {\n\t\t\t\tString[] values = o1.split(\";\");\r\n\t\t\t\t//Take the second string and do the same thing\r\n\t\t\t\tString[] values2 = o2.split(\";\");\r\n\t\t\t\t//Compare strings according to their integer values\r\n\t\t\t\treturn Integer.valueOf(values[0].replace(\"\\\"\", \"\")).compareTo(Integer.valueOf(values2[0].replace(\"\\\"\", \"\")));\r\n\t\t\t}", "@Override\r\n\t public int compare(String o1, String o2) { //compare the two Strings\r\n\t\tif (o1 == null || o2 == null) { //if one of them is 0\r\n\t\t return 0;\r\n\t\t}\r\n\t\tBigDecimal o1bd = new BigDecimal(o1); //creating a BigDecimal variable, value equals String o1\r\n\t\tBigDecimal o2bd = new BigDecimal(o2);\r\n\t\treturn o2bd.compareTo(o1bd); \r\n\t }", "private Term parseComparison(final boolean required) throws ParseException {\n Term t1 = parseBitwiseOr(required);\n while (t1 != null) {\n int tt = _tokenizer.next();\n if (tt == '<') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<'\");\n }\n } else if (tt == '>') {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GtD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GtI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GtD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>'\");\n }\n } else if (isSpecial(\"==\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.EqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.EqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.EqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'=='\");\n }\n } else if (isSpecial(\"!=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.NEqD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.NEqI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.NEqD(t1, t2);\n } else {\n reportTypeErrorN2(\"'!='\");\n }\n } else if (isSpecial(\"<=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.LeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.LeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.LeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'<='\");\n }\n } else if (isSpecial(\">=\")) {\n Term t2 = parseBitwiseOr(true);\n if (t1.isD() && t2.isN() || t1.isN() && t2.isD()) {\n t1 = new Term.GeD(t1, t2);\n } else if (t1.isI() && t2.isI()) {\n t1 = new Term.GeI(t1, t2);\n } else if (!isTypeChecking()) {\n t1 = new Term.GeD(t1, t2);\n } else {\n reportTypeErrorN2(\"'>='\");\n }\n } else {\n _tokenizer.pushBack();\n break;\n }\n }\n return t1;\n }", "String getValueFormatted();", "private FormatUtilities() {}", "private static boolean compareParseOutput(String firstFile, String secondFile, int mode) throws IOException {\n\t\tString s1 = filterString(readParseOutput(firstFile,mode));\n\t\tString s2 = filterString(readParseOutput(secondFile,mode));\n\n\t\tSystem.err.println(firstFile + \" : \" + s1);\n\t\tSystem.err.println(secondFile + \" : \" + s2);\n\n\t\treturn s1.equals(s2);\n\t}", "private static String[] assertCondition(String c,int andGroupNo) throws Exception {\n\t\tif (c.trim().equals(\"\")) return new String[0];\n\t\tString h=\"(?<=[\\\\d\\\\w '\\\"])\",t=\"(?=[\\\\d\\\\w '\\\"])\";\n\t\tPattern lessThen=Pattern.compile(h+\"<\"+t),greaterThen=Pattern.compile(h+\">\"+t)\n\t\t\t\t,unequal=Pattern.compile(h+\"\\\\(<>|!=\\\\)\"+t),equal=Pattern.compile(h+\"=\"+t)\n\t\t\t\t,lessEqual=Pattern.compile(h+\"<=\"+t),greaterEqual=Pattern.compile(h+\">=\"+t);\n\t\tint lt=matchCounter(lessThen.matcher(c))\n\t\t\t\t,le=matchCounter(lessEqual.matcher(c))\n\t\t\t\t,gt=matchCounter(greaterThen.matcher(c))\n\t\t\t\t,ge=matchCounter(greaterEqual.matcher(c))\n\t\t\t\t,eq=matchCounter(equal.matcher(c))\n\t\t\t\t,ue = matchCounter(unequal.matcher(c));\n\t\tif((lt+le+ge+gt+eq+ue)==1) {\n\t\t\tString[] res= new String[4],vars=c.split(h+\"=|=|!=|<=|>=|<>|>|<\"+t);\n\t\t\tif (lt==1){ res[0]=\"<\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (le==1){ res[0]=\"<=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (gt==1){ res[0]=\">\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ge==1){ res[0]=\">=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (eq==1){ res[0]=\"=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tif (ue==1){ res[0]=\"!=\";res[1]=vars[0].trim();res[2]=vars[1].trim();}\n\t\t\tres[3]= String.valueOf(andGroupNo);\n\t\t\treturn res;\n\t\t}\n\t\telse throw new Exception(\"Can't determine the condition\");\n\t}", "private ARXOrderedString(String format){\r\n if (format==null || format.equals(\"Default\") || format.equals(\"\")) {\r\n this.order = null;\r\n } else {\r\n try {\r\n this.order = new HashMap<String, Integer>(); \r\n BufferedReader reader = new BufferedReader(new StringReader(format));\r\n int index = 0;\r\n String line = reader.readLine();\r\n while (line != null) {\r\n if (this.order.put(line, index) != null) {\r\n throw new IllegalArgumentException(\"Duplicate value '\"+line+\"'\");\r\n }\r\n line = reader.readLine();\r\n index++;\r\n }\r\n reader.close();\r\n } catch (IOException e) {\r\n throw new IllegalArgumentException(\"Error reading input data\");\r\n }\r\n }\r\n }", "@Override\n public int compare(String s1, String s2) {\n String soString1 = s1.replaceAll(\"[\\\\d.]\",\"\");\n String soString2 = s2.replaceAll(\"[\\\\d.]\",\"\");\n if (soString1.equals(soString2)){\n Integer soNumero1 = Integer.parseInt(s1.replaceAll(\"\\\\D\", \"\"));\n Integer soNumero2 = Integer.parseInt(s2.replaceAll(\"\\\\D\", \"\"));\n return soNumero1.compareTo(soNumero2) * this.reverse;\n }\n return soString1.compareTo(soString2) * this.reverse;\n }", "public void testCompare() throws Exception {\n\n Object testData[][] = {\n { \"aaa\", \"bbb\", -1 },\n { \"aaa\", \"aaa\", 0 },\n { \"bbb\", \"aaa\", 1 },\n { \"aaa\", \"aaa_L1_bbb.lsm\", -1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L1_bbb.lsm\", 0 },\n { \"aaa_L1_bbb.lsm\", \"aaa\", 1 },\n { \"aaa_L1_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 },\n { \"aaa_L10_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_La_bbb.lsm\", \"aaa_L1_bbb.lsm\", 1 },\n { \"aaa_L2_bbb.lsm\", \"aaa_L10_bbb.lsm\", -1 }\n };\n\n LNumberComparator comparator = new LNumberComparator();\n\n for (Object[] testRow : testData) {\n String name1 = (String) testRow[0];\n String name2 = (String) testRow[1];\n File file1 = new File(name1);\n File file2 = new File(name2);\n int expectedResult = (Integer) testRow[2];\n int actualResult = comparator.compare(new FileTarget(file1),\n new FileTarget(file2));\n\n boolean isValid = ((expectedResult > 0) && (actualResult > 0)) ||\n ((expectedResult < 0) && (actualResult < 0)) ||\n ((expectedResult == 0) && (actualResult == 0));\n\n assertTrue(name1 + \" compared to \" + name2 +\n \" returned invalid result of \" + actualResult +\n \" (should have same sign as \" + expectedResult + \")\",\n isValid);\n }\n\n }", "private boolean parseText() {\n\t\tString text = displayText.getText();\n\t\tint pos = Math.max(text.indexOf(\"+\"), Math.max(text.indexOf(\"-\"), \n\t\t\t\tMath.max(text.indexOf(\"\\u00F7\"), Math.max(text.indexOf(\"%\"), text.indexOf(\"\\u00D7\")))));\n\t\tchar op = text.charAt(pos);\n\t\tswitch(op) {\n\t\t\tcase '+':\n\t\t\t\toperator = OP_PLUS;\n\t\t\t\tbreak;\n\t\t\tcase '-':\n\t\t\t\toperator = OP_MINUS;\n\t\t\t\tbreak;\n\t\t\tcase '\\u00F7':\n\t\t\t\toperator = OP_DIV;\n\t\t\t\tbreak;\n\t\t\tcase '%':\n\t\t\t\toperator = OP_MOD;\n\t\t\t\tbreak;\n\t\t\tcase '\\u00D7':\n\t\t\t\toperator = OP_MULT;\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t}\n\t\tnum1 = Double.parseDouble(text.substring(0, pos));\n\t\tnum2 = Double.parseDouble(text.substring(pos+1));\n\t\treturn true;\n\t}", "public int compare(GEdge e1, GEdge e2) throws NumberFormatException\r\n {\r\n if (e1 == null)\r\n return 1;\r\n if (e2 == null)\r\n return -1;\r\n \r\n int label1 = Integer.parseInt(e1.getTextLabel());\r\n int label2 = Integer.parseInt(e2.getTextLabel());\r\n \r\n return label1 - label2;\r\n }", "public int compareStringObjectsForLexRange(Object obj1, Object obj2) {\n\t\t /* This makes sure that we handle inf,inf and\n -inf,-inf ASAP. One special case less. */\n\t\tif (obj1 == obj2) {\n\t\t\treturn 0;\n\t\t}\n\t\t//if (obj1 == shared.minstring || obj2 == shared.maxstring) return -1;\n\t\t//if (obj1 == shared.maxstring || obj2 == shared.minstring) return 1;\n\t\treturn compareStringObjects(obj1, obj2);\n\t}", "private String getComparisonString(Object o) {\n if (o instanceof IPreferenceNode) {\n return ((IPreferenceNode) o).getLabelText();\n }\n return o.toString();\n }", "private static int cmp( String str1, String str2 )\n \t\t{\n \t\t\tif ( str1==null && str2==null )\n \t\t\t\treturn 0;\n \t\t\tif ( str1==null )\n \t\t\t\treturn -1;\n \t\t\tif ( str2==null )\n \t\t\t\treturn 1;\n \t\t\t\n \t\t\tint p1 = 0;\n \t\t\tint p2 = 0;\n \t\t\tfor ( ;; ) {\n \t\t\t\tif ( p1>=str1.length() ) {\n \t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\treturn 0;\n \t\t\t\t\treturn 1;\n \t\t\t\t}\n \t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\treturn -1;\n \t\t\t\tchar ch1 = str1.charAt(p1);\n \t\t\t\tchar ch2 = str2.charAt(p2);\n \t\t\t\tif ( ch1>='0' && ch1<='9' && ch2>='0' && ch2<='9' ) {\n \t\t\t\t\tint n1 = 0;\n \t\t\t\t\tint n2 = 0;\n \t\t\t\t\twhile ( ch1>='0' && ch1<='9' ) {\n \t\t\t\t\t\tp1++;\n \t\t\t\t\t\tn1 = n1 * 10 + (ch1-'0');\n \t\t\t\t\t\tif ( p1>=str1.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch1 = str1.charAt(p1);\n \t\t\t\t\t}\n \t\t\t\t\twhile ( ch2>='0' && ch2<='9' ) {\n \t\t\t\t\t\tp2++;\n \t\t\t\t\t\tn2 = n2 * 10 + (ch2-'0');\n \t\t\t\t\t\tif ( p2>=str2.length() )\n \t\t\t\t\t\t\tbreak;\n \t\t\t\t\t\tch2 = str2.charAt(p2);\n \t\t\t\t\t}\n \t\t\t\t\tint c = cmp(n1, n2);\n \t\t\t\t\tif ( c!=0 )\n \t\t\t\t\t\treturn c;\n \t\t\t\t} else {\n \t\t\t\t\tif ( ch1<ch2 )\n \t\t\t\t\t\treturn -1;\n \t\t\t\t\tif ( ch1>ch2 )\n \t\t\t\t\t\treturn 1;\n \t\t\t\t\tp1++;\n \t\t\t\t\tp2++;\n \t\t\t\t}\n \t\t\t}\n \t\t}", "@Test\n public void testFormatWithoutReformat() throws ParseException {\n String message = \"TAF LFPG 121700Z 1218/1324 13003KT CAVOK TX09/1315Z TN00/1306Z \\n\" + \"TEMPO 1303/1308 4000 BR\";\n // WHEN formating the message\n String result = sut.format(message);\n // THEN the message is not edited.\n assertEquals(message, result);\n }", "private static String checkFormat(String date){\r\n\t\tif(date.length()==0) return \"\";\r\n\t\tint dateChars=0,timeChars=0;\r\n\t\tchar currenChar;\r\n\t\t\r\n\t\t//check if the first and the last character of the string is a number, it must always be\r\n\t\tif(!Character.isDigit(date.charAt(0))) return \"\";\r\n\t\tif(!Character.isDigit(date.charAt((date.length()-1)))) return \"\";\r\n\t\t\r\n\t\t\r\n\t\tfor(int i=1; i<date.length()-1;i++){\r\n\t\t\tcurrenChar=date.charAt(i);\r\n\t\t\t\r\n\t\t\t//check if every character is / or : or number\t\t\r\n\t\t\tif(!(Character.isDigit(currenChar) || currenChar==':' || currenChar=='/')) return \"\";\r\n\t\t\t//check if there is a number between // or ::, if not it returns false\r\n\t\t\tif((currenChar==':' || currenChar=='/') && (date.charAt(i+1)==':' || date.charAt(i+1)=='/')) return \"\";\r\n\t\t\t\r\n\t\t\t//count the / and :\r\n\t\t\tif(currenChar==':') timeChars++; \r\n\t\t\telse if(currenChar=='/') dateChars++;\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with one :\r\n\t\tif(timeChars==1 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[2];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is time with two :\r\n\t\telse if(timeChars==2 && dateChars==0){\r\n\t\t\t//check if one of the numbers has more than 2 digits, then it is invalid\r\n\t\t\tint index=0;\r\n\t\t\tfor(String s:splitWords(date.replaceAll(\":\", \" \"))){\r\n\t\t\t\tif( index==0 && s.length()!=1 && s.length()!=2) return \"\";\r\n\t\t\t\telse if(index>0 && s.length()!=2 ) return \"\";\r\n\t\t\t\tindex++;\r\n\t\t\t}\r\n\r\n\t\t\treturn formats[1];\r\n\t\t}\r\n\t\t\r\n\t\t//if it is a date with two /\r\n\t\telse if(dateChars==2 && timeChars==0){\r\n\t\t\t//check if one of the numbers have the right amount of digits\r\n\t\t\tString[] numbers= splitWords(date.replaceAll(\"/\", \" \"));\r\n\t\t\tif(numbers[0].length()>2) return \"\";\r\n\t\t\tif(numbers[1].length()>2) return \"\";\r\n\t\t\tif(numbers[2].length()>4) return \"\";\r\n\t\t\t\r\n\t\t\treturn formats[0];\r\n\t\t}\r\n\t\t\r\n\t\telse return \"\";\t\t\r\n\t}", "public void testCompareFloatStrings() {\n\t\tString one = 1.01 + \"\";\n\t\tString two = 1.02+\"\";\n\t\t//1.01 ist kleiner wie 1.02\n\t\tassertTrue(comp.compareFloat(one, two) < 0);\n\t\tassertTrue(comp.compareFloat(one, one) == 0);\n\t\tassertTrue(comp.compareFloat(two ,one) > 0);\n\t}", "private String computeUniqueNotation(Subquery parsedQuery) {\n if (parsedQuery.rightTerm == null) {\n parsedQuery.orderedQuery = parsedQuery.leftTerm.toString();\n return parsedQuery.leftTerm.toString();\n }\n\n String leftBare = computeUniqueNotation(parsedQuery.leftTerm instanceof Subquery ? (Subquery) parsedQuery.leftTerm : new Subquery(parsedQuery.leftTerm));\n String rightBare = computeUniqueNotation(parsedQuery.rightTerm instanceof Subquery ? (Subquery) parsedQuery.rightTerm : new Subquery(parsedQuery.rightTerm));\n\n String operator = parsedQuery.operator;\n String ordered;\n\n if (operator.equals(\"|\") || operator.equals(\"+\")) {\n if (leftBare.compareTo(rightBare) > 0) {\n ordered = rightBare + \" \" + leftBare + \" \" + operator;\n } else {\n ordered = leftBare + \" \" + rightBare + \" \" + operator;\n }\n } else {\n ordered = leftBare + \" \" + rightBare + \" \" + operator;\n }\n parsedQuery.orderedQuery = ordered;\n return ordered;\n }", "@Test public void testCompareTo() {\r\n new LinkedHashMap<Entry<String, ComparisonResult>, Entry<Word, Word>>() {\r\n private static final long serialVersionUID = -114525477689441361L; {\r\n put(new SimpleEntry<>(\"test(Test)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w1, w2));\r\n put(new SimpleEntry<>(\"Test(test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w2, w1));\r\n put(new SimpleEntry<>(\"Test(Te/t)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w2, w5));\r\n put(new SimpleEntry<>(\"Te/t(Test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w5, w2));\r\n put(new SimpleEntry<>(\"Text(Te/t)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w7, w5));\r\n put(new SimpleEntry<>(\"Te/t(Text)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w5, w7));\r\n put(new SimpleEntry<>(\"testing(test'ing)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w3, w4));\r\n put(new SimpleEntry<>(\"test'ing(testing)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w4, w3));\r\n put(new SimpleEntry<>(\"test(testing)\", ComparisonResult.LESS_THAN), new SimpleEntry<>(w1, w3));\r\n put(new SimpleEntry<>(\"testing(test)\", ComparisonResult.GREATER_THAN), new SimpleEntry<>(w3, w1));\r\n put(new SimpleEntry<>(\"test(test)\", ComparisonResult.EQUAL_TO), new SimpleEntry<>(w1, w6));\r\n }}.forEach((k, v) -> {\r\n assertTrue(String.format(\"%1$s should be %2$s\", k.getKey(), k.getValue().toString()),\r\n v.getKey().compareTo(v.getValue()) == k.getValue());\r\n });\r\n }", "@Override\n public int compare(String[] o1, String[] o2) {\n try {\n Integer integer1 = Integer.valueOf(o1[0]);\n Integer integer2 = Integer.valueOf(o2[0]);\n return integer1.compareTo(integer2);\n } catch (java.lang.NumberFormatException e) {\n return o1[1].compareTo(o2[1]);\n }\n }", "private static void checkFormatAccuracy(final DoubleFunction<String> fmt, final double d) {\n final String str = fmt.apply(d);\n final double parsed = Double.parseDouble(str);\n Assertions.assertEquals(d, parsed, () -> \"Formatted double string [\" + str + \"] did not match input value\");\n }", "private Comparison compareValues(SimpleNode first, SimpleNode second) {\n return Objects.equals(first.jjtGetValue(), second.jjtGetValue()) ? Comparison.IS_EQUAL\n : Comparison.notEqual(\"Node values differ: \" + first.jjtGetValue() + \" vs \" + second.jjtGetValue());\n }", "R format(O value);", "public double compare_by_content(String content, String _content)\n\t{\n\t\t/**\n\t\t * To be implemented\n\t\t * \n\t\t * */\n\t\treturn 0.0;\n\t}", "private final boolean compareStringValues(final String data1,\n\t\t\tfinal String data2, final String colName, final String key) {\n\t\tif (data1.equals(data2)) {\n\t\t\treturn true;\n\t\t}\n\n\t\tContextComparator.addResult(namespace,\n\t\t\t\tContextComparatorConfigReferences.TEST_CATEGORY_COLUMN_VALUES,\n\t\t\t\tContextComparatorConfigReferences.TEST_STATUS_FAILED,\n\t\t\t\t\"Mismatch for \" + colName + \" for key \" + key\n\t\t\t\t+ \". \" + ContextComparator.CONTEXT_1.getName() + \": \" + data1\n\t\t\t\t+ \", \" + ContextComparator.CONTEXT_2.getName() + \": \" + data2);\n\t\treturn false;\n\t}", "@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 }", "public void test_toString() {\n // ## Arrange ##\n FromToOption option = createOption();\n option.compareAsDate();\n\n // ## Act ##\n String actual = option.toString();\n\n // ## Assert ##\n log(actual);\n assertTrue(actual.contains(\"lessThan=true\"));\n }", "@Test\n public void generatedFormatIsParsable()\n {\n Date originalDate = new Date();\n String dateAsString = DateTimeAdapter.printDate( originalDate );\n Date parsedDate = DateTimeAdapter.parseDate( dateAsString );\n \n assertThat( parsedDate, equalTo( originalDate ) );\n }", "@Override\n public int compare(String str1, String str2) {\n String digitRegex = \".*\\\\d+.*\";\n boolean hasDigits1 = str1.matches(digitRegex);\n boolean hasDigits2 = str2.matches(digitRegex);\n int result = -Boolean.valueOf(hasDigits1).compareTo(hasDigits2);\n\n if (result == 0) {\n // Secondary order: length, descending\n result = -Integer.valueOf(str1.length()).compareTo(str2.length());\n }\n\n return result;\n }", "@Test\n public void fieldFormat() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n // Use a document builder to insert a field that displays a result with no format applied.\n Field field = builder.insertField(\"= 2 + 3\");\n\n Assert.assertEquals(\"= 2 + 3\", field.getFieldCode());\n Assert.assertEquals(\"5\", field.getResult());\n\n // We can apply a format to a field's result using the field's properties.\n // Below are three types of formats that we can apply to a field's result.\n // 1 - Numeric format:\n FieldFormat format = field.getFormat();\n format.setNumericFormat(\"$###.00\");\n field.update();\n\n Assert.assertEquals(\"= 2 + 3 \\\\# $###.00\", field.getFieldCode());\n Assert.assertEquals(\"$ 5.00\", field.getResult());\n\n // 2 - Date/time format:\n field = builder.insertField(\"DATE\");\n format = field.getFormat();\n format.setDateTimeFormat(\"dddd, MMMM dd, yyyy\");\n field.update();\n\n Assert.assertEquals(\"DATE \\\\@ \\\"dddd, MMMM dd, yyyy\\\"\", field.getFieldCode());\n System.out.println(\"Today's date, in {format.DateTimeFormat} format:\\n\\t{field.Result}\");\n\n // 3 - General format:\n field = builder.insertField(\"= 25 + 33\");\n format = field.getFormat();\n format.getGeneralFormats().add(GeneralFormat.LOWERCASE_ROMAN);\n format.getGeneralFormats().add(GeneralFormat.UPPER);\n field.update();\n\n int index = 0;\n Iterator<Integer> generalFormatEnumerator = format.getGeneralFormats().iterator();\n while (generalFormatEnumerator.hasNext()) {\n int value = generalFormatEnumerator.next();\n System.out.println(MessageFormat.format(\"General format index {0}: {1}\", index++, value));\n }\n\n\n Assert.assertEquals(\"= 25 + 33 \\\\* roman \\\\* Upper\", field.getFieldCode());\n Assert.assertEquals(\"LVIII\", field.getResult());\n Assert.assertEquals(2, format.getGeneralFormats().getCount());\n Assert.assertEquals(GeneralFormat.LOWERCASE_ROMAN, format.getGeneralFormats().get(0));\n\n // We can remove our formats to revert the field's result to its original form.\n format.getGeneralFormats().remove(GeneralFormat.LOWERCASE_ROMAN);\n format.getGeneralFormats().removeAt(0);\n Assert.assertEquals(0, format.getGeneralFormats().getCount());\n field.update();\n\n Assert.assertEquals(\"= 25 + 33 \", field.getFieldCode());\n Assert.assertEquals(\"58\", field.getResult());\n Assert.assertEquals(0, format.getGeneralFormats().getCount());\n //ExEnd\n }", "@Override\n public int compare(PublisherInfo lhs, PublisherInfo rhs) {\n if (lhs.lastName != rhs.lastName) {\n return lhs.lastName.compareToIgnoreCase(rhs.lastName);\n\n } else {\n if (lhs.firstName != rhs.firstName) {\n return lhs.firstName.compareToIgnoreCase(rhs.firstName);\n } else {\n return lhs.middleName.compareToIgnoreCase(rhs.middleName);\n }\n }\n\n }", "private void CodeComparisonScoresHelper(String fileOne, String fileTwo) {\n double maxLength = Math.max(fileOne.length(), fileTwo.length());\n\n int amountOfChangesLD = new LevensthienDistance(fileOne, fileTwo).getEditDistance();\n int amountLCS = new LongestCommonSubsequence(fileOne, fileTwo).getLengthOfLCS();\n\n double LDScore = (maxLength - amountOfChangesLD) / maxLength * 100;\n double LCSScore = amountLCS / maxLength * 100;\n double overallScore = (LCSScore + LDScore) / 2;\n\n if (LDScore > scoreForLD) {\n scoreForLD = LDScore;\n }\n if (LCSScore > scoreForLCS) {\n scoreForLCS = LCSScore;\n }\n if (overallScore > overallTextDiffScore) {\n overallTextDiffScore = overallScore;\n }\n }", "public static String formatField(String attr, Comparable<?> val){\r\n \t\treturn String.format(\" %30s: => %-4s\", attr, val) + \"\\n\";\r\n \t}", "public static String numberComparison(int num1, int num2){\n\n if(num1 > num2) {\n return num1 + \" is greater than \" + num2;\n } else if (num2 > num1) {\n return num2 + \" is greater than \" + num1;\n } else if(num1 == num2) {\n return num1 + num2 + \" are equal \";\n }\n return \"Nothing to compare\";\n }", "public abstract String representInequality();", "public int compare(Object obj1, Object obj2){\n\t\t\n\t\tString s1 = obj1.toString(); // sudha\n\t\tString s2 = obj2.toString(); // rani\n\t\t\n\t\tif(s1.length()>s2.length()){\n\t\t\treturn 100;\n\t\t}else if(s1.length()<s2.length()){\n\t\t\treturn -10;\n\t\t} else{\n\t\t\treturn s1.compareTo(s2);\n\t\t}\n\t\t\n\t}", "public void overrideCompareTo(String otherName){\n \n stringBuffer.append(TEXT_865);\n \n if (columns !=null) {\n for (IMetadataColumn column: columns) {\n \n stringBuffer.append(TEXT_866);\n stringBuffer.append(column.getLabel());\n stringBuffer.append(TEXT_867);\n stringBuffer.append(otherName);\n stringBuffer.append(TEXT_868);\n stringBuffer.append(column.getLabel());\n stringBuffer.append(TEXT_869);\n \n }\n }\n \n stringBuffer.append(TEXT_870);\n \n }", "@Override\r\n\tpublic int compare(TeamPO o1, TeamPO o2) {\n\t\tif(str.equals(\"total\")){ \r\n\t\t\treturn compareTeamData(o1.getTotalTeamData(season), o2.getTotalTeamData(season));\r\n\t\t}\r\n\t\t//Sort by average team data.\r\n\t\telse if(str.equals(\"avg\")) {\r\n\t\t\treturn compareTeamData(o1.getAverageTeamData(season), o2.getAverageTeamData(season));\r\n\t\t}\r\n\t\t//sort by the full name of the team\r\n\t\telse if(str.equals(\"name\")){\r\n\t\t\tString name1=o1.getFullName();\r\n\t\t\tString name2=o2.getFullName();\r\n\t\t\tif(name1.compareTo(name2)>0)\r\n\t\t\t\treturn 1;\r\n\t\t\telse if(name1.equals(name2))\r\n\t\t\t\treturn 0;\r\n\t\t\telse\r\n\t\t\t\treturn -1;\r\n\t\t}\r\n\t\t//Sort by number of matches\r\n\t\telse if(str.equals(\"matches\")){\r\n\t\t\tint matches1=o1.getSeasonInfo(season).getNumberOfMatches();\r\n\t\t\tint matches2=o2.getSeasonInfo(season).getNumberOfMatches();\r\n\t\t\tif(matches1>matches2)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(matches1==matches2)\r\n\t\t\t\treturn 0;\r\n\t\t\telse \r\n\t\t\t\treturn 1;\r\n\t\t}\r\n\t\t//Sort by percentage of winning\r\n\t\telse if(str.equals(\"perOfWin\")){ \r\n\t\t\tdouble win1=o1.getSeasonInfo(season).getPercentageOfWinning();\r\n\t\t\tdouble win2=o2.getSeasonInfo(season).getPercentageOfWinning();\r\n\t\t\tif(win1>win2)\r\n\t\t\t\treturn -1;\r\n\t\t\telse if(win1==win2)\r\n\t\t\t\treturn 0;\r\n\t\t\telse\r\n\t\t\t\treturn 1;\r\n\t\t}\r\n\t\t//Invalid\r\n\t\telse\r\n\t\t\treturn 0;\r\n\t}", "public static String compareTags(ArrayList<Token> results, ArrayList<Token> goldStandard, String key, String tagType) {\r\n\r\n if (results.size() != goldStandard.size()) {\r\n System.out.println(\"Tokens list lengths differ\");\r\n }\r\n\r\n System.out.println(\"\\n\\n\\nSTARTING COMPARISON\"\r\n + \"\\n\");\r\n\r\n int trueNegatives = 0;\r\n int falseNegatives = 0;\r\n int truePositives = 0;\r\n int falsePositives = 0;\r\n int tokenMismatches = 0;\r\n\r\n //Detect mismatches on tokens which differ between results and standard\r\n //Unless both are tagged \"other\"\r\n for (int i = 0; i < results.size(); i++) {\r\n if (!results.get(i).token.equalsIgnoreCase(goldStandard.get(i).token) // && !results.get(goldIter).tagset.equalsIgnoreCase(\"Other\")\r\n // && !goldStandard.get(goldIter).tagset.equalsIgnoreCase(\"Other\")\r\n ) {\r\n tokenMismatches++;\r\n System.out.println(\"Mismatch: \" + results.get(i).toString() + \" \\t\\t \" + goldStandard.get(i).toString());\r\n System.out.println(\"Warning: Results invalid due to \" + tokenMismatches + \" token mismatches\");\r\n }\r\n\r\n if (results.get(i).tags.get(tagType).equalsIgnoreCase(key)\r\n && goldStandard.get(i).tags.get(tagType).equalsIgnoreCase(key)) {\r\n\r\n truePositives++;\r\n\r\n } else if (goldStandard.get(i).tags.get(tagType).equalsIgnoreCase(key)\r\n && !results.get(i).tags.get(tagType).equalsIgnoreCase(key)) {\r\n\r\n falseNegatives++;\r\n\r\n } else if (results.get(i).tags.get(tagType).equalsIgnoreCase(key)\r\n && !goldStandard.get(i).tags.get(tagType).equalsIgnoreCase(key)) {\r\n falsePositives++;\r\n\r\n } else {\r\n trueNegatives++;\r\n }\r\n\r\n }\r\n\r\n assert results.size() == (trueNegatives + truePositives + falseNegatives + falsePositives);\r\n\r\n double sensitivity = (double) truePositives / (double) (falseNegatives + truePositives);\r\n double specificity = (double) trueNegatives / (double) (falsePositives + trueNegatives);\r\n\r\n String report = key;\r\n report += \"\\nSampleSize = \" + results.size();\r\n report += \"\\nTruePos = \" + truePositives;\r\n report += \"\\nFalseNeg = \" + falseNegatives;\r\n report += \"\\nFalsePos = \" + falsePositives;\r\n report += \"\\nSensitivity = \" + sensitivity;\r\n report += \"\\nSpecificity = \" + specificity;\r\n\r\n return report;\r\n\r\n }", "public static void main(String[] args) {\n\t\t\n\t\tString date=\"1990-02-02\";// yy-mm-dd\n\t\tLocalDate dat =LocalDate.parse(date,DateTimeFormatter.ISO_DATE);\n\t\tSystem.out.println(dat);\n\t\t\n//compare 2 strings\n\t\tString s1=\"The Boeing 747 \";\n\t\tString s2=\" this year's Australian rules\";\n\t\t\n\t\tif(s1==s2) {\n\t\t\tSystem.out.println(\"String equal\");\n\t\t}else {\n\t\t\tSystem.out.println(\"String not equal\");\n\t\t}\n//verify if a string is numeric\n\t\tString N=\"12345\";\n\t\tSystem.out.println(N.contains(\"1\"));\n\t\tboolean numeric=true;\n\t\ttry {\n\t\t\tDouble d=Double.parseDouble(N);\n\t\t\t\n\t\t}catch(NumberFormatException e) {\n\t\t\tnumeric=false;\n\n\t\t}\n\t\t\n\t\tif(numeric) {\n\t\t\tSystem.out.println(\"String is numeric \"+N);\n\t\t}else {\n\t\t\tSystem.out.println(\"String is not numeric\");\n\t\t}\n\t\t\n//verify if 2 strings are anagrams-\n\t\tString st1=\"DOG\";\n\t\tString st2=\"GOD\";\n\t \n\t\tif(st1.length()==st2.length()) {\n\t\t\t\n\t\t\tchar[] c1= st1.toCharArray();\n\t\t\tchar[] c2=st2.toCharArray();\n\t\t\t\n\t\t\tArrays.sort(c2);\n\t\t\tArrays.sort(c1);\n\n\t\t\tboolean result=Arrays.equals(c1, c2);\n\t\t\t\n\t\t\tif(result) {\n\t\t\t\tSystem.out.println(st1 +\" and \"+ st2 + \" are anagrams\");\n\t\t\t}\t\t\t\n\t\t}\n\t\t\n//verify if a string contains a substring\n\t\tString str=\"Welcome to Maldives Enjoy your stay\";\n\t\tString mal=\"Maldives\";\n\t\tString sta=\"Stay\";\n\t\t\n boolean result=str.contains(mal);\n if(result) {\n\t System.out.println(\"contains substring \"+ mal);\n }else {\n\t System.out.println(\"does not contains substring\"+mal);\n }\n result=str.contains(sta);\n if(result) {\n\t System.out.println(\"contains substring \"+ sta);\n }else {\n\t System.out.println(\"does not contains substring \"+sta);\n }\n\n//iterate through each character of a string;\n\n String it=\"Testing Selenium\";\n char[] ch=it.toCharArray();\n for(char e:ch) {\n \t System.out.println(e);\n }\n\t\t\n //create random stringd\n \n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Test\n public void formatTest() {\n // TODO: test format\n }", "@Override\n public int compare(Event o1, Event o2) {\n char[] event1 = o1.getEvent().toCharArray();\n char[] event2 = o2.getEvent().toCharArray();\n\n int i = 0; // Intiialize counter variable i\n\n while (i < event1.length && i < event2.length) // We reached the end, stop\n {\n if (event1[i] - event2[i] == 0) /* if the two elements are the same, tells us nothing about difference */\n {\n i++; // Keep going\n }\n\n else if (event1[i] - event2[i] < 0) // If true, this->str[i] comes first\n {\n return -1; // Return -1 for sorting\n }\n\n else if (event1[i] - event2[i] > 0) // If true,argStr.str[i] comes first\n {\n return 1;\n }\n }\n\n if (event1.length < event2.length)\n {\n return -1;\n }\n\n else if (event1.length > event2.length)\n {\n return 1;\n }\n\n else\n {\n return 0;\n }\n\n }", "public void sortMarc()\r\n {\r\n\t/* Make sure each element in marc_out is a complete string with more than 4 characters */\r\n\tfor(int a = 0; a < marc_out.size(); a++)\r\n\t {\r\n\t\tif(marc_out.get(a).length() < 5){\r\n\t\t System.out.println(\"Warning (sortMarc): marc line \" + marc_out.get(a) + \" too short, must have least 4 characters.\");\r\n\t\t return;\r\n\t\t}\r\n\t }\r\n\r\n\tfor(int a = 0; a < (marc_out.size() - 1); a++)\r\n\t {\r\n\t\tint field_a = 0;\r\n\t\tString value_a = (marc_out.get(a)).substring(1, 4);\r\n\t\ttry{\r\n\t\t field_a = (Integer.valueOf(value_a)).intValue();\r\n\t\t}\r\n\t\tcatch(NumberFormatException nfe) { }\r\n\r\n\t\tfor(int b = a + 1; b < marc_out.size(); b++)\r\n\t\t {\r\n\t\t\tint field_b = 0;\r\n\t\t\tString value_b = (marc_out.get(b)).substring(1, 4);\r\n\t\t\ttry{\r\n\t\t\t field_b = (Integer.valueOf(value_b)).intValue();\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException nfe){ }\r\n\r\n\t\t\tif(field_b < field_a)\r\n\t\t\t {\r\n\t\t\t\tString temp_field = marc_out.get(b);\r\n\t\t\t\tmarc_out.set(b, marc_out.get(a));\r\n\t\t\t\tmarc_out.set(a, temp_field);\r\n\r\n\t\t\t\tfield_a = field_b;\r\n\t\t\t }\r\n\t\t }\r\n \t }\r\n }", "public static int getVeryLongCompare(String a, String b) {\r\n\t\tif(a.equals(b))\r\n\t\t\treturn 0;\r\n\t\telse {\r\n\t\t\tint result = 0;\r\n\t\t\tboolean minus = false;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) != 45) return -1;\r\n\t\t\tif(a.charAt(0) != 45 && b.charAt(0) == 45) return 1;\r\n\t\t\tif(a.charAt(0) == 45 && b.charAt(0) == 45) { \r\n\t\t\t\tminus = true;\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\t}\r\n\t\t\tif (a.charAt(0) == 46) a = \"0\" + a;\r\n\t\t\tif (b.charAt(0) == 46) b = \"0\" + b;\r\n\t\t\twhile(a.charAt(0) == 48 && a.charAt(1) != 46)\r\n\t\t\t\ta = a.substring(1,a.length());\r\n\t\t\twhile(b.charAt(0) == 48 && b.charAt(1) != 46)\r\n\t\t\t\tb = b.substring(1,b.length());\r\n\t\t\tboolean done = false;\r\n\t\t\tint aPointPos = a.indexOf(\".\");\r\n\t\t\tint bPointPos = b.indexOf(\".\");\r\n\t\t\tint aLength = a.length();\r\n\t\t\tint bLength = b.length();\r\n\t\t\tint aIntegerPart = aLength; \r\n\t\t\tint bIntegerPart = bLength;\r\n\t\t\tint aCurDigit = 0;\r\n\t\t\tint bCurDigit = 0;\r\n\t\t\tif (aPointPos > -1) {\r\n\t\t\t\taIntegerPart = aPointPos;\r\n\t\t\t}\r\n\t\t\tif (bPointPos > -1) {\r\n\t\t\t\tbIntegerPart = bPointPos;\r\n\t\t\t}\r\n\t\t\tif (aIntegerPart != bIntegerPart) {\r\n\t\t\t\tdone = true;\r\n\t\t\t\tif(aIntegerPart > bIntegerPart)\tresult = 1;\r\n\t\t\t\telse result = -1;\r\n\t\t\t} else {\r\n\t\t\t\tfor (int i = 0; i < aIntegerPart; i++) {\r\n\t\t\t\t\taCurDigit = a.charAt(i) - 48;\r\n\t\t\t\t\tbCurDigit = b.charAt(i) - 48;\r\n\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tint maxFloatPart = Math.max(aLength - aIntegerPart - 1, bLength - bIntegerPart - 1);\r\n\t\t\t\tif(!done) {\r\n\t\t\t\t\tfor (int i = 0; i < maxFloatPart; i++) {\r\n\t\t\t\t\t\tif(aLength < aIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\taCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\taCurDigit = a.charAt(aIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(bLength < bIntegerPart + i + 2) {\r\n\t\t\t\t\t\t\tbCurDigit = 0;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tbCurDigit = b.charAt(bIntegerPart + i + 1) - 48;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(aCurDigit != bCurDigit) {\r\n\t\t\t\t\t\t\tdone = true;\r\n\t\t\t\t\t\t\tif(aCurDigit > bCurDigit) { result = 1; }\r\n\t\t\t\t\t\t\telse { result = -1; }\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(minus) result = 0 - result;\r\n\t\t\treturn result;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic int compare(String str0, String str1) {\n\t\tString[] tempStr0 = str0.split(\",\", 2);\r\n\t\tString[] tempStr1 = str1.split(\",\", 2);\r\n\r\n\t\t// Hilbert code comparison\r\n\t\tint hilbertComparedValue = _hibertComp.compare(tempStr0[0], tempStr1[0]);\r\n\r\n\t\tif (hilbertComparedValue != 0) \r\n\t\t{\r\n\t\t\treturn hilbertComparedValue;\r\n\t\t}\r\n\t\telse \r\n\t\t{\r\n\t\t\treturn tempStr0[1].compareTo(tempStr1[1]);\r\n\t\t}\t\t\r\n\t}", "public void compareStartEndDate() {\n String[] startDateArray = startDate.split(dateOperator);\n String[] endDateArray = endDate.split(dateOperator);\n \n // Compares year first, then month, and then day.\n if (Integer.parseInt(startDateArray[2]) > Integer.parseInt(endDateArray[2])) {\n endDate = endDateArray[0] +\"/\"+ endDateArray[1] +\"/\"+ startDateArray[2];\n } else if (Integer.parseInt(startDateArray[2]) == Integer.parseInt(endDateArray[2])) {\n if (Integer.parseInt(startDateArray[1]) > Integer.parseInt(endDateArray[1])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n } else if (Integer.parseInt(startDateArray[1]) == Integer.parseInt(endDateArray[1]) && \n Integer.parseInt(startDateArray[0]) > Integer.parseInt(endDateArray[0])) {\n endDate = endDateArray[0] +\"/\"+endDateArray[1] +\"/\"+(Integer.parseInt(startDateArray[2])+1);\n }\n }\n }", "public int compare(String record1, String record2)\n\t{\n\t\tint id1=0;\n\t\tint id2=0;\n\t\ttry\n\t\t{\n\t\t\tid1 = Integer.parseInt(record1);\n\t\t\tid2 = Integer.parseInt(record2);\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\n\t\t}\n\t\treturn id1-id2;\n\t}", "@Override\r\n\t\tpublic int compare(String2DoubleNode o1, String2DoubleNode o2) {\n\t\t\treturn o2.value.compareTo(o1.value);\r\n\t\t}", "public static ComparatorCode compare(Range inputRange, Range outputRange) throws NumberFormatException {\r\n\t\tComparatorCode output = ComparatorCode.ERROR;\r\n\t\tif (inputRange == null) {\r\n\t\t\t// Case H\r\n\t\t\toutput = ComparatorCode.END;\r\n\t\t} else if (outputRange == null) {\r\n\t\t\t// Confirm that inputRange does not have reverse bounds\r\n\t\t\tint numIL = Integer.parseInt(inputRange.getLowerBound());\r\n\t\t\tint numIU = Integer.parseInt(inputRange.getUpperBound());\r\n\t\t\tif (numIL <= numIU) {\r\n\t\t\t\t// Case A\r\n\t\t\t\toutput = ComparatorCode.INSERT;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tint numIL = Integer.parseInt(inputRange.getLowerBound());\r\n\t\t\tint numIU = Integer.parseInt(inputRange.getUpperBound());\r\n\t\t\tint numOL = Integer.parseInt(outputRange.getLowerBound());\r\n\t\t\tint numOU = Integer.parseInt(outputRange.getUpperBound());\r\n\t\t\tif (numIL > numIU || numOL > numOU) {\r\n\t\t\t\t// Reversed bounds, not accepted\r\n\t\t\t\toutput = ComparatorCode.ERROR;\r\n\t\t\t} else if (numIL > numOU || numIU < numOL) {\r\n\t\t\t\t// Case B and C\r\n\t\t\t\toutput = ComparatorCode.ITERATE;\r\n\t\t\t} else if (numIL > numOL && numIU < numOU) {\r\n\t\t\t\t// Case D\r\n\t\t\t\toutput = ComparatorCode.CONTINUE;\r\n\t\t\t} else if (numOL > numIL && numOU < numIU) {\r\n\t\t\t\t// Case E\r\n\t\t\t\toutput = ComparatorCode.REPLACEOUTIN;\r\n\t\t\t} else if (numIL <= numOL && numIU <= numOU) {\r\n\t\t\t\t// Case F\r\n\t\t\t\toutput = ComparatorCode.REPLACEILOU;\r\n\t\t\t} else if (numIL >= numOL && numIU >= numOU) {\r\n\t\t\t\t// Case G\r\n\t\t\t\toutput = ComparatorCode.REPLACEOLIU;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "public void testCompareIntegerStrings() {\n\t\tString one = 1+\"\";\n\t\tString two = 2+\"\";\n\t\t//1 ist kleiner 2\n\t\tassertTrue(comp.compareInteger(one, two) == -1);\n\t\tassertTrue(comp.compareInteger(one, one) == 0);\n\t\tassertTrue(comp.compareInteger(two, one) == 1);\n\t}", "protected int compareNumbers(Number n1, Number n2) {\n BigDecimal bd1 = new BigDecimal(n1.toString());\n BigDecimal bd2 = new BigDecimal(n2.toString());\n return bd1.compareTo(bd2);\n }", "@Override\n\t\t\t\t\tpublic int compare(Entry<Integer, String> o1, Entry<Integer, String> o2) {\n\t\t\t\t\t\treturn o1.getValue().compareTo(o2.getValue());\n\t\t\t\t\t}", "@Test\n public void testCompareTo_2() {\n LOGGER.info(\"testCompareTo_2\");\n final AtomString atomString1 = new AtomString();\n final AtomString atomString2 = new AtomString(\"Hej\");\n final int actual = atomString1.compareTo(atomString2);\n final int expected = -3;\n assertEquals(expected, actual);\n }", "@Override\n public int compare(String o1, String o2) {\n int d1 = countChars(o1, '.');\n int d2 = countChars(o2, '.');\n if (d1 != d2) {\n return d1 > d2 ? 1 : -1;\n }\n\n // The less the stars the better: postgresql.org is more specific than *.*.postgresql.org\n int s1 = countChars(o1, '*');\n int s2 = countChars(o2, '*');\n if (s1 != s2) {\n return s1 < s2 ? 1 : -1;\n }\n\n // The longer the better: postgresql.org is more specific than sql.org\n int l1 = o1.length();\n int l2 = o2.length();\n if (l1 != l2) {\n return l1 > l2 ? 1 : -1;\n }\n\n return 0;\n }", "@Test\n public void testFormatWithAMD() throws ParseException {\n String message =\n \"TAF \\n\" + \"AMD LFPG 100910Z 1009/1112 20015G25KT 9999 BKN035 \\n\" + \"TEMPO 1011/1019 26020G35KT 4000 SHRA BKN012TCU PROB30 \\n\" + \"TEMPO 1015/1019 27025G45KT 2500 TSRAGS SCT012CB \\n\"\n + \"BECMG 1021/1024 27010KT PROB30 \\n\" + \"TEMPO 1105/1107 BKN014 \\n\" + \"BECMG 1109/1111 34010KT\";\n\n String formatedString =\n \"TAF AMD LFPG 100910Z 1009/1112 20015G25KT 9999 BKN035 \\n\" + \"TEMPO 1011/1019 26020G35KT 4000 SHRA BKN012TCU PROB30 \\n\" + \"TEMPO 1015/1019 27025G45KT 2500 TSRAGS SCT012CB \\n\"\n + \"BECMG 1021/1024 27010KT PROB30 \\n\" + \"TEMPO 1105/1107 BKN014 \\n\" + \"BECMG 1109/1111 34010KT\\n\";\n\n // When formating the message\n String result = sut.format(message);\n // Then the 2 first lines are merged.\n assertNotNull(result);\n assertEquals(formatedString, result);\n }", "public void testToString() {\n\t\tNumberConverter test = new NumberConverter(436);\n\t\tNumberConverter testH = new NumberConverter(95);\n\t\tNumberConverter testT = new NumberConverter(203);\n\t\tNumberConverter testO = new NumberConverter(870);\n\t\tNumberConverter testHT = new NumberConverter(2);\n\t\tNumberConverter testHO = new NumberConverter(40);\n\t\tNumberConverter testTO = new NumberConverter(900);\n\t\tNumberConverter testH2 = new NumberConverter(13);\n\t\tNumberConverter testHTO = new NumberConverter(0);\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttest.toString(), \"four hundred and thirty six\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestH.toString(), \"ninety five\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestT.toString(), \"two hundred and three\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestO.toString(), \"eight hundred and seventy\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHT.toString(), \"two\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHO.toString(), \"forty\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestTO.toString(), \"nine hundred\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestH2.toString(), \"thirteen\");\n\t\tassertEquals(\"Should have had stringed together correctly\",\n\t\t\t\ttestHTO.toString(), \"\");\n\n\t}", "@Test\n\tvoid testFormattedRE() {\n\t\tRegularLanguage rl[] = new RegularLanguage[lengthToFormatRE]; \n\t\tint i = 0;\n\t\tfor (String re : toFormatRE) {\n\t\t\trl[i++] = RegularExpression.isValidRE(re);\n\t\t}\n\t\t// Verify if all objects were created\n\t\tfor (RegularLanguage re : rl) {\n\t\t\tif (re.equals(null)) {\n\t\t\t\tfail(); // object couldn't be created\n\t\t\t}\n\t\t}\n\n\t\t// a***** -> a*\n\t\tassertEquals(\"a*\", rl[0].getRE().getFormattedRegex());\n\t\t// aa????? -> a?\n\t\tassertEquals(\"a?\", rl[1].getRE().getFormattedRegex());\n\t\t// a+++++ -> a+\n\t\tassertEquals(\"a+\", rl[2].getRE().getFormattedRegex());\n\t\t// a?*?*?***???* -> a*\n\t\tassertEquals(\"a*\", rl[3].getRE().getFormattedRegex());\n\t\t// a?+?+?+++???+ -> a*\n\t\tassertEquals(\"a*\", rl[4].getRE().getFormattedRegex());\n\t\t// a*+*+*++++***+* -> a*\n\t\tassertEquals(\"a*\", rl[5].getRE().getFormattedRegex());\n\t\t// a?+*?+?***???+++***?+?*+* -> a*\n\t\tassertEquals(\"a*\", rl[6].getRE().getFormattedRegex());\n\t\t\t\n\t}", "public HashMap<String, String> compareNames(String name1, String name2) {\n\t\tcompare(name1, name2) ; \n\t\tHashMap<String, String> result = new HashMap<String, String>();\n\t\tresult.put(\"SCORE\", Float.toString(score));\n\t\tresult.put(\"SHINGLE\", Float.toString(scoreShingle));\n\t\tresult.put(\"REASON\", reason);\n\t\treturn result;\n\t}", "public void testFormatting()\r\n {\n \tassertNotNull(\"failed to create degree symbol\", DEGREE_SYMBOL);\r\n \tassertEquals(\"degree symbol wrong length\", 1, DEGREE_SYMBOL.length());\r\n \t\r\n WorldLocation la = new WorldLocation(0d, 0d, 0d);\r\n String res1 = \" 00\" + DEGREE_SYMBOL + \"00\\'00.00\\\" 000\" + DEGREE_SYMBOL + \"00\\'00.00\\\"\";\r\n super.assertEquals(\"first test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(-12.345);\r\n la.setLong(22.432);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'42.00\\\"S 022\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"second test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(12.34533);\r\n la.setLong(-22.43222);\r\n res1 = \" 12\" + DEGREE_SYMBOL + \"20\\'43.19\\\"N 022\" + DEGREE_SYMBOL + \"25\\'55.99\\\"W\";\r\n super.assertEquals(\"third test\", res1, BriefFormatLocation.toString(la));\r\n la.setLat(82.345);\r\n la.setLong(172.432);\r\n res1 = \" 82\" + DEGREE_SYMBOL + \"20\\'42.00\\\"N 172\" + DEGREE_SYMBOL + \"25\\'55.20\\\"E\";\r\n super.assertEquals(\"fourth test\", res1, BriefFormatLocation.toString(la));\r\n\r\n }", "@Test\n public void testExactness() {\n assertMetrics(\"exactness:1\", \"a b c\",\"a x b x x c\");\n assertMetrics(\"exactness:0.9\", \"a b c\",\"a x b:0.7 x x c\");\n assertMetrics(\"exactness:0.7\", \"a b c\",\"a x b:0.6 x x c:0.5\");\n assertMetrics(\"exactness:0.775\", \"a!200 b c\",\"a x b:0.6 x x c:0.5\");\n assertMetrics(\"exactness:0.65\", \"a b c!200\",\"a x b:0.6 x x c:0.5\");\n }", "@Test\n public void testSignificance() {\n assertMetrics(\"significance:1\", \"a\",\"a\");\n assertMetrics(\"significance:0\", \"a\",\"x\");\n assertMetrics(\"significance:0.3333\",\"a a a\",\"a\");\n assertMetrics(\"significance:1\", \"a\",\"a a a\");\n assertMetrics(\"significance:1\", \"a b c\",\"a b c\");\n assertMetrics(\"significance:1\", \"a b c\",\"x x a b x a x c x x a b x c c x\");\n\n assertMetrics(\"significance:0.3333\",\"a b c\",\"a\");\n assertMetrics(\"significance:0.6667\",\"a b c\",\"a b\");\n\n assertMetrics(\"significance:1\", \"a b c%0.2\",\"a b c\"); // Best\n assertMetrics(\"significance:0.75\",\"a b c%0.2\",\"b c\"); // Middle\n assertMetrics(\"significance:0.5\", \"a b c%0.2\",\"a b\"); // Worst\n\n assertMetrics(\"significance:1\",\"a%0.3 b c%0.2\",\"a b c\"); // Best too\n\n assertMetrics(\"significance:1\", \"a b c%0.05\",\"a b c\"); // Best\n assertMetrics(\"significance:0.6\",\"a b c%0.05\",\"b c\"); // Worse\n assertMetrics(\"significance:0.4\",\"a b c%0.05\",\"b\"); // Worse\n assertMetrics(\"significance:0.2\",\"a b c%0.05\",\"c\"); // Worst\n assertMetrics(\"significance:0.8\",\"a b c%0.05\",\"a b\"); // Middle\n\n assertMetrics(\"significance:1\", \"a b c%0\",\"a b c\"); // Best\n assertMetrics(\"significance:0.5\",\"a b c%0\",\"b c\"); // Worst\n assertMetrics(\"significance:1\", \"a b c%0\",\"a b\"); // As good as best\n assertMetrics(\"significance:0\", \"a b c%0\",\"c\"); // No contribution\n\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"a b\");\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"\");\n\n // The query also has other terms having a total significance of 0.3\n // so we add a significance parameter which is the sum of the significances of this query terms + 0.3\n assertMetrics(\"significance:0.25\", \"a\",\"a\",0.4f);\n assertMetrics(\"significance:0\", \"y\",\"a\",0.4f);\n assertMetrics(\"significance:0.1667\",\"a a a\",\"a\",0.6f);\n assertMetrics(\"significance:0.25\", \"a\",\"a a a\",0.4f);\n assertMetrics(\"significance:0.5\", \"a b c\",\"a b c\",0.6f);\n assertMetrics(\"significance:0.5\", \"a b c\",\"x x a b x a x c x x a b x c c x\",0.6f);\n\n assertMetrics(\"significance:0.1667\",\"a b c\",\"a\",0.6f);\n assertMetrics(\"significance:0.3333\",\"a b c\",\"a b\",0.6f);\n\n assertMetrics(\"significance:0.5714\",\"a b c%0.2\",\"a b c\",0.7f); // Best\n assertMetrics(\"significance:0.4286\",\"a b c%0.2\",\"b c\",0.7f); // Middle\n assertMetrics(\"significance:0.2857\",\"a b c%0.2\",\"a b\",0.7f); // Worst\n\n assertMetrics(\"significance:0.6667\",\"a%0.3 b c%0.2\",\"a b c\",0.9f); // Better than best\n\n assertMetrics(\"significance:0.4545\",\"a b c%0.05\",\"a b c\",0.55f); // Best\n assertMetrics(\"significance:0.2727\",\"a b c%0.05\",\"b c\",0.55f); // Worse\n assertMetrics(\"significance:0.1818\",\"a b c%0.05\",\"b\",0.55f); // Worse\n assertMetrics(\"significance:0.0909\",\"a b c%0.05\",\"c\",0.55f); // Worst\n assertMetrics(\"significance:0.3636\",\"a b c%0.05\",\"a b\",0.55f); // Middle\n\n assertMetrics(\"significance:0.4\",\"a b c%0\",\"a b c\",0.5f); // Best\n assertMetrics(\"significance:0.2\",\"a b c%0\",\"b c\",0.5f); // Worst\n assertMetrics(\"significance:0.4\",\"a b c%0\",\"a b\",0.5f); // As good as best\n assertMetrics(\"significance:0\", \"a b c%0\",\"c\",0.5f); // No contribution\n\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"a b\",0.3f);\n assertMetrics(\"significance:0\",\"a%0 b%0\",\"\",0.3f);\n }", "public int compareTo(Document o2) {\n return this.format.getClass().getSimpleName().compareTo(o2.getFormat().getClass().getSimpleName());\n }", "@Test\n public void testMatch() {\n assertMetrics(\"match:1\", \"a\",\"a\");\n assertMetrics(\"match:0.9339\",\"a\",\"a x\");\n assertMetrics(\"match:0\", \"a\",\"x\");\n assertMetrics(\"match:0.9243\",\"a\",\"x a\");\n assertMetrics(\"match:0.9025\",\"a\",\"x a x\");\n\n assertMetrics(\"match:1\", \"a b\",\"a b\");\n assertMetrics(\"match:0.9558\",\"a b\",\"a b x\");\n assertMetrics(\"match:0.9463\",\"a b\",\"x a b\");\n assertMetrics(\"match:0.1296\",\"a b\",\"a x x x x x x x x x x x x x x x x x x x x x x b\");\n assertMetrics(\"match:0.1288\",\"a b\",\"a x x x x x x x x x x x x x x x x x x x x x x x x x x x b\");\n\n assertMetrics(\"match:0.8647\",\"a b c\",\"x x a x b x x x x x x x x a b c x x x x x x x x c x x\");\n assertMetrics(\"match:0.861\", \"a b c\",\"x x a x b x x x x x x x x x x a b c x x x x x x c x x\");\n assertMetrics(\"match:0.4869\",\"a b c\",\"a b x x x x x x x x x x x x x x x x x x x x x x c x x\");\n assertMetrics(\"match:0.4853\",\"a b c\",\"x x a x b x x x x x x x x x x b a c x x x x x x c x x\");\n assertMetrics(\"match:0.3621\",\"a b c\",\"a x b x x x x x x x x x x x x x x x x x x x x x c x x\");\n assertMetrics(\"match:0.3619\",\"a b c\",\"x x a x b x x x x x x x x x x x x x x x x x x x c x x\");\n assertMetrics(\"match:0.3584\",\"a b c\",\"x x a x b x x x x x x x x x x x x x x x x x x x x x c\");\n assertMetrics(\"match:0.3474\",\"a b c\",\"x x a x b x x x x x x x x x x x x x x b x x x b x b x\");\n assertMetrics(\"match:0.3421\",\"a b c\",\"x x a x b x x x x x x x x x x x x x x x x x x x x x x\");\n assertMetrics(\"match:0.305\" ,\"a b c\",\"x x a x b:0.7 x x x x x x x x x x x x x x x x x x x x x x\");\n assertMetrics(\"match:0.2927\",\"a b!200 c\",\"x x a x b:0.7 x x x x x x x x x x x x x x x x x x x x x x\");\n }", "private void assertEqualsAfterParsingToDates(String assertion, String expected, String actual) {\n String expectedLines[] = expected.split(\"\\n\");\n String actualLines[] = actual.split(\"\\n\");\n assertEquals(assertion, expectedLines.length, actualLines.length);\n for (int i = 0; i < expectedLines.length; i++) {\n String expectedNameValue[] = expectedLines[i].split(\"=\");\n if (expectedNameValue.length != 2)\n fail(\"Syntax error: \" + expectedLines[i]);\n\n String actualNameValue[] = actualLines[i].split(\"=\");\n if (actualNameValue.length != 2)\n fail(\"Syntax error: \" + actualLines[i]);\n\n assertEquals(assertion, expectedNameValue[0], actualNameValue[0]);\n try {\n assertEquals(assertion, DateUtils.fromISO8601Format(expectedNameValue[1]), DateUtils\n .fromISO8601Format(actualNameValue[1]));\n } catch (ParseException e) {\n fail(e.getMessage());\n }\n }\n }", "private StringBuffer getFormattedOutput(StringBuffer displayData,\r\n \t\tString format)\r\n {\r\n \tString[] split = displayData.toString().split(\"!=!\");\r\n \tFormatter formatter = new Formatter();\r\n \tdisplayData = new StringBuffer(formatter.format(format,split).toString());\r\n \treturn displayData;\r\n }", "public void compare(String name1, String name2) {\n\t\tscore = 0.0f;\n\t\treason = \"\";\n\t\t\n\t\tNameInfo name1Info = new NameInfo(name1);\n\t\tNameInfo name2Info = new NameInfo(name2);\n\t\t\n\t\tString type1 = name1Info.getType();\n\t\tString type2 = name2Info.getType();\n\t\t\n\t\t// If enforced types are different and neither is generic\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type2.equals(type1)) {\n\t\t\tscore = 0.0f;\n\t\t\tscoreShingle = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tfixType(name1Info, name2Info);\n\t\t\n\t\ttype1 = name1Info.getType();\n\t\ttype2 = name2Info.getType();\n\t\t\n\t\tif (!type1.equals(NameInfo.GENERIC_TYPE) && !type2.equals(NameInfo.GENERIC_TYPE) && !type2.equals(type1)) {\n\t\t\tscore = 0.0f;\n\t\t\tscoreShingle = 0.0f;\n\t\t\treason = \"Types \" + type1 + \" and \" + type2 + \" cannot be compared\";\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint flag = 0;\n\t\t\n\t\tif (type1.equals(\"PER\") && type1.equals(type2))\n\t\t\tflag = 1;\n\t\telse if (type1.equals(\"LOC\") && type1.equals(type2))\n\t\t\tflag = 2;\n\t\telse if (type1.equals(\"ORG\") && type1.equals(type2))\n\t\t\tflag = 3;\n\t\telse if (type1.equals(\"GEN\") && type1.equals(type2))\n\t\t\tflag = 4;\n\t\telse\n\t\t\tflag = 5;\n\t\t\n\t\tscoring(name1Info, name2Info, flag);\n\t}", "@Test\n public void toStringTest() {\n String expected = \"Pepper Potts has an hourly salary of 16.00 and has worked 152 this month\";\n\n assertEquals(\"The expected string output does not match the actual\",\n expected, e1.toString());\n\n }", "@VTID(8)\r\n java.lang.String format();", "@Override\r\n\t\t\tpublic int compare(T o1, T o2) {\n\t\t\t\tString s1 = ((OWLProperty)o1).getIRI().getShortForm();\r\n\t\t\t\tString s2 = ((OWLProperty)o2).getIRI().getShortForm();\r\n\t\t\t\tif (s1.startsWith(\"'\")) {\r\n\t\t\t\t\ts1 = s1.substring(1, s1.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\tif (s2.startsWith(\"'\")) {\r\n\t\t\t\t\ts2 = s2.substring(1, s2.length() - 1);\r\n\t\t\t\t}\r\n\t\t\t\treturn s1.compareTo(s2);\r\n\t\t\t}", "@Test\n public void test_ToTableFormat() {\n System.out.println(\"Testing MeasuredRatioModel's toTableFormat()\");\n MeasuredRatioModel instance = new MeasuredRatioModel();\n String expResult = \"0 : 0\";\n String result = instance.toTableFormat();\n assertEquals(expResult, result);\n instance = new MeasuredRatioModel(\"Specific\",new BigDecimal(\"213\"),\"ABS\",new BigDecimal(\"0.4324\"),false,true);\n result = instance.toTableFormat();\n expResult=\"213 : 0.4324\";\n assertEquals(expResult, result);\n }", "private String format(final String format, final Object arg1, final Object arg2)\n\t{\n\t\treturn MessageFormatter.format(format, arg1, arg2).getMessage();\n\t}", "public static String stringFormat(String format, Object... objs) {\n\n String retVal = \"\";\n\n Pattern p = Pattern.compile(\"([{][^}]*[}])\");\n\n Matcher m = p.matcher(format);\n\n String individualFormat;\n int order = -1;\n int pos = -1;\n\n //loc_re.match(format);\n\n retVal = format;\n\n int loc_Conta = 0;\n\n while (m.find()) {\n\n if (m.group().length() == 0) {\n continue;\n }\n\n pos = m.group().indexOf(\":\");\n\n if (pos > 0) {\n individualFormat = m.group().substring(pos + 1, m.group().length() - pos + 1);\n\n order = Integer.parseInt(m.group().substring(1, pos));\n\n //Logger.getLogger(GeneralFunc.class).log(Level.DEBUG, \"individualFormat \" + individualFormat + \"orden: \" + order);\n\n retVal = retVal.replace(m.group(), formatObject(objs[order], individualFormat, '.'));\n } else {\n retVal = retVal.replace(m.group(), formatObject(objs[Integer.parseInt(m.group().substring(1, m.group().length() - 1))], \"\", '.'));\n }\n\n loc_Conta++;\n }\n\n\n return retVal;\n }", "@Override\n\t\t\tpublic int compare(Entry<String, Integer> o1, Entry<String, Integer> o2) {\n\t\t\t\treturn o2.getValue().compareTo(o1.getValue());\n\t\t\t}", "@Override\n\tpublic int compare(String[] arg0, String[] arg1) {\n\t\treturn Integer.parseInt(arg1[4]) - Integer.parseInt(arg0[4]);\n\t}", "public String getResult(){\n\t\tString result = String.format(\"%-10s%10d\", p1time,found);\n\t\treturn result;\n\t}", "private int compareInternal(String shorter, String longer) {\n int lengthDiff = longer.length() - shorter.length();\n\n for (int compareStartIndexInsideLonger = 0; compareStartIndexInsideLonger <= lengthDiff; compareStartIndexInsideLonger++) {\n String compariosonPartFromLonger = longer.substring(compareStartIndexInsideLonger, compareStartIndexInsideLonger + shorter.length());\n //we have found an answer if they are not equal\n int result = shorter.compareTo(compariosonPartFromLonger);\n if (result != 0) {\n return result;\n }\n }\n\n //the are equal\n return 0;\n }", "public boolean compare_same(String x, String y) {\n\t\tint fuzzy = 0;\n\t\tif (x.length() != y.length()) return false;\n\t\tfor (int i = 0, j = 0; i<x.length() && j<y.length();) {\n\t\t\tif (i>0 && x.charAt(i-1)=='_' && '0'<=x.charAt(i) && x.charAt(i)<='9') {\n\t\t\t\twhile (i<x.length() && '0'<=x.charAt(i) && x.charAt(i)<='9') i++;\n\t\t\t}\n\t\t\tif (j>0 && y.charAt(j-1)=='_' && '0'<=y.charAt(j) && y.charAt(j)<='9') {\n\t\t\t\twhile (j<y.length() && '0'<=y.charAt(j) && y.charAt(j)<='9') j++;\n\t\t\t}\n\t\t\tif (i<x.length() && j<y.length() && x.charAt(i) != y.charAt(j)) {\t\t\t\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\ti++; j++;\n\t\t}\n\t\treturn true;\n\t}", "public abstract boolean isParseCorrect();", "public void testParser() {\n\n String[] accessNetworkInfo = {\n\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd]; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; a-b.c1; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; 127.0.0.1; rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\"\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\";\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE;\\\"ip=123.123.123.123\\\"\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd];rand=l\\n\",\n \t\t\"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE; [123:4::abcd]\\n\",\n \"P-Access-Network-Info: IEEE-802.11\\n\",\n \"P-Access-Network-Info: 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE\\n\"\n\n };\n\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo);\n \n //test one more\n String[] accessNetworkInfo_2 = {\n \"P-Access-Network-Info: IEEE-802.11\\n\",\n \"P-Access-Network-Info: IEEE-802.11, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE\\n\",\n \"P-Access-Network-Info: IEEE-802.11, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDE, 3GPP-UTRAN-TDD; utran-cell-id-3gpp=23456789ABCDF\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN; utran-cell-id-3gpp=262010063F423802;network-provided,3GPP-E-UTRAN-FDD; utran-cell-id-3gpp=262010063F423802\\n\",\n \"P-Access-Network-Info: IEEE-802.11;i-wlan-node-id=74da38582ba4\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=262010063f423802\\n\",\n \"P-Access-Network-Info: 3GPP-E-UTRAN;utran-cell-id-3gpp=\\\"262010063F423802\\\";network-provided,3GPP-E-UTRAN-FDD;utran-cell-id-3gpp=262010063f423802\\n\"\n };\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo_2);\n String token = \"A1-.%*_+`'~\";\n String[] accessNetworkInfo_3 = {\n \"P-Access-Network-Info: IEEE-802.11; network-provided\\n\",\n \"P-Access-Network-Info: IEEE-802.11; ipv4=[2345:3456::]\\n\",\n //token\n \"P-Access-Network-Info: \"+token+\"\\n\",\n //hostname\n \"P-Access-Network-Info: IEEE-802.11;AaB123=www.example-test.example.com\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=www.example-test.example.com.\\n\",\n //IPv4address \n \"P-Access-Network-Info: IEEE-802.11;AaB123=1.1.1.1\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=0.0.0.0\\n\",\n //IPv6reference\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A::99B]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C:22D]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[::11C]\\n\",\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[11C::22D]\\n\",\n //hexpart [ \":\" IPv4address ]\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[11C::12.04.02.99]\\n\",\n //IPv6reference quoted\n \"P-Access-Network-Info: IEEE-802.11;AaB123=\\\"[11C::12.04.02.99]\\\"\\n\",\n //Multiple IP6\n \"P-Access-Network-Info: IEEE-802.11;AaB123=[88A:99B::11C:22D];cc231=[11C::12.04.02.99]\\n\",\n };\n super.testParser(PAccessNetworkInfoParser.class,accessNetworkInfo_3);\n\n }", "@Override\n public int compare(Entry<String, Integer> arg0, Entry<String, Integer> arg1) {\n if(arg0.getValue() == arg1.getValue()){\n return arg0.getKey().compareTo(arg1.getKey());\n } else {\n return arg1.getValue() - arg0.getValue();\n }\n }", "@Test\n public void fieldCompare() throws Exception {\n Document doc = new Document();\n DocumentBuilder builder = new DocumentBuilder(doc);\n\n FieldCompare field = (FieldCompare) builder.insertField(FieldType.FIELD_COMPARE, true);\n field.setLeftExpression(\"3\");\n field.setComparisonOperator(\"<\");\n field.setRightExpression(\"2\");\n field.update();\n\n // The COMPARE field displays a \"0\" or a \"1\", depending on its statement's truth.\n // The result of this statement is false so that this field will display a \"0\".\n Assert.assertEquals(\" COMPARE 3 < 2\", field.getFieldCode());\n Assert.assertEquals(\"0\", field.getResult());\n\n builder.writeln();\n\n field = (FieldCompare) builder.insertField(FieldType.FIELD_COMPARE, true);\n field.setLeftExpression(\"5\");\n field.setComparisonOperator(\"=\");\n field.setRightExpression(\"2 + 3\");\n field.update();\n\n // This field displays a \"1\" since the statement is true.\n Assert.assertEquals(\" COMPARE 5 = \\\"2 + 3\\\"\", field.getFieldCode());\n Assert.assertEquals(\"1\", field.getResult());\n\n doc.updateFields();\n doc.save(getArtifactsDir() + \"Field.COMPARE.docx\");\n //ExEnd\n\n doc = new Document(getArtifactsDir() + \"Field.COMPARE.docx\");\n\n field = (FieldCompare) doc.getRange().getFields().get(0);\n\n TestUtil.verifyField(FieldType.FIELD_COMPARE, \" COMPARE 3 < 2\", \"0\", field);\n Assert.assertEquals(\"3\", field.getLeftExpression());\n Assert.assertEquals(\"<\", field.getComparisonOperator());\n Assert.assertEquals(\"2\", field.getRightExpression());\n\n field = (FieldCompare) doc.getRange().getFields().get(1);\n\n TestUtil.verifyField(FieldType.FIELD_COMPARE, \" COMPARE 5 = \\\"2 + 3\\\"\", \"1\", field);\n Assert.assertEquals(\"5\", field.getLeftExpression());\n Assert.assertEquals(\"=\", field.getComparisonOperator());\n Assert.assertEquals(\"\\\"2 + 3\\\"\", field.getRightExpression());\n }", "@Test\r\n\tpublic void SickPersonCompTest () {\n\t\tAssert.assertEquals(\"compareToImpl incorrect, this.severity() > p.severity() issue\", -5, sp1.compareToImpl(sp2), 0.000001);\r\n\t//(2) this severity < p (expect positive number)\r\n\t\tAssert.assertEquals(\"compareToImpl incorrect, this.severity() < p.severity issue\", 5, sp2.compareToImpl(sp1),0.000001);\r\n\t//(3) this severity = p (expect 0)\r\n\t\tAssert.assertEquals(\"compareToImpl incorrect, Severity equal issue\",0, sp1.compareToImpl(sp3));\r\n\t//(4) p is HealthyPerson (expect -1)\r\n\t\tAssert.assertEquals(\"compareToImpl incorrect, p = HealthyPerson issue\", -1, sp1.compareToImpl(hp));\r\n\t}", "static void perform_cmp(String passed){\n\t\tint type = type_of_cmp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tcmp_with_reg(passed);\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tcmp_with_mem(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "private static DecimalFormat determineLabelFormat(List<Float> vals) {\n // determine format based on the average difference between the contours\n SortedSet<Float> sortedValues = new TreeSet<Float>(vals);\n Iterator<Float> iter = sortedValues.iterator();\n if (iter.hasNext()) {\n float prevVal = iter.next();\n int count = 0;\n double diffSum = 0;\n while (iter.hasNext()) {\n float val = iter.next();\n diffSum += val - prevVal;\n count++;\n prevVal = val;\n }\n return determineLabelFormat((float) (diffSum / count));\n } else {\n return determineLabelFormat(0.0f);\n }\n\n }", "@Test\n public void testCompareTo_1() {\n LOGGER.info(\"testCompareTo_1\");\n final AtomString atomString1 = new AtomString();\n final AtomString atomString2 = new AtomString();\n final int actual = atomString1.compareTo(atomString2);\n final int expected = 0;\n assertEquals(expected, actual);\n }" ]
[ "0.6167208", "0.60019606", "0.58150375", "0.5638989", "0.56049335", "0.5579927", "0.5569309", "0.5522801", "0.54836494", "0.5477982", "0.5473571", "0.5436063", "0.5414703", "0.54125845", "0.5410977", "0.53915364", "0.5332629", "0.5331976", "0.5312628", "0.5307005", "0.5286794", "0.5261863", "0.52499783", "0.5239036", "0.5228987", "0.5207031", "0.5195874", "0.5191256", "0.5170073", "0.51619196", "0.5161723", "0.51594526", "0.51564574", "0.5139154", "0.51248896", "0.51172286", "0.5106433", "0.5104863", "0.50715244", "0.5067258", "0.5063553", "0.5063168", "0.5061458", "0.5054889", "0.50300574", "0.50295603", "0.50259495", "0.5019684", "0.5014515", "0.4998149", "0.49945226", "0.49892688", "0.49889684", "0.49845785", "0.49805886", "0.49803287", "0.49777484", "0.49746007", "0.497382", "0.4965496", "0.49621987", "0.4959876", "0.49537563", "0.4945109", "0.49394816", "0.49326554", "0.49322823", "0.49237886", "0.49170256", "0.49120528", "0.49071273", "0.4902973", "0.4901538", "0.49006093", "0.48922807", "0.48889798", "0.48881388", "0.48864442", "0.48854992", "0.48824292", "0.4881107", "0.48767868", "0.48740658", "0.48690808", "0.48668596", "0.4865267", "0.4859478", "0.48590648", "0.48553243", "0.4855263", "0.48541355", "0.48531312", "0.48521042", "0.48428696", "0.48414686", "0.48350823", "0.4831413", "0.4830014", "0.4829986", "0.48296562", "0.48290017" ]
0.0
-1
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { jToolBar1 = new javax.swing.JToolBar(); btn_ejecutar = new javax.swing.JButton(); btn_limpiar = new javax.swing.JButton(); jPanel1 = new javax.swing.JPanel(); jTabbedPane1 = new javax.swing.JTabbedPane(); jScrollPane1 = new javax.swing.JScrollPane(); ta_source = new javax.swing.JTextArea(); jTabbedPane2 = new javax.swing.JTabbedPane(); jScrollPane2 = new javax.swing.JScrollPane(); ta_output = new javax.swing.JTextArea(); setClosable(true); setIconifiable(true); setMaximizable(true); setResizable(true); setTitle("Compilador JAVA UNIAJC"); setToolTipText(""); jToolBar1.setRollover(true); btn_ejecutar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/compiladoruniajc/recursos/flecha.png"))); // NOI18N btn_ejecutar.setToolTipText("Run"); btn_ejecutar.setFocusable(false); btn_ejecutar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btn_ejecutar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btn_ejecutar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_ejecutarActionPerformed(evt); } }); jToolBar1.add(btn_ejecutar); btn_limpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/compiladoruniajc/recursos/limpiar.png"))); // NOI18N btn_limpiar.setToolTipText("Clean"); btn_limpiar.setFocusable(false); btn_limpiar.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER); btn_limpiar.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM); btn_limpiar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btn_limpiarActionPerformed(evt); } }); jToolBar1.add(btn_limpiar); ta_source.setColumns(20); ta_source.setRows(5); jScrollPane1.setViewportView(ta_source); jTabbedPane1.addTab("Source", jScrollPane1); ta_output.setBackground(new java.awt.Color(0, 0, 0)); ta_output.setColumns(20); ta_output.setForeground(new java.awt.Color(102, 255, 51)); ta_output.setRows(5); jScrollPane2.setViewportView(ta_output); jTabbedPane2.addTab("Output", jScrollPane2); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 623, Short.MAX_VALUE) .addComponent(jTabbedPane2)) .addContainerGap()) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 192, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 111, Short.MAX_VALUE) .addContainerGap()) ); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public kunde() {\n initComponents();\n }", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public MusteriEkle() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73197734", "0.72914416", "0.72914416", "0.72914416", "0.72862023", "0.72487676", "0.7213741", "0.7207628", "0.7196503", "0.7190263", "0.71850693", "0.71594703", "0.7147939", "0.7093137", "0.70808756", "0.70566356", "0.6987119", "0.69778043", "0.6955563", "0.6953879", "0.6945632", "0.6943359", "0.69363457", "0.6931661", "0.6927987", "0.6925778", "0.6925381", "0.69117576", "0.6911631", "0.68930036", "0.6892348", "0.6890817", "0.68904495", "0.6889411", "0.68838716", "0.6881747", "0.6881229", "0.68778914", "0.6876094", "0.6874808", "0.68713", "0.6859444", "0.6856188", "0.68556464", "0.6855074", "0.68549985", "0.6853093", "0.6853093", "0.68530816", "0.6843091", "0.6837124", "0.6836549", "0.6828579", "0.68282986", "0.68268806", "0.682426", "0.6823653", "0.6817904", "0.68167645", "0.68102163", "0.6808751", "0.680847", "0.68083245", "0.6807882", "0.6802814", "0.6795573", "0.6794048", "0.6792466", "0.67904556", "0.67893785", "0.6789265", "0.6788365", "0.67824304", "0.6766916", "0.6765524", "0.6765339", "0.67571205", "0.6755559", "0.6751974", "0.67510027", "0.67433685", "0.67390305", "0.6737053", "0.673608", "0.6733373", "0.67271507", "0.67262334", "0.67205364", "0.6716807", "0.67148036", "0.6714143", "0.67090863", "0.67077154", "0.67046666", "0.6701339", "0.67006236", "0.6699842", "0.66981244", "0.6694887", "0.6691074", "0.66904294" ]
0.0
-1
End of variables declaration//GENEND:variables
private ArrayList limpiar() {//quita espacios en blanco y saltos de linea String codigoFuente = ta_source.getText(); ArrayList retorno = new ArrayList(); try { codigoFuente = codigoFuente.replaceAll(" ", ""); String aux = ""; byte guardaLinea = 1, guardaBloque = 1; for (int i = 0; i < codigoFuente.length(); i++) { if (codigoFuente.length() > (i + 1) && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i + 1) == '/' && guardaBloque == 1) { guardaLinea = 0;//0: no guarda } if (codigoFuente.length() > (i + 1) && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i + 1) == '*' && guardaLinea == 1) { guardaBloque = 0;//0: no guarda } if (i > 0 && codigoFuente.charAt(i) == '/' && codigoFuente.charAt(i - 1) == '*') { guardaBloque = 2;//1: si guarda } if (codigoFuente.charAt(i) == '\n' && guardaBloque == 1) { guardaLinea = 1;//1: si guarda if (aux.length() > 0) { retorno.add(aux); aux = ""; } } else { if (i == codigoFuente.length() - 1) { aux += codigoFuente.charAt(i); retorno.add(aux); } } if (guardaBloque == 1 && guardaLinea == 1 && codigoFuente.charAt(i) != '\n') { aux += codigoFuente.charAt(i); } if (guardaBloque == 2) { guardaBloque--; } } } catch (Exception e) { System.out.println("errror " + e.getClass()); } finally { return retorno; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
analiza la cuestion sintactica del fuente
private void casoFor(ArrayList codigoFuente) { try { String texto = "", linea = ""; String var[] = null; byte parenDerecho = 0; for (int i = 0; i < codigoFuente.size(); i++) { linea = codigoFuente.get(i).toString(); for (int j = 0; j < linea.length(); j++) { if (linea.charAt(j) == ')') { parenDerecho++; if (j < linea.length() - 1) { if (linea.charAt(j + 1) == '{') { var = contenidoFor(texto); if (var[0].equals("0")) { ta_output.setText("Línea " + (i + 1) + ":" + var[1]); break; } else { if (codigoFuente.get(codigoFuente.size() - 1).toString().charAt(codigoFuente.get(codigoFuente.size() - 1).toString().length() - 1) == '}') { ta_output.setText("Compilado Correctamente"); break; } else { ta_output.setText("Línea " + (codigoFuente.size() - 1) + ": Sintáctico: falta llave derecha"); break; } } } else { ta_output.setText("Línea " + (i + 1) + ": Sintáctico: falta llave izquierda"); break; } } else {//Evalua si la llave izquierda esta en la siguiente linea if (i < codigoFuente.size() - 1) { linea = codigoFuente.get(i + 1).toString(); if (linea.charAt(0) == '{') { var = contenidoFor(texto); if (var[0].equals("0")) { ta_output.setText("Línea " + (i + 1) + ":" + var[1]); break; } else { if (codigoFuente.get(codigoFuente.size() - 1).toString().charAt(codigoFuente.get(codigoFuente.size() - 1).toString().length() - 1) == '}') { ta_output.setText("Compilado Correctamente"); break; } else { ta_output.setText("Línea " + (codigoFuente.size()) + ": Sintáctico: falta llave derecha"); break; } } } else { ta_output.setText("Línea " + (i + 1) + ": Sintáctico: falta llave izquierda"); break; } } else { ta_output.setText("Línea " + (i + 1) + ": Sintáctico: falta llave izquierda"); break; } } } texto += linea.charAt(j); if (texto.equals("for")) { if (linea.length() > 5) { if (linea.charAt(j + 1) == '(') { texto = ""; } else { if (linea.charAt(j + 2) == '(') { ta_output.setText("Línea " + (i + 1) + ": Lexico: Caracter sobrante en sentencia for."); parenDerecho++; break; } else { parenDerecho++; ta_output.setText("Línea " + (i + 1) + ": Sintáctico: mala construcción de la sentencia."); break; } } } else { parenDerecho++; ta_output.setText("Línea " + (i + 1) + ": Sintáctico: mala construcción de la sentencia."); break; } } } } if (parenDerecho == 0) { ta_output.setText("Sintáctico: falta paréntesis Derecho"); } } catch (Exception e) { System.out.println("Error en caso for " + e.getClass()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void validSyntaxis(char[] fun){\n\t\tString valores = \"(a+/*-^\";\n\t\tString valores1 =\"(+/*-^\";\n\t\tString operadores =\"+/*-^\";\n\t\tString valores2 =\"(+-yzxuvwlmnjkpstc123456789e0ai\";\n\t\t//String valores2 =\"(+-xyzstc123456789e0ai\";\n\t\t//String valores3 =\"x1234567890\";\n\t\tString valores3 =\"x1234567890\";\n\t\tString valores4 =\"1234567890\";\n\t\tint pos = fun.length-1;\n\n\t\tif(pos == 0){\n\t\t\tif(valores2.indexOf(fun[pos]) == -1)\n\t\t\t\tcont++;\n\t\t\telse\n\t\t\t\tif(valores2.indexOf(fun[pos]) == 0)\n\t\t\t\t\tcont2++;\n\n\t\t}\n\n\t\telse if(pos >= 1){\n\t\t\tchar aux = fun[pos];\n\t\t\tchar aux2 = fun[pos-1];\n\n\t\t\t//Caracter 'a','A'\n\t\t\tif(aux == 'a'){\n\t\t\t\tif(valores1.indexOf(aux2) == -1 && aux2 != 't')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'i' || aux == 'e'){\n\t\t\t\tif(aux2 != 's' && valores1.indexOf(aux2) == -1)\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 's'){\n\t\t\t\tif(aux2 != 'c' && valores.indexOf(aux2) == -1 && aux2 != 'b' && aux2 != 'o')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'c'){\n\t\t\t\tif(aux2 != 's' && valores.indexOf(aux2) == -1 && aux2 != 'e')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 't'){\n\t\t\t\tif(aux2 != 'r' && valores.indexOf(aux2) == -1 && aux2 != 'o')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'o'){\n\t\t\t\tif(aux2 != 'c')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'b'){\n\t\t\t\tif(aux2 != 'a')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'n'){\n\t\t\t\tif(aux2 != 'i' && aux2 != 'a')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'x'){\n\t\t\t\tif(valores4.indexOf(aux2) != -1)\n\t\t\t\t\tcont++;\n\n\t\t\t}\n\n\n\t\t\telse if(aux == 'h'){\n\t\t\t\tif(aux2 != 'n' && aux2 != 's' && aux2 != 'c' && aux2 != 't')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == 'r'){\n\t\t\t\tif(aux2 != 'q')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '.'){\n\t\t\t\t\n\t\t\t\tif(valores4.indexOf(aux2) == -1)\n\t\t\t\t\tcont++;\n\n\t\t\t\tboolean existe = false;\n\t\t\t\tint i = pos;\n\t\t\t\twhile(operadores.indexOf(fun[i]) == -1 && i > 0){\n\t\t\t\t\tif(existe && fun[i] == '.'){\n\t\t\t\t\t\tcont++;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tif(fun[i] == '.')\n\t\t\t\t\t\texiste = true;\n\t\t\t\t\ti--;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\telse if(aux == 'q'){\n\t\t\t\tif(aux2 != 's')\n\t\t\t\t\tcont++;\n\t\t\t\tif(pos > 1)\n\t\t\t\t\tif(fun[pos-2] == 'o' || fun[pos-2] == 'b' || fun[pos-2] == 'c' || fun[pos-2] == 'a')\n\t\t\t\t\t\tcont++;\n\t\t\t}\n\t\t\n\t\t\telse if(valores3.indexOf(aux) != -1){\n\t\t\t\tif(valores1.indexOf(aux2) == -1 && aux2 != '(' && valores4.indexOf(aux2) == -1 && aux2 != '.')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '('){\n\t\t\t\tcont2++;\n\t\t\t\tif(aux2 != 'n' && aux2 != 's' && aux2 != 'c' && aux2 != 't' && aux2 != 'h' && valores1.indexOf(aux2) == -1)\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == ')'){\n\t\t\t\tcont2--;\n\t\t\t\tif(valores3.indexOf(aux2) == -1 && aux2 != ')')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '+' || aux == '-'){\n\t\t\t\tif(valores3.indexOf(aux2) == -1 && aux2 != ')' && aux2 != '(' && aux2 != '^')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\telse if(aux == '/' || aux == '*' || aux == '^'){\n\t\t\t\tif(valores3.indexOf(aux2) == -1 && aux2 != ')')\n\t\t\t\t\tcont++;\n\t\t\t}\n\n\t\t\tif((aux2 == '/' || aux2 == '*' || aux2 == '^') && pos == 1)\n\t\t\t\tcont++;\n\t\t}\n\n\t\tif(cont > 0 || cont2 != 0)\n\t\t\tthis.setBackground(Color.RED);\n\t\telse\n\t\t\tthis.setBackground(Color.GREEN);\n\t}", "protected void errorSyntaxis(){\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint pos = fun.length;\n\t\tfor(int i = pos; i > 0;i--)\n\t\t\tvalidSyntaxis(Arrays.copyOfRange(fun,0,i));\n\t}", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di cuocere il pollo\";\r\n }", "@Override\r\n public String AggiungiQualcosa() {\r\n// ritorna una stringa\r\n// perché qui ho informazioni in più\r\n return \"\\ne capace di friggere un uovo\";\r\n }", "public void PedirSintomas() {\n\t\t\r\n\t\tSystem.out.println(\"pedir sintomas del paciente para relizar el diagnosticoa\");\r\n\t}", "public FuncionesSemanticas(){\r\n\t}", "private void setFuncion(){\r\n if(!interpretador.checarParentesis(txtFuncion.getText()) && !interpretadorD.checarParentesis(txtFuncionD.getText())){\r\n Alert alert = new Alert(Alert.AlertType.ERROR);\r\n alert.setTitle(\"Información\");\r\n alert.setContentText(\"Error de sintaxis. Verifique que haya escrito la función correctamente\");\r\n alert.showAndWait();\r\n }else{\r\n interpretador.setFuncion(txtFuncion.getText());\r\n interpretadorD.setFuncion(txtFuncionD.getText());\r\n }\r\n }", "void aprovarAnalise();", "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }", "public String elegir();", "static public void verificaParametros()\r\n \r\n {\r\n SynthesizerModeDesc synthesizerModeDescTemp = (SynthesizerModeDesc)synthesizer.getEngineModeDesc();\r\n System.out.println(\"Nome do engine utilizado: \"+synthesizerModeDescTemp.getEngineName());\r\n System.out.println(\"Nome do modo de funcionamento utilizado: \"+synthesizerModeDescTemp.getModeName());\r\n \tSystem.out.println(\"Nome da localidade utilizada: \"+synthesizerModeDescTemp.getLocale().toString());\r\n \t\t//verifica a flag de controle\r\n if(synthesizerModeDescTemp.getRunning()!=null)\r\n if(synthesizerModeDescTemp.getRunning().booleanValue())\r\n System.out.println(\"Engine rodando.\");\r\n else\r\n System.out.println(\"Engine parado.\");\r\n else\r\n System.out.println(\"A flag de controle não foi setada e tem valor nulo.\");\r\n \t\t//mostra as vozes suportadas\r\n Voice[] VoiceTemp = synthesizerModeDescTemp.getVoices();\r\n for(int i=0;i<VoiceTemp.length;i++)\r\n {\r\n System.out.println(\"Voz numero \"+(i+1)+\" : \"+VoiceTemp[i].getName());\r\n }\r\n }", "public interface CompiladorConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int si = 5;\n /** RegularExpression Id. */\n int sino = 6;\n /** RegularExpression Id. */\n int elegir = 7;\n /** RegularExpression Id. */\n int caso = 8;\n /** RegularExpression Id. */\n int salir = 9;\n /** RegularExpression Id. */\n int falta = 10;\n /** RegularExpression Id. */\n int ent = 11;\n /** RegularExpression Id. */\n int largo = 12;\n /** RegularExpression Id. */\n int flot = 13;\n /** RegularExpression Id. */\n int doble = 14;\n /** RegularExpression Id. */\n int cad = 15;\n /** RegularExpression Id. */\n int bool = 16;\n /** RegularExpression Id. */\n int print = 17;\n /** RegularExpression Id. */\n int leer = 18;\n /** RegularExpression Id. */\n int function = 19;\n /** RegularExpression Id. */\n int mientras = 20;\n /** RegularExpression Id. */\n int hasta = 21;\n /** RegularExpression Id. */\n int hacer = 22;\n /** RegularExpression Id. */\n int inicio = 23;\n /** RegularExpression Id. */\n int fin = 24;\n /** RegularExpression Id. */\n int enojo = 25;\n /** RegularExpression Id. */\n int palito = 26;\n /** RegularExpression Id. */\n int grados = 27;\n /** RegularExpression Id. */\n int admira1 = 28;\n /** RegularExpression Id. */\n int admira2 = 29;\n /** RegularExpression Id. */\n int pesos = 30;\n /** RegularExpression Id. */\n int amperson = 31;\n /** RegularExpression Id. */\n int comilla1 = 32;\n /** RegularExpression Id. */\n int abrepregunta = 33;\n /** RegularExpression Id. */\n int comilla2 = 34;\n /** RegularExpression Id. */\n int comilla3 = 35;\n /** RegularExpression Id. */\n int dospuntosarriba = 36;\n /** RegularExpression Id. */\n int culebrita = 37;\n /** RegularExpression Id. */\n int guionbajo = 38;\n /** RegularExpression Id. */\n int gato = 39;\n /** RegularExpression Id. */\n int abreparentesis = 40;\n /** RegularExpression Id. */\n int cierraparentesis = 41;\n /** RegularExpression Id. */\n int abrellave = 42;\n /** RegularExpression Id. */\n int cierrallave = 43;\n /** RegularExpression Id. */\n int abrecorchete = 44;\n /** RegularExpression Id. */\n int cierracorchete = 45;\n /** RegularExpression Id. */\n int comillas = 46;\n /** RegularExpression Id. */\n int gatito = 47;\n /** RegularExpression Id. */\n int puntocoma = 48;\n /** RegularExpression Id. */\n int punto = 49;\n /** RegularExpression Id. */\n int coma = 50;\n /** RegularExpression Id. */\n int dospuntos = 51;\n /** RegularExpression Id. */\n int suma = 52;\n /** RegularExpression Id. */\n int resta = 53;\n /** RegularExpression Id. */\n int multiplicar = 54;\n /** RegularExpression Id. */\n int dividir = 55;\n /** RegularExpression Id. */\n int modulo = 56;\n /** RegularExpression Id. */\n int potencia = 57;\n /** RegularExpression Id. */\n int y = 58;\n /** RegularExpression Id. */\n int o = 59;\n /** RegularExpression Id. */\n int menor = 60;\n /** RegularExpression Id. */\n int mayor = 61;\n /** RegularExpression Id. */\n int menorigual = 62;\n /** RegularExpression Id. */\n int mayorigual = 63;\n /** RegularExpression Id. */\n int igual = 64;\n /** RegularExpression Id. */\n int diferente = 65;\n /** RegularExpression Id. */\n int asignacion = 66;\n /** RegularExpression Id. */\n int aumento = 67;\n /** RegularExpression Id. */\n int decremento = 68;\n /** RegularExpression Id. */\n int num = 69;\n /** RegularExpression Id. */\n int flotante = 70;\n /** RegularExpression Id. */\n int booleano = 71;\n /** RegularExpression Id. */\n int nulo = 72;\n /** RegularExpression Id. */\n int unicodeMin = 73;\n /** RegularExpression Id. */\n int unicodeMay = 74;\n /** RegularExpression Id. */\n int unicodeSimb = 75;\n /** RegularExpression Id. */\n int cadena = 76;\n /** RegularExpression Id. */\n int comentario = 77;\n /** RegularExpression Id. */\n int ident = 78;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\n\\\"\",\n \"<si>\",\n \"<sino>\",\n \"<elegir>\",\n \"<caso>\",\n \"<salir>\",\n \"<falta>\",\n \"<ent>\",\n \"<largo>\",\n \"<flot>\",\n \"<doble>\",\n \"<cad>\",\n \"<bool>\",\n \"<print>\",\n \"<leer>\",\n \"<function>\",\n \"<mientras>\",\n \"<hasta>\",\n \"<hacer>\",\n \"<inicio>\",\n \"<fin>\",\n \"\\\"\\\\u00ac\\\"\",\n \"\\\"|\\\"\",\n \"\\\"\\\\u00b0\\\"\",\n \"\\\"!\\\"\",\n \"\\\"\\\\u00a1\\\"\",\n \"\\\"$\\\"\",\n \"\\\"&\\\"\",\n \"\\\"\\\\\\'\\\"\",\n \"\\\"\\\\u00bf\\\"\",\n \"\\\"\\\\u00b4\\\"\",\n \"\\\"`\\\"\",\n \"\\\"\\\\u00a8\\\"\",\n \"\\\"~\\\"\",\n \"\\\"_\\\"\",\n \"\\\"#\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\"\\\\\\\"\\\"\",\n \"\\\"//\\\"\",\n \"\\\";\\\"\",\n \"\\\".\\\"\",\n \"\\\",\\\"\",\n \"\\\":\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"%\\\"\",\n \"\\\"^\\\"\",\n \"\\\"&&\\\"\",\n \"\\\"||\\\"\",\n \"\\\"<\\\"\",\n \"\\\">\\\"\",\n \"\\\"<=\\\"\",\n \"\\\">=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"=\\\"\",\n \"\\\"++\\\"\",\n \"\\\"--\\\"\",\n \"<num>\",\n \"<flotante>\",\n \"<booleano>\",\n \"\\\"null\\\"\",\n \"<unicodeMin>\",\n \"<unicodeMay>\",\n \"<unicodeSimb>\",\n \"<cadena>\",\n \"<comentario>\",\n \"<ident>\",\n };\n\n}", "@Override\n\tpublic void initialisation_type_exercice() {\n\t\tthis.setEnnonce_exo(\"Ecrire un algorithme qui demande deux nombres à l’utilisateur et l’informe ensuite si le produit est négatif ou positif (on inclut cette fois le traitement du cas où le produit peut être nul). Attention toutefois, on ne doit pas calculer le produit !\");\n\n\t}", "public interface Jefes {\n\n//Los metodos de las intefeces no utilizan llaves\n String tomar_decisiones(String decision);\n\n \n\n\n \n}", "public void RealizarDiagnostico() {\n\t\tSystem.out.println(\"realizar dicho diagnostico con los sintomas presentados por el paciente\");\r\n\t}", "private void validExpresion(){\n\t\tString valores =\"+/*-^sinbqrcotah.\";\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint tam = fun.length-1;\n\t\tif(tam > 0){\n\t\t\tif(valores.indexOf(fun[tam]) != -1){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t\t}\n\t\t}\n\n\t\tif(this.getText().equals(\"+\") || this.getText().equals(\"-\") || this.getText().equals(\".\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"s\") || this.getText().equals(\"c\") || this.getText().equals(\"t\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"(\") || this.getText().equals(\"a\") || this.getText().equals(\"i\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\t}", "private String[] condicionGeneral(String condicion) {\n String retorno[] = new String[2];\n try {\n String[] simbolos = {\"<=\", \">=\", \"==\", \"!=\", \"<\", \">\"};\n String simbolo = \"0\";\n\n if (condicion.length() > 3) {\n condicion = condicion.substring(1, condicion.length());\n for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion\n if (condicion.contains(simbolos[i])) {\n simbolo = simbolos[i];\n break;\n }\n }\n if (simbolo.equals(\"0\")) {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n } else {\n String var[] = condicion.split(simbolo);\n if (var.length == 2) {\n if (esNumero(var[0])) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[1].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n byte aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letras \n byte aux = 0;\n for (int i = 0; i < codigo.size(); i++) {\n if (var[0].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n if (esNumero(var[1])) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n if (var[0].matches(\"[a-zA-Z]*\")) { //comprueba que solo contenga letas \n aux = 0;\n\n for (int i = 0; i < codigo.size(); i++) {\n if (var[1].equals(codigo.get(i).toString())) {\n aux++;\n }\n }\n if (aux > 0) {\n retorno[0] = \"1\";\n retorno[1] = \"\";\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[1] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"no se reconoce la variable \" + var[0] + \".\";\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n }\n } else {\n retorno[0] = \"0\";\n retorno[1] = \"mala construcción de la sentencia.\";\n }\n\n\n\n } catch (Exception e) {\n System.out.println(\"Error en condicion \" + e.getClass());\n } finally {\n return retorno;\n }\n }", "public abstract void ataca(String inamic);", "public static void main(String[] args) {\n\t \t\n GestionQuestion question = new GestionQuestion();\t \n String[] tab;\n int alea = question.getRdmNumber(); \n \n Scanner sc = new Scanner(System.in);\n \n \n System.out.println(question.getQuestion());\n System.out.println(\"Duo Carre Hexa\");\n String str = sc.nextLine();\n// while(str.equals(\"Duo\") || str.compareTo(\"Carre\")!=0 || str.compareTo(\"Hexa\")!=0){\n// \tstr = sc.nextLine();\n// \tSystem.out.println(\"Vous avez tapé :\" + str);\n// \tSystem.out.println(\"Duo Carre Hexa\");\n// }\n \n if(str.compareTo(\"Duo\")==0){\n \tSystem.out.println(question.getQuestion());\n \ttab=question.getAleaObjectQuestion(alea).duo();\n \t\n }else if(str.compareTo(\"Carre\")==0){\n \tSystem.out.println(question.getQuestion());\n \ttab=question.getAleaObjectQuestion(alea).carre();\n }else{\n \tSystem.out.println(question.getQuestion());\n \ttab=question.getAleaObjectQuestion(alea).hexa();\n }\n for(int i=0; i<tab.length;i++){\n \tSystem.out.println(tab[i]);\n }\n int nb = sc.nextInt();\n String[] tabReponse;\n tabReponse = question.getAleaObjectQuestion(alea).getQuestionReponse();\n \n if(question.getAleaObjectQuestion(alea).bonneReponse(tabReponse[nb])){\n \tSystem.out.println(\"Bravo !\");\n }\n else{\n \tSystem.out.println(\"Faux !\");\n }\n\t}", "public String elegirtipoqueso(){\n //es un metodo void, o string?\n \n Scanner entrada = new Scanner(System.in);\n int queso;\n System.out.println(\"Elije el queso que deseas\");\n System.out.println(\"1.- Parmesano\");\n System.out.println(\"2.- Mozzalera\");\n queso = entrada.nextInt();\n if (queso==1){\n \n Scanner entrada2 = new Scanner(System.in);\n System.out.println(\"¿Cuantas pizzas deses comprar?\");\n int valor2 = entrada2.nextInt();\n int tamano;\n int c1=75*valor2,m1=89*valor2,g1=112*valor2,f1=135*valor2;\n System.out.println(\"Elije el tamaño\");\n System.out.println(\"1.- Chica \"+c1/valor2+\"$\"); \n System.out.println(\"2.-Mediana \"+m1/valor2+\"$\"); \n System.out.println(\"3.-Grande \"+g1/valor2+\"$\");\n System.out.println(\"4.-Familiar \"+f1/valor2+\"$\");\n tamano = entrada2.nextInt();\n String t2 = String.valueOf(tamano);\n if (tamano==1){\n System.out.println(\"La pizza se corta en 4 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+c1+\"$\");\n }\n else if(tamano==2){\n System.out.println(\"La pizza se corta en 8 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+m1+\"$\");\n }\n else if(tamano==3){\n System.out.println(\"La pizza se corta en 12 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+g1+\"$\");\n }\n else if(tamano==4){\n System.out.println(\"La pizza se corta en 16 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+f1+\"$\");\n }\n return t2;\n }\n if (queso==2){\n Scanner entrada3 = new Scanner(System.in);\n int tamano2;\n System.out.println(\"¿Cuantas pizzas desea comprar?\");\n int valor2 = entrada3.nextInt();\n int c2=89*valor2,m2=115*valor2,g2=135*valor2,f2=175*valor2;\n System.out.println(\"Elije el tamaño\");\n System.out.println(\"1.- Chica \"+c2/valor2+\"$\"); \n System.out.println(\"2.-Mediana \"+m2/valor2+\"$\"); \n System.out.println(\"3.-Grande \"+g2/valor2+\"$\");\n System.out.println(\"4.-Familiar \"+f2/valor2+\"$\");\n tamano2 = entrada3.nextInt();\n String t2 = String.valueOf(tamano2);\n if (tamano2==1){\n System.out.println(\"La pizza se corta en 4 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+c2+\"$\");\n }\n else if(tamano2==2){\n System.out.println(\"La pizza se corta en 8 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+m2+\"$\");\n }\n else if(tamano2==3){\n System.out.println(\"La pizza se corta en 12 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+g2+\"$\");\n }\n else if(tamano2==4){\n System.out.println(\"La pizza se corta en 16 partes iguales\");\n System.out.println(\"La cantidad a pagar es de \"+f2+\"$\");\n }\n return t2;\n }\n String q = String.valueOf(queso);\n return q;\n }", "private void strin() {\n\n\t}", "void prosegui(String messaggio);", "@Override\n\tpublic void preparar() {\n\t\tSystem.out.println(\"massa, presunto, queijo, calabreza e cebola\");\n\t\t\n\t}", "public String seletor(String frase) {\n\n\t\ttry {\n\n\t\t\tif (frase.contains(\"valem\")) {\n\t\t\t\tmap.mapeamentoProduto(frase, valores, produtos);\n\t\t\t\treturn null;\n\t\t\t} else if (frase.contains(\"quanto vale \")) {\n\t\t\t\tString[] array = frase.replace(\"quanto vale \", \"\").replace(\" ?\", \"\").split(\" \");\n\t\t\t\tDouble valor = calc.calculaValor(array, valores);\n\t\t\t\tString mensagem = \"\";\n\t\t\t\tfor (String s : array) {\n\t\t\t\t\tmensagem = mensagem.concat(s + \" \");\n\t\t\t\t}\n\t\t\t\treturn mensagem + \"vale \" + valor.toString();\n\n\t\t\t} else if (frase.contains(\"quantos créditos\"))\n\n\t\t\t{\n\t\t\t\tString[] array = frase.replace(\"quantos créditos são \", \"\").replace(\" ?\", \"\").split(\" \");\n\t\t\t\tDouble valor = calc.calculaCreditos(array, valores , produtos);\n\t\t\t\tString mensagem = \"\";\n\t\t\t\tfor (String s : array) {\n\t\t\t\t\tmensagem = mensagem.concat(s + \" \");\n\t\t\t\t}\n\t\t\t\treturn mensagem + \"custa \" + valor.toString() + \" créditos\";\n\t\t\t} else if ((frase.split(\" \").length == 3) && frase.contains(\" representa \")) {\n\t\t\t\tmap.mapeamentoValor(frase,valores);\n\t\t\t\treturn null;\n\t\t\t} else {\n\t\t\t\treturn \"Nem ideia do que isto significa!\";\n\t\t\t}\n\t\t} catch (RuntimeException e) { // numero invalidos por qualquer motivo (XXXX , XIC, etc) são tratados como entrada invalida\n\t\t\treturn \"Nem ideia do que isto significa!\";\n\t\t}\n\t}", "protected void setExplain(int line, int one, int two) {\r\n String a = setToInfinity(one);\r\n String b = setToInfinity(two);\r\n String text;\r\n switch (line) {\r\n case 0:\r\n text = \"Aufruf mit: negascout(\" + a + \",\" + b + \")\";\r\n break;\r\n case 1:\r\n text = \"\\u00DCberpr\\u00FCfe, ob node ein Blatt ist\";\r\n break;\r\n case 2:\r\n text = \"Der Blattknoten wird zu \" + a + \" ausgewertet\";\r\n break;\r\n case 3:\r\n text = \"a = \" + a;\r\n break;\r\n case 4:\r\n text = \"b = \" + a;\r\n break;\r\n case 5:\r\n text = \"Iteriere \\u00FCber alle Kindknoten.\";\r\n break;\r\n case 60:\r\n text = \"Negierter Aufruf auf dem ersten Kindknoten\";\r\n break;\r\n case 61:\r\n text = \"Negierter Aufruf mit minimalem Fenster\";\r\n break;\r\n case 62:\r\n text = \"score = \" + a;\r\n break;\r\n case 7:\r\n text = \"\\u00FCberpr\\u00FCfe, ob Fail High vorliegt\";\r\n break;\r\n case 8:\r\n text = \"Erneuter Aufruf mit dem gesamten Fenster\";\r\n break;\r\n case 90:\r\n text = \"alpha = max( \" + a + \", \" + b + \" ) = \" + a;\r\n break;\r\n case 91:\r\n text = \"alpha = max( \" + a + \", \" + b + \" ) = \" + b;\r\n break;\r\n case 100:\r\n text = \"alpha = \" + a + \" ist gr\\u00F6\\u00DFer als beta = \" + b;\r\n break;\r\n case 101:\r\n text = \"alpha = \" + a + \" ist kleiner als beta = \" + b;\r\n break;\r\n case 110:\r\n text = \"Es wird ein Cutoff durchgef\\u00FChrt\";\r\n break;\r\n case 111:\r\n text = \"Der Cutoff ist irrelevant, weil es keine weiteren Kinder gibt.\";\r\n break;\r\n case 12:\r\n text = \"Setze neues minimales Fenster mit b =\" + a;\r\n break;\r\n case 14:\r\n text = \"Der letzte Kindknoten wurde betrachtet.\";\r\n break;\r\n case 200:\r\n text = \"Der Algorithmus gibt das Ergebnis \" + a + \" zur\\u00FCck.\";\r\n break;\r\n default:\r\n text = \"\";\r\n\r\n }\r\n explain.setText(text, null, null);\r\n }", "public static void main(String[] args) {\n\t\tString variavel_seprada_com_underline;\n\t\t\n\t\t//padrao camelCase\n\t\tString variavelJuntaComCamelCase;\n\t\t\n\t\t// valido porem estranho\n\t\tint _numero = 1;\n\t\t\n\t\tSystem.out.println(_numero);\n\t\t\n\t\t//valido porem mais estranho ainda! Parece PHP\n\t\tint $outroNumero = 1;\n\t\t\n\t\tSystem.out.println($outroNumero);\n\t\t\n\t\t/*\n\t\t * nao pode iniciar com caracteres especiais\n\t\t\n\t\tString 1um;\n\t\t\n\t\tint @arroba;\n\t\t\n\t\tString *texto\n\t\t\n\t\t */\n\t\t\n\t}", "public void ektypwsiSintagis() {\n\t\t// Elegxw an yparxoun syntages\n\t\tif(numOfPrescription != 0)\n\t\t{\n\t\t\tfor(int i = 0; i < numOfPrescription; i++)\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"INFO FOR PRESCRIPTION No.\" + (i+1) + \":\");\n\t\t\t\tprescription[i].print();\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"DEN YPARXOUN DIATHESIMES SYNTAGES PROS EMFANISH!\");\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void faites(Langage param) {\n if (param.equals(Langage.JAVA)) {\n System.out.println(\"Faites à la façon n°1\");\n } else {\n System.out.println(\"Faites à la façon n°2\");\n }\n }", "public interface EG1Constants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int INT = 6;\n /** RegularExpression Id. */\n int REAL = 7;\n /** RegularExpression Id. */\n int BOOL = 8;\n /** RegularExpression Id. */\n int LIST = 9;\n /** RegularExpression Id. */\n int STR = 10;\n /** RegularExpression Id. */\n int CARACT = 11;\n /** RegularExpression Id. */\n int SE = 12;\n /** RegularExpression Id. */\n int SENAO = 13;\n /** RegularExpression Id. */\n int SENAOSE = 14;\n /** RegularExpression Id. */\n int ENQUANTO = 15;\n /** RegularExpression Id. */\n int PARA = 16;\n /** RegularExpression Id. */\n int VERDADEIRO = 17;\n /** RegularExpression Id. */\n int FALSO = 18;\n /** RegularExpression Id. */\n int IMPRIMIR = 19;\n /** RegularExpression Id. */\n int MAIS = 20;\n /** RegularExpression Id. */\n int MENOS = 21;\n /** RegularExpression Id. */\n int MULTIPLICAR = 22;\n /** RegularExpression Id. */\n int DIVIDIR = 23;\n /** RegularExpression Id. */\n int ATRIBUICAO = 24;\n /** RegularExpression Id. */\n int MAIOR = 25;\n /** RegularExpression Id. */\n int MENOR = 26;\n /** RegularExpression Id. */\n int MAIOR_IGUAL = 27;\n /** RegularExpression Id. */\n int MENOR_IGUAL = 28;\n /** RegularExpression Id. */\n int IGUAL = 29;\n /** RegularExpression Id. */\n int DIFERENTE = 30;\n /** RegularExpression Id. */\n int ABRE_PARENTESES = 31;\n /** RegularExpression Id. */\n int FECHA_PARENTESES = 32;\n /** RegularExpression Id. */\n int ABRE_CHAVES = 33;\n /** RegularExpression Id. */\n int FECHA_CHAVES = 34;\n /** RegularExpression Id. */\n int ABRE_COLCHETE = 35;\n /** RegularExpression Id. */\n int FECHA_COLCHETE = 36;\n /** RegularExpression Id. */\n int PONTO_VIRGULA = 37;\n /** RegularExpression Id. */\n int VIRGULA = 38;\n /** RegularExpression Id. */\n int PONTO = 39;\n /** RegularExpression Id. */\n int CONSTANTE_INT = 40;\n /** RegularExpression Id. */\n int CONSTANTE_REAL = 41;\n /** RegularExpression Id. */\n int DIGITO = 42;\n /** RegularExpression Id. */\n int VARIAVEL = 43;\n /** RegularExpression Id. */\n int CARACTERE = 44;\n\n /** Lexical state. */\n int DEFAULT = 0;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"\\\" \\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\"\\\\t\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\f\\\"\",\n \"\\\"INT\\\"\",\n \"\\\"REAL\\\"\",\n \"\\\"BOOL\\\"\",\n \"\\\"LIST\\\"\",\n \"\\\"STR\\\"\",\n \"\\\"CARACT\\\"\",\n \"\\\"SE\\\"\",\n \"\\\"SENAO\\\"\",\n \"\\\"SENAOSE\\\"\",\n \"\\\"ENQUANTO\\\"\",\n \"\\\"PARA\\\"\",\n \"\\\"VERDADEIRO\\\"\",\n \"\\\"FALSO\\\"\",\n \"\\\"IMPRIMIR\\\"\",\n \"\\\"+\\\"\",\n \"\\\"-\\\"\",\n \"\\\"*\\\"\",\n \"\\\"/\\\"\",\n \"\\\"=\\\"\",\n \"\\\">\\\"\",\n \"\\\"<\\\"\",\n \"\\\" >=\\\"\",\n \"\\\"<=\\\"\",\n \"\\\"==\\\"\",\n \"\\\"!=\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\";\\\"\",\n \"\\\",\\\"\",\n \"\\\".\\\"\",\n \"<CONSTANTE_INT>\",\n \"<CONSTANTE_REAL>\",\n \"<DIGITO>\",\n \"<VARIAVEL>\",\n \"<CARACTERE>\",\n };\n\n}", "@Override\n public ArrayList<String> checkSemantics(SymbolTable env) {\n ArrayList<String> res = new ArrayList<>();\n\n // entro in un nuovo livello di scope\n env.entryNewScope();\n\n //checkSemantic di tutti i parametri\n for (ParameterNode param : parameterNodeArrayList) {\n res.addAll(param.checkSemantics(env));\n }\n\n //checkSemantic di tutte le dichiarazioni interne alla funzione\n if (declarationsArrayList.size() > 0) {\n env.setOffset(-2);\n for (INode n : declarationsArrayList)\n res.addAll(n.checkSemantics(env));\n }\n\n //checkSemantic del corpo della funzione\n res.addAll(body.checkSemantics(env));\n\n //esco dal livello di scope\n env.exitLastScope();\n\n //ritorno eventuali errori rilevati\n return res;\n }", "java.lang.String getPrenume();", "public void main(String[] args) {\n\t\tManipulationChaine car = new ManipulationChaine();\n\n\t\tchar premierCaractere = car.chaine.charAt(0);\n\t\tint longueur = car.chaine.length();\n\t\tint index = car.chaine.indexOf(';');\n\t\tString familyName = car.chaine.substring(0,index);\n\t\tString majName = familyName.toUpperCase();\n\t\tString minName = familyName.toLowerCase();\n\t\tString[] allChar = car.chaine.split(\";\");\n\t\tSystem.out.println(\"Premier caractère: \" + premierCaractere);\n\t\tSystem.out.println(\"Le longueur de la chaine est de: \" + longueur);\n\t\tSystem.out.println(\"Le caractère ; se trouve a l'index: \" + index);\n\t\tSystem.out.println(\"Le nom de famille est : \" + familyName);\n\t\tSystem.out.println(\"Le nom de famille en majuscule est: \" + majName);\n\t\tSystem.out.println(\"Le nom de famille en minuscule est: \" + minName);\n\t\tSystem.out.println(Arrays.toString(allChar));\n\t\tallChar[2] = allChar[2].replace(\" \",\"\");\n\t\tdouble salaire = Double.parseDouble(allChar[2]); \n\t\tSalarie newSalarie = new Salarie(allChar[0],allChar[1],salaire);\n\t\t\n\t\tSystem.out.println(newSalarie.toString());\n\t\t\n\t\t\n\t\t\n\t}", "public boolean interpreta(String com[]){\n\t\tint i, contv = 0, j;\n\t\tchar tok;\n\t\tString aux;\n\t\t\n\t\tfor(i = 0 ; i < com.length && com[i] != null; i++){\n\t\t\tcom[i]=com[i].trim();\n\t\t\tcom[i]=com[i].trim();\n\t\t\tcom[i]=com[i].replace(\"fimenquanto\",\"#\");\n\t\t\tcom[i]=com[i].replace(\"fimse\",\"*\");\n\t\t\tcom[i]=com[i].replace(\"else\",\",\");\n\t\t\tcom[i]=com[i].replace(\"se\",\".\");\n\t\t\tcom[i]=com[i].replace(\"op\",\"$\");\n\t\t\tcom[i]=com[i].replace(\":\",\"[\");//Para chamar a funcao abacaxi:\n\t\t\tcom[i]=com[i].replace(\"{\",\"+\");\n\t\t\tcom[i]=com[i].replace(\"}\",\"-\");\n\t\t\tcom[i]=com[i].replace(\"end\",\":\");//Fim do ELSE\n\t\t\tcom[i]=com[i].replace(\"enquanto\",\"@\");\n\t\t\tcom[i]=com[i].replace(\"imprime\",\"%\");\n\t\t\tcom[i]=com[i].replace(\"le\",\"?\");\n\t\t}\n\t\tboolean baleado=false;\n\t\tint salvaFuncao = 0, jaEntrou = 1;\n\t\tMate mat = new Mate();\n\n\t\tfor(i = 0; i < (com.length - 1) && com[i] != null; ++i){\n\t\t\ttok = com[i].charAt(0);\n\t\t\taux = com[i].substring(1);\n\t\t\taux = aux.trim();\n\t\t\t\n\t\t\tswitch(tok){//Caso IF\n\t\t\t\tcase '.':\n\t\t\t\t\tbaleado = Logico.funcaoSe(var, aux, 2);\n\t\t\t\t\tif(baleado == false){\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ',': //Caso ELSE IF\n\t\t\t\t\tif(baleado){\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '*': \t//fim if\n\t\t\t\t\tbreak;\n\t\t\t\tcase ':': //fim ELSE\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '$': \t//criar variavel\n\t\t\t\t\tString[] nova = aux.split(\"=\");\n\t\t\t\t\tString nok = new String();\n\t\t\t\t\tnova[1] = nova[1].trim();\n\t\t\t\t\tnok = nova[1].substring(0);\n\t\t\t\t\t//double valor = Mate.soma(nova[1], var);\n\t\t\t\t\tint jaka,contador;\n\t\t\t\t\tdouble value;\n\t\t\t\t\tchar jui = ' ';\n\t\t\t\t\tfor(jaka=0,contador=0; jaka < nok.length(); ++jaka){\n\t\t\t\t\t\tjui = nova[1].charAt(jaka);\n\t\t\t\t\t\tif(jui == '+' || jui == '-' || jui == '*' || jui == '/')\n\t\t\t\t\t\t\tcontador++;\n\t\t\t\t\t}\n\t\t\t\t\tif(contador > 0){\n\t\t\t\t\t\tvalue = mat.calcula(nok, 0, var);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tvalue = Mate.soma(nova[1], var);\n\t\t\t\t\t}\n\t\t\t\t\tnova[0] = nova[0].trim();\n\t\t\t\t\tvar.atlVar( nova[0] , value);\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '@':\t//while\n\t\t\t\t\tif(Logico.funcaoSe(var, aux, 1) == true){\n\t\t\t\t\t\tlaco.push(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '#':\t//fim while\n\t\t\t\t\tif(laco.vazio() == true){\n\t\t\t\t\t\t//if(com[laco.pop()].charAt(0) == '@'){\n\t\t\t\t\t\t\ti = (laco.pop() - 1);\n\t\t\t\t\t\t//}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase '[': //Onde está a FUNCAO. Necessário guardar essa posicao\n\t\t\t\t\tsalvaFuncao = i;\n\t\t\t\t\tString[] nome = aux.split(\";\");\n\t\t\t\t\tnome[0] = nome[0].trim();\n\t\t\t\t\t//System.out.println(\"NOME = \"+nome[0]);\n\t\t\t\t\ti = Logico.achaFuncao(com, i, nome[0]);\n\t\t\t\t\tjaEntrou++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '-':\n\t\t\t\t\tjaEntrou--;\n\t\t\t\t\tif(jaEntrou == 0)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\ti = salvaFuncao;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '+':\n\t\t\t\t\treturn true;\n\t\t\t\tcase '%':\t//imprime\n\t\t\t\t\taux = aux.trim();\n\t\t\t\t\tImp.imprime(aux, var);\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t\n\t\t\t\tcase '?':\t//scaner leitur\n\t\t\t\t\tdouble get = scan.nextDouble();\n\t\t\t\t\tvar.atlVar(aux, get);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "String processing();", "public static void main(String[] args) {\n\t\t\tinitCapFormat(\"bengaluru is my city\");\n\t\t// 2.TODO \"sumit\" - \"itsum\"\n\t\t\tinputsInterchangeable(\"sumit\", \"itsum\");\n\t\t// 3.TODO 6699 - 69\n\t\t\t// 6*9+6+9\n\t\t// 4.TODO LIKE operator\n\t\t\t// SQL_LINUX.odt\n\t\t// 5.TODO numbers div by 5 in 1....10/5cr\n\t\t\tcountDivisibles(1, 100, 5);\n\t\t// 6.TODO count vowels in statement\n\t\t\tgetCountofVowels(\"THIS website is aw3som3\");\n\t\t// 7.CSS bold\n\t\t\t// <strong> or <b> tag also, you can try with css <span style=\"font-weight:bold\">text</span>\n\n\t}", "public void operacao();", "protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}", "private static void afftabSymb() { \r\n\t\tSystem.out.println(\" code categorie type info\");\r\n\t\tSystem.out.println(\" |--------------|--------------|-------|----\");\r\n\t\tfor (int i = 1; i <= it; i++) {\r\n\t\t\tif (i == bc) {\r\n\t\t\t\tSystem.out.print(\"bc=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else if (i == it) {\r\n\t\t\t\tSystem.out.print(\"it=\");\r\n\t\t\t\tEcriture.ecrireInt(i, 3);\r\n\t\t\t} else\r\n\t\t\t\tEcriture.ecrireInt(i, 6);\r\n\t\t\tif (tabSymb[i] == null)\r\n\t\t\t\tSystem.out.println(\" référence NULL\");\r\n\t\t\telse\r\n\t\t\t\tSystem.out.println(\" \" + tabSymb[i]);\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t}", "public interface Expresion {\n // 解释翻译\n int interprete();\n\n}", "@Override\n public TipoBase check(TipoBase tipo) throws Exception {\n Clase c = analizadorsintactico.AnalizadorSintactico.getTs().getClase(tipo.getNombre());\n String nombreVar = id.getLexema();\n VarInstancia v;\n\n if (tipo.getNombre().equals(\"int\") || tipo.getNombre().equals(\"boolean\") || tipo.getNombre().equals(\"char\") || tipo.getNombre().equals(\"String\")) {\n throw new Exception(\"La variable \" + id.getLexema() + \" en la linea \" + id.getLineNumber() + \" no puede llamar metodos ya que es de tipo primitivo\");\n }\n if (c == null) {\n throw new Exception(\"Se trata de acceder a un metodo void en la linea \" + id.getLineNumber());\n }\n\n if (cadena == null) {\n\n if (c.getVariables().containsKey(nombreVar)) {\n v = c.getVariables().get(nombreVar);\n if (v.getVisibilidad().equals(\"private\")) {\n throw new Exception(\"No se puede acceder a la variable \" + v.getNombre() + \" de la linea \" + v.getLinea() + \" debido a que su visibilidad es privada\");\n }\n if (this.ladoIzq) {\n GenCode.gen().write(\"SWAP\");\n GenCode.gen().write(\"STOREREF \" + v.getOffset() + \" # Guardo el valor en la variable \" + v.getNombre());\n\n } else {\n GenCode.gen().write(\"LOADREF \" + v.getOffset() + \" # Cargo variable de instancia \" + v.getNombre() + \" de la clase \" + c.getNombre());\n\n }\n\n } else {\n throw new Exception(\"No se encontro la variable \" + nombreVar + \" de la linea \" + id.getLineNumber() + \" en la clase \" + c.getNombre());\n }\n\n return v.getTipoVar();\n } else { //con encadenado\n if (c.getVariables().containsKey(nombreVar)) {\n v = c.getVariables().get(nombreVar);\n if (v.getVisibilidad().equals(\"private\")) {\n throw new Exception(\"No se puede acceder a la variable \" + v.getNombre() + \" de la linea \" + v.getLinea() + \" debido a que su visibilidad es privada\");\n }\n\n GenCode.gen().write(\"LOADREF \" + v.getOffset() + \" # Cargo variable de instancia \" + v.getNombre() + \" de la clase \" + c.getNombre());\n\n Tipo aux = v.getTipoVar();\n\n return cadena.check(aux);\n } else {\n throw new Exception(\"No se encontro la variable \" + nombreVar + \" de la linea \" + id.getLineNumber() + \" en la clase \" + c.getNombre());\n }\n }\n }", "private static void cajas() {\n\t\t\n\t}", "public interface ForteLangConstants {\n\n /** End of File. */\n int EOF = 0;\n /** RegularExpression Id. */\n int COMPARATOR_OP = 1;\n /** RegularExpression Id. */\n int BOOLEAN_OP = 2;\n /** RegularExpression Id. */\n int SET_OP = 3;\n /** RegularExpression Id. */\n int OP = 4;\n /** RegularExpression Id. */\n int CONCAT = 5;\n /** RegularExpression Id. */\n int SELECT = 6;\n /** RegularExpression Id. */\n int CONTAINS = 7;\n /** RegularExpression Id. */\n int NUMBER = 8;\n /** RegularExpression Id. */\n int FLOATING_POINT_NUMBER = 9;\n /** RegularExpression Id. */\n int BOOLEAN = 10;\n /** RegularExpression Id. */\n int STRING = 11;\n /** RegularExpression Id. */\n int REGEX_STRING = 12;\n /** RegularExpression Id. */\n int INCLUDE = 13;\n /** RegularExpression Id. */\n int IN = 14;\n /** RegularExpression Id. */\n int MATCH = 15;\n /** RegularExpression Id. */\n int OPENBRACKET = 16;\n /** RegularExpression Id. */\n int CLOSEBRACKET = 17;\n /** RegularExpression Id. */\n int OPENSBRACKET = 18;\n /** RegularExpression Id. */\n int CLOSESBRACKET = 19;\n /** RegularExpression Id. */\n int COMMA = 20;\n /** RegularExpression Id. */\n int EQUALS = 21;\n /** RegularExpression Id. */\n int SEMICOLON = 22;\n /** RegularExpression Id. */\n int OPENCBRACKET = 23;\n /** RegularExpression Id. */\n int CLOSECBRACKET = 24;\n /** RegularExpression Id. */\n int NUM = 25;\n /** RegularExpression Id. */\n int LST = 26;\n /** RegularExpression Id. */\n int SET = 27;\n /** RegularExpression Id. */\n int FUN = 28;\n /** RegularExpression Id. */\n int BOO = 29;\n /** RegularExpression Id. */\n int STR = 30;\n /** RegularExpression Id. */\n int COLON = 31;\n /** RegularExpression Id. */\n int VAR_NAME = 32;\n /** RegularExpression Id. */\n int FUNCTION_ARROW = 33;\n /** RegularExpression Id. */\n int GUARD_START = 34;\n /** RegularExpression Id. */\n int GUARD = 35;\n /** RegularExpression Id. */\n int GUARD_ARROW = 36;\n\n /** Lexical state. */\n int DEFAULT = 0;\n /** Lexical state. */\n int BlockComment = 1;\n\n /** Literal token values. */\n String[] tokenImage = {\n \"<EOF>\",\n \"<COMPARATOR_OP>\",\n \"<BOOLEAN_OP>\",\n \"<SET_OP>\",\n \"<OP>\",\n \"\\\"++\\\"\",\n \"\\\".\\\"\",\n \"\\\"?\\\"\",\n \"<NUMBER>\",\n \"<FLOATING_POINT_NUMBER>\",\n \"<BOOLEAN>\",\n \"<STRING>\",\n \"<REGEX_STRING>\",\n \"\\\"include\\\"\",\n \"\\\"in\\\"\",\n \"\\\"match\\\"\",\n \"\\\"(\\\"\",\n \"\\\")\\\"\",\n \"\\\"[\\\"\",\n \"\\\"]\\\"\",\n \"\\\",\\\"\",\n \"\\\"=\\\"\",\n \"\\\";\\\"\",\n \"\\\"{\\\"\",\n \"\\\"}\\\"\",\n \"\\\"num\\\"\",\n \"\\\"list\\\"\",\n \"\\\"set\\\"\",\n \"\\\"func\\\"\",\n \"\\\"bool\\\"\",\n \"\\\"str\\\"\",\n \"\\\":\\\"\",\n \"<VAR_NAME>\",\n \"\\\"->\\\"\",\n \"\\\"|>\\\"\",\n \"\\\"|\\\"\",\n \"\\\"->>\\\"\",\n \"<token of kind 37>\",\n \"<token of kind 38>\",\n \"\\\"#[\\\"\",\n \"\\\"#[\\\"\",\n \"<token of kind 41>\",\n \"\\\"]#\\\"\",\n \"\\\"\\\\n\\\"\",\n \"\\\"\\\\r\\\"\",\n \"\\\" \\\"\",\n \"\\\"\\\\t\\\"\",\n };\n\n}", "public String comunica() {\r\n// ritorna una stringa\r\n// posso usare il metodo astratto \r\n return msg + AggiungiQualcosa();\r\n }", "public static void main(String[] args){\n\n FieldPro pro=new FieldPro(1,1,\"李斯特\",\"李斯特\");\n FieldPro proTwo=new FieldPro(1,1,\"李斯特\",\"李斯特\");\n BaseGetName<FieldPro> getName=new BaseGetName();\n String s= null;\n try {\n s = getName.getFunctionName(FieldPro::getAddrs);\n System.out.println(\"---\"+s);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@Override\n public String comer(String c)\n {\n c=\"Gato No puede Comer Nada\" ;\n \n return c;\n }", "static int setCon(String input){\n if (input.equals(\"little\")||input.equals(\"1\")) return 1;\n if (input.equals(\"average\")||input.equals(\"2\"))return 2;\n if (input.equals(\"lot\") || input.equals(\"3\")) return 3;\n if (input.equals(\"manual\") || input.equals(\"4\")) return 4;\n throw new RuntimeException(\n \"Illigal second paramter on command line, use : <little,average,lot>\");\n }", "public static void main(String[] args) {\r\n\t\tString mens = String.format( \"Se puede maquetar un string incluyendo %s internos\", \"elementos\" );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"Los elementos %s y %s se referencian en el mismo orden\", \"uno\", \"dos\" );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"O se pueden cambiar poniendo su posición y $: %2$s y %1$s\", \"uno\", \"dos\" );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"Observa que tras la cadena de formateo se pueden indicar 'n' parámetros: %s, %s, %s, %s...\", \"uno\", \"dos\", \"tres\", \"cuatro\" );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"Los formateadores más habituales son 3. El primero es s para strings: %%s %s\", \"= string\" );\r\n\t\tSystem.out.println( mens );\r\n\t\tSystem.out.println( \" (Observa cómo para indicar un % en el string de formato tienes que poner dos (%%)\" );\r\n\t\tSystem.out.println( \"Y cada formateador tiene modificadores.\" );\r\n\t\tmens = String.format( \" Por ejemplo la longitud con un número n rellena a blancos %%10s -> '%10s'\", \"dato\" );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"El segundo es d para enteros decimales %%d -> '%d'\", 15 );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \" Con modificador de longitud: %%10d -> '%10d'\", 15 );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \" Rellenando a ceros con un 0 por delante: %%010d -> '%010d'\", 15 );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \" Con . de miles: %%,10d -> '%,10d'\", 1500000 );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"Y el más interesante es f para números reales (flotantes) %%f -> '%f'\", 2.5 );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \" Con modificador de longitud y decimales: %%7.2f -> '%7.2f'\", 2.5 );\r\n\t\tSystem.out.println( mens );\r\n\t\tSystem.out.println( \" (Observa que redondea a los decimales que se indiquen)\" );\r\n\t\tmens = String.format( \" Con puntos de miles y coma decimal: %%,12.2f -> '%,12.2f'\", 25000.0 );\r\n\t\tSystem.out.println( mens );\r\n\t\tmens = String.format( \"Y por supuesto %s %d son combinables de %.1f maneras\", \"los\", 3, 1000.1 );\r\n\t\tSystem.out.println( mens );\r\n\t\tSystem.out.println( \"\" );\r\n\t\tmens = String.format( \"Tienes una descripción completa de las posibilidades de la cadena de formato en\\n %s\", \"https://docs.oracle.com/javase/8/docs/api/java/util/Formatter.html#syntax\" );\r\n\t\tSystem.out.println( mens );\r\n\t}", "public void notificaAlgiocatore(int azione, Giocatore g) {\n\r\n }", "public interface Text {\n\n String HELP = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP = \"Lasst euch weiterhin feiern! \";\n String FALLBACK = \"Leider konnte der Herr dich nicht verstehen \";\n\n String PICOLO_START = \"Willkommen bei Picolo! Möchtest du ein neues Spiel starten? \";\n String[] ANZAHL_SPIELER = {\n \"Wie viele Spieler spielen mit?\",\n \"Nenne mir die Anzahl der teilnehmenden Spieler\",\n \"Wie viele Spieler gibt es heute?\"\n };\n String[] SPIELER_NAME_FRAGEN = {\n \"Nenne mir deinen Namen Spieler \",\n \"Bitte sage mir deinen Namen Spieler \",\n \"Sag mir bitte deinen Namen Spieler \"\n };\n String NAECHSTE_AUFGABE = \"Wollt ihr die nächste Aufgabe Wissen? \";\n String ERSTE_ANWEISUNG = \"Alles klar, Los geht´s! \";\n String WIEDERHOLEN_FEHLER = \"Das Spiel wurde noch nicht gestartet. Deswegen kann ich nichts wiederholen. Bitte starte vorher das Spiel. \";\n\n //SSML Aussprache\n\n /**TODO\n * SSML Text bearbeiten\n */\n String HELP_SSML = \"Sage 'Alexa, weiter', um die nächste Anweisung zu erhalten. \";\n String STOP_SSML = \"Lasst euch weiterhin feiern! \";\n String FALLBACK_SSML = \"Ich habe dich leider nicht verstanden. \";\n}", "public void afficheType() {\n\t\tint type=triangleType();\n\t\tif(type==2) {\n\t\t\tSystem.out.println(\"C'est un triangle isocèle equilatérale\");\n\t\t}else if(type==1){\n\t\t\tSystem.out.println(\"C'est un triangle isocèle\");\n\t\t}else {\n\t\t\tSystem.out.println(\"C'est un triangle quelconque\");\t\n\t\t}\n\t}", "String getSFunc();", "public void Tarifa(String tipoTarifa){\n Tarifa = tipoTarifa;\n Regular = \"R\";\n Comercial = \"C\";\n\n }", "public void showSir(String nom, String apell1, String apell2){\n System.out.println(\"Bienvenido \"+nom+\" \"+apell1+\" \"+apell2);\n System.out.println(\"\");\n}", "abstract String getOp();", "public void Tyre() {\n\t\t\r\n\t}", "void mostrarAtributos() {\n\t\tString mensaje = \"nombre=\" + nombre + \", apellido=\" + apellido + \", tipoDocumento=\" + tipoDocumento\n\t\t\t\t+ \", numeroDocumento=\" + numeroDocumento + \", edad=\" + edad + \" y es \"\n\t\t\t\t+ (edad >= 18 ? \"mayor de edad\" : \"menor de edad\");\n\t\tSystem.out.println(mensaje);\n\t}", "public interface CasaItf {\n\n /**\n * Pega a posição que está no eixo X (abcissa)\n *\n * @return posição atual no eixo X\n */\n int getPosicaoX();\n\n /**\n * Pega a posição que está no eixo Y (ordenada)\n *\n * @return posição atual no eixo Y\n */\n int getPosicaoY();\n\n\n /**\n * Modifica a cor da casa\n *\n * @param cor Nova cor da casa\n */\n void setCor(Color cor);\n\n /**\n * Pega a cor da casa\n *\n * @return Cor da casa\n */\n Color getCor();\n\n /**\n * Insere uma peça na casa\n *\n * @param peca Peça que irá ocupar a casa\n */\n void setPeca(Peca peca);\n\n /**\n * Remove a peça da casa\n */\n void removePeca();\n\n /**\n * Pega a peça que está ocupando a casa\n *\n * @return Peça que está na casa\n */\n Peca getPeca();\n\n /**\n * Verifica se a casa tem alguma peça\n *\n * @return <code>true</code> se tiver alguma peça e <code>false</code> caso contrario\n */\n boolean temPeca();\n\n /**\n * Verifica se a casa tem alguma peça de uma determinada cor\n *\n * @return <code>true</code> se tiver alguma peça da cor desejada e <code>false</code> caso contrario\n */\n boolean temPeca(Color cor);\n\n /**\n * Verifica se a casa é igual.\n *\n * @param casa Casa a ser comparada\n * @return <code>true</code> se as casas forem iguais e <code>false</code> caso contrario\n */\n boolean verificaCasaIgual(CasaItf casa);\n\n /**\n * Verifica se a casa faz parte do passante.\n *\n * @return <code>true</code> se fizer parte do movimento passante e <code>false</code> caso contrario\n */\n boolean getMovimentoPassante();\n\n /**\n * Seta essa casa como passante.\n *\n * @param passante <code>true</code> se for passante e <code>false</code> caso contrario\n */\n void setMovimentoPassante(boolean passante);\n\n}", "@Override\n\tpublic void af(String t) {\n\n\t}", "public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//Scanner scanner = new Scanner(System.in);\r\n\t\t\tSyntax syntax = new Syntax();\r\n\t\t\tsyntax.addTerminal(\"PLUS\", TokenType.OPERATOR, OperatorType.PLUS);\r\n\t\t\tsyntax.addTerminal(\"MINUS\", TokenType.OPERATOR, OperatorType.MINUS);\r\n\t\t\tsyntax.addTerminal(\"TIMES\", TokenType.OPERATOR, OperatorType.TIMES);\r\n\t\t\tsyntax.addTerminal(\"DIVIDE\", TokenType.OPERATOR, OperatorType.DIVIDE);\r\n\t\t\tsyntax.addTerminal(\"LPA\", TokenType.OPERATOR, OperatorType.LPARAN);\r\n\t\t\tsyntax.addTerminal(\"RPA\", TokenType.OPERATOR, OperatorType.RPARAN);\r\n\t\t\tsyntax.addTerminal(\"SYMBOL\", TokenType.ID, \"i\");\r\n\t\t\tsyntax.addNonTerminal(\"E\");\r\n\t\t\tsyntax.addNonTerminal(\"T\");\r\n\t\t\tsyntax.addNonTerminal(\"F\");\r\n\t\t\tsyntax.addErrorHandler(\"sample\", null);\r\n\t\t\t//syntax.infer(\"E -> T `PLUS`<+> E | T `MINUS`<-> E | T\");\r\n\t\t\t//syntax.infer(\"T -> F `TIMES`<*> T | F `DIVIDE`</> T | F\");\r\n\t\t\t//syntax.infer(\"F -> `LPA`<(> E `RPA`<)> | `SYMBOL`<i>\");\r\n\t\t\tsyntax.infer(\"E -> E @PLUS<+> T\");\r\n\t\t\tsyntax.infer(\"E -> E @MINUS<-> T\");\r\n\t\t\tsyntax.infer(\"E -> T\");\r\n\t\t\tsyntax.infer(\"T -> T @TIMES<*> F\");\r\n\t\t\tsyntax.infer(\"T -> T @DIVIDE</> F\");\r\n\t\t\tsyntax.infer(\"T -> F\");\r\n\t\t\tsyntax.infer(\"F -> @LPA<(> E @RPA<)>\");\r\n\t\t\tsyntax.infer(\"F -> @SYMBOL<i>\");\r\n\t\t\tsyntax.initialize(\"E\");\r\n\t\t\tSystem.out.println(syntax.toString());\r\n\t\t\tSystem.out.println(syntax.getNGAString());\r\n\t\t\tSystem.out.println(syntax.getNPAString());\r\n\t\t\t//scanner.close();\r\n\t\t} catch (RegexException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage());\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (SyntaxException e) {\r\n\t\t\tSystem.err.println(e.getPosition() + \",\" + e.getMessage() + \" \" + e.getInfo());\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public abstract void fazerCoisa( String string );", "private String Interpretar(String num) {\r\n\t\tif(num.length() > 3)\r\n\t\t\treturn \"\";\r\n\t\tString salida=\"\";\r\n\t\t\r\n\t\tif(Dataposi(num,2) != 0)\r\n\t\t\tsalida = Centenas[Dataposi(num,2)-1];\r\n\t\t\r\n\t\tint k = Integer.parseInt(String.valueOf(Dataposi(num,1))+String.valueOf(Dataposi(num,0)));\r\n\r\n\t\tif(k <= 20)\r\n\t\t\tsalida += Numero[k];\r\n\t\telse {\r\n\t\t\tif(k > 30 && Dataposi(num,0) != 0)\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + \"Y \" + Numero[Dataposi(num,0)];\r\n\t\t\telse\r\n\t\t\t\tsalida += Decenas[Dataposi(num,1)-2] + Numero[Dataposi(num,0)];\r\n\t\t}\r\n\t\t//Caso especial con el 100\r\n\t\tif(Dataposi(num,2) == 1 && k == 0)\r\n\t\t\tsalida=\"CIEN\";\r\n\t\t\r\n\t\treturn salida;\r\n\t}", "@Override\r\n\tpublic void frases() {\n\t\t\r\n\t\tthis.frase.add(\"Não há que ser forte. Há que ser flexível.\");\r\n this.frase.add(\"Gente todo dia arruma os cabelos, por que não o coração?\");\r\n this.frase.add(\"Há três coisas que jamais voltam; a flecha lançada, a palavra dita e a oportunidade perdida.\");\r\n this.frase.add(\"Melhor pensar alto do que não pensar nada.\");\r\n this.frase.add(\"A juventude não é uma época da vida, é um estado de espírito.\");\r\n this.frase.add(\" Podemos escolher o que semear, mas somos obrigados a colher o que plantamos.\");\r\n this.frase.add(\"Dê toda a atenção para a formação dos teus filhos, sobretudo por exemplos de tua própria vida.\");\r\n \r\n\t\t\r\n\t}", "@Override\r\n\tpublic String falar() {\r\n\t\treturn \"[ \"+getNome()+\" ] Sou Um Professor\";\r\n\t}", "public String overloadingMeth(int angka) { //contoh dari overloading method\n int x;\n x = angka % 10;\n valueword = \"\";\n if (angka == 0) {\n valueword = \"Nol\";\n\n } else if (angka == 100) {\n valueword = \"Seratus\";\n } else if (x == 0) {\n valueword += normalword[angka / 10] + \" Puluh\";\n\n } else if (angka < 12) {\n valueword += normalword[angka];\n } else if (angka < 20) {\n\n valueword += normalword[angka - 10] + \" Belas\";\n } else if (angka < 100) {\n valueword += normalword[angka / 10] + \" Puluh \" + normalword[angka % 10];\n } else if (angka > 100) {\n System.out.println(\"MASUKAN ERROR,ANGKA TIDAK BOLEH LEBIH DARI 100\");\n }\n return valueword;\n }", "private void manual() {\n State q1 = new State(\"q1\", \"ID\");\n State q2 = new State(\"q2\", \"IF\");\n State q3 = new State(\"q3\", \"ID\");\n State q4 = new State(\"q4\", \"CONSTANTE\");\n State q5 = new State(\"q5\", \"ABRE_PARENTESES\");\n State q6 = new State(\"q6\", \"FECHA_PARENTESES\");\n State q7 = new State(\"q7\", \"OPERADOR_MAIOR\");\n State q8 = new State(\"q8\", \"OPERADOR_MENOR\");\n State q9 = new State(\"q9\", \"OPERADOR_DIFERENTE\");\n State q10 = new State(\"q10\", \"ID\");\n State q11 = new State(\"q11\", \"ID\");\n State q12 = new State(\"q12\", \"ID\");\n State q13 = new State(\"q13\", \"ID\");\n State q14 = new State(\"q14\", \"BEGIN\");\n State q15 = new State(\"q15\", \"ID\");\n State q16 = new State(\"q16\", \"ID\");\n State q17 = new State(\"q17\", \"END\");\n State q18 = new State(\"q18\", \"ESPACO\");\n State q19 = new State(\"q19\", \"ID\");\n State q20 = new State(\"q20\", \"ID\");\n State q21 = new State(\"q21\", \"ELSE\");\n\n // IF\n q0.put(\"[i]\", q1);\n q1.put(\"[f]\", q2);\n q1.put(\"[^\\\\Wf]\", q3);\n q2.put(\"[\\\\w]\", q3);\n\n // ID\n q0.put(\"[^\\\\Wbei0-9_]\", q3);\n q3.put(\"[\\\\w]\", q3);\n\n // CONSTANTE\n q0.put(\"[\\\\d]\", q4);\n q4.put(\"[\\\\d]\", q4);\n\n // ABRE_PARENTESES\n q0.put(\"[(]\", q5);\n\n // ABRE_PARENTESES\n q0.put(\"[)]\", q6);\n\n // OPERADOR_MAIOR\n q0.put(\"[>]\", q7);\n\n // OPERADOR_MENOR\n q0.put(\"[<]\", q8);\n\n // OPERADOR_DIFERENTE\n q0.put(\"[#]\", q9);\n\n // BEGIN\n q0.put(\"[b]\", q10);\n q10.put(\"[e]\", q11);\n q11.put(\"[g]\", q12);\n q12.put(\"[i]\", q13);\n q13.put(\"[n]\", q14);\n q10.put(\"[^\\\\We]\", q3);\n q11.put(\"[^\\\\Wg]\", q3);\n q12.put(\"[^\\\\Wi]\", q3);\n q13.put(\"[^\\\\Wn]\", q3);\n q14.put(\"[\\\\w]\", q3);\n\n // END\n q0.put(\"[e]\", q15);\n q15.put(\"[n]\", q16);\n q16.put(\"[d]\", q17);\n q15.put(\"[^\\\\Wnl]\", q3);\n q16.put(\"[^\\\\Wd]\", q3);\n q17.put(\"[\\\\w]\", q3);\n\n // ELSE\n q15.put(\"[l]\", q19);\n q19.put(\"[s]\", q20);\n q20.put(\"[e]\", q21);\n q19.put(\"[^\\\\Ws]\", q3);\n q20.put(\"[^\\\\We]\", q3);\n q21.put(\"[\\\\w]\", q3);\n\n // ESPACO\n q0.put(\"[\\\\s]\", q18);\n }", "String getEditore();", "public static void main(String[] args) throws Exception {\n Object [] tipos = {\"Gerente\", \"Funcionario\"};\n\n //inputs\n String resposta1, resposta2;\n double salario_bruto, salario_corrigido;\n\n //primeiro dialogo\n resposta1 = (String) JOptionPane.showInputDialog(null,\n \"Selecione o tipo de funcionario:\",\n \"Por favor\",\n JOptionPane.WARNING_MESSAGE,\n null,\n tipos,\n \"Gerente\"\n );\n\n resposta2 = (String) JOptionPane.showInputDialog(null,\n \"Digite o salario do funcionario (com ponto):\",\n \"Por favor\",\n JOptionPane.QUESTION_MESSAGE //icon\n );\n\n salario_bruto = Double.parseDouble(resposta2);\n\n switch(resposta1) {\n case \"Gerente\":\n salario_corrigido = salario_bruto * 1.15;\n break;\n\n case \"Funcionario\":\n salario_corrigido = salario_bruto * 1.075;\n break;\n\n default:\n salario_corrigido = 0.0;\n }\n\n JOptionPane.showMessageDialog(null,\n \"O salario corrigo é de R$ \" + salario_corrigido\n );\n }", "private void esqueceu() {\n\n //Declaração de Objetos\n Veterinario veterinario = new Veterinario();\n\n //Declaração de Variaveis\n int crmv;\n String senha;\n\n //Atribuição de Valores\n try {\n crmv = Integer.parseInt(TextCrmv.getText());\n senha = TextSenha.getText();\n \n //Atualizando no Banco\n veterinario.Vdao.atualizarAnimalSenhaPeloCrmv(senha, crmv);\n \n } catch (NumberFormatException ex) {\n JOptionPane.showMessageDialog(null, \"APENAS NUMEROS NO CRMV!\");\n }\n JOptionPane.showMessageDialog(null, \"SUCESSO AO ALTERAR SENHA!\");\n\n }", "public String oracle(String line){\n String ui[] = line.split(\" \");\n\n if(ui[0].equals(\"help\"))\n return \"help, init _capacidade, addVagao _capacidade, in _id, out _id, show\";\n else if(ui[0].equals(\"init\"))\n trem = new Trem(Integer.parseInt(ui[1]));\n else if(ui[0].equals(\"show\"))\n return \"\" + trem;\n else if(ui[0].equals(\"addVagao\"))\n \ttrem.addVagao(new Vagao(Integer.parseInt(ui[1])));\n else if(ui[0].equals(\"in\")) {\n \ttrem.embarcar(new Pessoa(ui[1]));\n }else if(ui[0].equals(\"out\"))\n \ttrem.desembarcar(ui[1]);\n else\n return \"comando invalido\";\n return \"done\";\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public static void main(String[] args) {\n System.out.println(\">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>\");\n System.out.println(\"--Selamat Datang Di Kuis Matematika--\");\n System.out.println(\"<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<\");\n System.out.println(\"Daftar soal: \");\n soal();\n System.out.println(\"Silahkan input angka sesuai dengan nomer soal: \");\n pilihan();\n \n \n \n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\t\n\t\tsum(10,20);\n\t\tsum(20,30);\n\t\tsum(40,50,10);\n\t\tmessage(\"Pratik\");\n\t\t\n\t\teligibility(\"Pratik\", 28);\n\t\teligibility(\"abc\", 17);\n\t\t\t\t\n System.out.println(name);\n \n\t}", "public String overLoadingMeth(String huruf) {\n for (int i = 0; i < normalword.length; i++) {\n for (int j = 0; j < 10; j++) {\n if (huruf.equalsIgnoreCase(normalword[i])) {\n valuenum = num[i];\n } else if (huruf.equalsIgnoreCase(normalword[i])) {\n valuenum = num[i];\n } else if (huruf.equalsIgnoreCase(normalword[i] + \" belas\")) {\n valuenum = num[1] + num[i];\n } else if (huruf.equalsIgnoreCase(normalword[i] + \" puluh\")) {\n valuenum = num[i] + num[0];\n } else if (huruf.equalsIgnoreCase(normalword[i] + \" puluh \" + normalword[j])) {\n valuenum = num[i] + num[j];\n } else if (huruf.equalsIgnoreCase(\"Seratus\")) {\n valuenum = num[1] + num[0] + num[0];\n }\n }\n }\n return valuenum;\n }", "public void syntax_error(Symbol s)\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico Recuperado !!!!!!!\");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n\n //lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado\"));\n /*AcepErr datos =new AcepErr(lexema, \"ERROR SINTACTICO\" ,fila,columna,\"Simbolo no esperado\");\n TablaErr.add(datos);\n */\n }", "public void Metodo1(String valor1){\r\n\r\n }", "public void tipoDatos() {\n\t\tint num = 10;\n\t\t// Texto STring\n\t\tString cadena = \"cadena\";\n\n\t\t// Decimale O flotante\n\t\tdouble decimal = 12.16;\n\t\tfloat fl = new Float(10);\n\t\t// Bolean\n\t\tboolean bl = true;\n\n\t\t// ARREGLOS\n\t\t// string\n\t\tString[] veString = new String[5];\n\t\tveString[0] = \"hola mundo\";\n\t\tveString[1] = \"hola mundo\";\n\t\tveString[2] = \"hola mundo\";\n\t\tveString[3] = \"hola mundo\";\n\t\tveString[4] = \"hola mundo\";\n\n\t\tint[] varNum = new int[] { 0, 1, 2, 3, 4, 5 };\n\n\t}", "public void caricaPartita(String partita) {\n\r\n }", "public abstract String dohvatiKontakt();", "public void syntax_error(Symbol s)\n { \n String lexema = s.value.toString();\n int fila = s.right;\n int columna = s.left;\n \n System.out.println(\"!!!!!!! Error Sintactico Recuperado !!!!!!!\");\n System.out.println(\"\\t\\tLexema: \"+lexema);\n System.out.println(\"\\t\\tFila: \"+fila);\n System.out.println(\"\\t\\tColumna: \"+columna);\n \n lista_errores.add(new ErrorT(lexema, fila, columna,\"sintactico\" ,\"Simbolo no esperado\"));\n }", "@Override public String getQueso(){\n return \"manchego \";\n }", "public void leerAlimentos();", "private AtualizarContaPreFaturadaHelper parserRegistroTipo2(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\t\tSystem.out.println(\"Tipo de Retorno: \" + retorno.tipoRegistro);\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\t\tSystem.out.println(\"Matricula do Imovel: \" + retorno.matriculaImovel);\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_2_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Valor faturado agua\r\n\t\tretorno.valorFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_AGUA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_AGUA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorTarifaMinimaAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_AGUA;\r\n\r\n\t\t// Consumo Minimo de Agua\r\n\t\tretorno.consumoMinimoAgua = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_AGUA;\r\n\r\n\t\t// Valor faturado esgoto\r\n\t\tretorno.valorFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_FATURADO_ESGOTO;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_FATURADO_ESGOTO;\r\n\r\n\t\t// Valor tarifa minima de esgoto\r\n\t\tretorno.valorTarifaMinimaEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_VALOR_TARIFA_MINIMA_ESGOTO;\r\n\r\n\t\t// Consumo Minimo de esgoto\r\n\t\tretorno.consumoMinimoEsgoto = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO);\r\n\t\tindex += REGISTRO_TIPO_2_CONSUMO_MINIMO_ESGOTO;\r\n\t\t\r\n\t\t// Consumo Minimo de esgoto \r\n\t\t/*\r\n\t\tretorno.subsidio = linha.substring(index + 2, index\r\n\t\t\t\t+ REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA);\r\n\t\tindex += REGISTRO_TIPO_2_SUBSIDIO_AGUA_PARA;\r\n\t\t*/\r\n\t\treturn retorno;\r\n\t}", "public void asetaTeksti(){\n }", "public static void main(String[] args) {\n\tString variavel_separada_por_underline;\n\t\n\t// padrão camelCase\n\tString variavelSeparadaPorCamelCase;\n\t\n\t// valido porem estranho\n\tint _numero = 1;\n\t\n\tSystem.out.println(_numero);\n\t\n\t// valido porem mais estranho ainda! parec PHP\n\tint $outroNumero = 1;\n\tSystem.out.println($outroNumero);\n\t\n\t/*Não pode começar com caracteres especiais\n\t * \n\t * String 1um;\n\t\n\t int @arroba;\n\t\n\t String *texto \n\t * \n\t */\n\t\n}", "private AtualizarContaPreFaturadaHelper parserRegistroTipo3(String linha) {\r\n\t\tAtualizarContaPreFaturadaHelper retorno = new AtualizarContaPreFaturadaHelper();\r\n\r\n\t\tInteger index = 0;\r\n\r\n\t\t// Tipo de registro\r\n\t\tretorno.tipoRegistro = linha.substring(index, index + REGISTRO_TIPO);\r\n\t\tindex += REGISTRO_TIPO;\r\n\r\n\t\t// Matricula do imovel\r\n\t\tretorno.matriculaImovel = linha.substring(index, index\r\n\t\t\t\t+ MATRICULA_IMOVEL);\r\n\t\tindex += MATRICULA_IMOVEL;\r\n\r\n\t\t// Codigo da Categoria\r\n\t\tretorno.codigoCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_CATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_CATEGORIA;\r\n\r\n\t\t// Codigo da Subcategoria\r\n\t\tretorno.codigoSubCategoria = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA);\r\n\t\tindex += REGISTRO_TIPO_3_CODIGO_SUBCATEGORIA;\r\n\r\n\t\t// Consumo faturado de agua\r\n\t\tretorno.consumoFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_AGUA_FAIXA;\r\n\r\n\t\t// Limite Inicial do Consumo na Faixa\r\n\t\tretorno.limiteInicialConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_INICIAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Limite Final do consumo na Faixa\r\n\t\tretorno.limiteFinalConsumoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_LIMITE_FINAL_CONSUMO_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Agua na Faixa\r\n\t\tretorno.valorTarifaAguaFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_AGUA_FAIXA;\r\n\r\n\t\t// Valor da Tarifa Esgoto na Faixa\r\n\t\tretorno.valorTarifaEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_TARIFA_ESGOTO_FAIXA;\r\n\r\n\t\t// Consumo faturado de esgoto\r\n\t\tretorno.consumoFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_CONSUMO_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\t// Valor tarifa minima de agua\r\n\t\tretorno.valorFaturadoEsgotoFaixa = linha.substring(index, index\r\n\t\t\t\t+ REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA);\r\n\t\tindex += REGISTRO_TIPO_3_VALOR_FATURADO_ESGOTO_FAIXA;\r\n\r\n\t\treturn retorno;\r\n\t}", "@Override\n\tpublic String parler() {\n\t\treturn \"Je suis un Orc\";\n\t}", "public static void main(String[] args) {\n\t\tString operadorUno = JOptionPane.showInputDialog(null, \"Introduce el valor de Operador 1: \");\n\t\t// transformar a tipo int\n\t\tint operadorUnoInt = Integer.parseInt(operadorUno);\n\t\t// entrada operador2 tipo string\n\t\tString operadorDos = JOptionPane.showInputDialog(null, \"Introduce el valor de Operador 2: \");\n\t\t// transformar a tipo int\n\t\tint operadorDosInt = Integer.parseInt(operadorDos);\n\t\t// entrada signoAritmetico tipo string\n\t\tString signoAritmetico = JOptionPane.showInputDialog(null, \"Introduce un signo aritmetico: \");\n\n\t\tswitch (signoAritmetico) {\n\t\tcase \"+\":\n\t\t\t// suma los dos operadores\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\toperadorUnoInt + \" + \" + operadorDosInt + \" = \" + (operadorUnoInt + operadorDosInt));\n\t\t\tbreak;\n\t\tcase \"-\":\n\t\t\t// resta los dos operadores\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\toperadorUnoInt + \" - \" + operadorDosInt + \" = \" + (operadorUnoInt - operadorDosInt));\n\t\t\tbreak;\n\t\tcase \"*\":\n\t\t\t// multiplica los dos operadores\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\toperadorUnoInt + \" * \" + operadorDosInt + \" = \" + (operadorUnoInt * operadorDosInt));\n\t\t\tbreak;\n\t\tcase \"/\":\n\t\t\t// divide los dos operadores\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\toperadorUnoInt + \" / \" + operadorDosInt + \" = \" + (operadorUnoInt / operadorDosInt));\n\t\t\tbreak;\n\t\tcase \"^\":\n\t\t\t// 1º operando como base y 2º como exponente\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\toperadorUnoInt + \" ^ \" + operadorDosInt + \" = \" + (Math.pow(operadorUnoInt, operadorDosInt)));\n\t\t\tbreak;\n\t\tcase \"%\":\n\t\t\t// módulo, resto de la división entre operando1 y operando2\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\toperadorUnoInt + \" % \" + operadorDosInt + \" = \" + (operadorUnoInt % operadorDosInt));\n\t\t\tbreak;\n\t\tdefault:\n\t\t\t// Si no se introduce un signo de los anteriores\n\t\t\t// aparecera un mensaje de error y fin de la aplicacion\n\t\t\tJOptionPane.showMessageDialog(null, \"Signo aritmetico incorrecto!\");\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\n\tpublic void pausaParaComer() {\n\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tScanner scan=new Scanner(System.in);\n\t\tSystem.out.print(\"Please enter one number :\");\n\t\tdouble num=scan.nextDouble();\n\t\t\n//\t\tif(num>=0) {\n//\t\t\tSystem.out.println(\"Pozitive or Notr\");\n//\t\t}else {\n//\t\t\tSystem.out.println(\"Negative\");\n//\t\t}\n//\t\t\n\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t//Ternary Operator\n\t\t// \t\t\t\tCondition soru isareti Condition dogru ise\t\t\tiki nokta ustuse\tcondition yanlis ise \n\t\t\n\t\tString sonuc = (num>=0) ? \"Pozitive or Notr\"\t\t:\t\t\t\t\t\"Negative\";\n\t\tSystem.out.println(sonuc);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\tscan.close();\t\n\t}", "@Test\n public void testInicioSesion_String_String() throws Exception {\n System.out.println(\"inicioSesion\");\n String nm = \"Dan\";\n String contra = \"danr\";\n CSesion instance = new CSesion();\n DataUsuario result = instance.inicioSesion(nm, contra);\n Usuario user = instance.getUsuario();\n DataUsuario infoP = instance.verInfoPerfil();\n\n Integer cant = 2;\n Integer num = 2;\n instance.agregaLinea(cant, num);\n\n DataOrdenCompra carrito = instance.verCarrito();\n instance.generarOrden();\n\n boolean puedeComent = instance.puedeComentar(2); // lo compro asi que puede\n instance.comentar(2, \"Yo lo compré\");\n\n //instance.responder(2, \"Si\", 1);\n }", "public abstract String visualizar();", "public static <Soplo_Humano> void main(String args[])throws Exception{\r\n\t\tScanner entry = new Scanner (System.in);\r\n\t\tString Instrumentos = null;\r\n\t\tSystem.out.print(\"Flauta\"+ \"\\n\" + \"Trompeta\"+ \"\\n\" +\"Marimba\");\r\n\t\tSystem.out.print(\"Ingrese instrumento: \");\r\n\t\t Instrumentos = entry.next();\r\n\t\tif(Instrumentos.equals(\"Flauta\"))\r\n\t \tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tif(Instrumentos.equals(\"Trompeta\"))\r\n\t\t\tSystem.out.println(\"Tiene un orificio donde pasa el aire\");\r\n\t\tthrow new Exception(\"No tiene orificio por lo tanto no es del tipo Aerofono\");\r\n}", "public String MuestraCualquiera() {//PARA MOSTRAR CUALQUIER TIPO DE CLIENTE\nString Muestra=\"\";\n\nif(getTipoCliente().equals(\"Docente\")) {//SI ES DOCENTE\nMuestra=MuestraDocente();//SE MUESTRAN SOLO LOS DATOS DE DOCENTE\n}else if(getTipoCliente().equalsIgnoreCase(\"Administrativo\")) {//SI ES ADMINISTRATIVO\nMuestra=MuestraAdministrativo();//SE MUESTRAN SOLO LOS DATOS DE ADMINISTRATIVO\n}\n\nreturn Muestra;\n}", "java.lang.String getHowToUse();", "java.lang.String getHowToUse();", "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 orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "public void filtroCedula(String pCedula){\n \n }", "abstract String mo1748c();", "public static void calcularPromedioSemanal() {\n }" ]
[ "0.6235716", "0.61980766", "0.6014594", "0.6005616", "0.59963363", "0.59414244", "0.5789955", "0.5784165", "0.5783818", "0.57525885", "0.56773365", "0.5675234", "0.56503403", "0.5600614", "0.5560367", "0.5533378", "0.5481756", "0.5470137", "0.5464821", "0.544213", "0.5441237", "0.5437278", "0.5435697", "0.54325265", "0.5428207", "0.5425577", "0.54178184", "0.54133356", "0.53921", "0.53742075", "0.53676", "0.5364304", "0.5362449", "0.53583586", "0.53554523", "0.5350211", "0.534963", "0.53494024", "0.5332778", "0.53316563", "0.53280544", "0.5327177", "0.5320238", "0.53186446", "0.5305925", "0.5305253", "0.5301853", "0.5301734", "0.5298529", "0.5298315", "0.5294633", "0.52900684", "0.52885324", "0.5278578", "0.52775127", "0.5274555", "0.5273318", "0.52672535", "0.5264602", "0.52588534", "0.52585274", "0.5247493", "0.5242485", "0.5236231", "0.5233005", "0.52315134", "0.52281433", "0.5225093", "0.5217234", "0.52109087", "0.5210846", "0.5205545", "0.520279", "0.5199027", "0.5193598", "0.5190658", "0.5190459", "0.51894164", "0.5189168", "0.5183819", "0.51823515", "0.5182095", "0.5181688", "0.51814497", "0.51793057", "0.5173729", "0.51712674", "0.5169241", "0.5164324", "0.51588196", "0.5157905", "0.5157009", "0.5154567", "0.5153995", "0.5153995", "0.5151481", "0.51470035", "0.51446426", "0.51439553", "0.51392967" ]
0.52964187
50
evalua si una asignacion (int) esta bien escrita
private String[] Asignacion(String texto) { String[] retorno = new String[2]; try { retorno = texto.split("="); if (retorno.length == 2) { if (retorno[0].toLowerCase().contains("int")) { if (retorno[0].contains("int")) { if (retorno[0].startsWith("int")) { String aux[] = retorno[0].split("int"); if (aux.length == 2) { retorno[0] = "1";//aceptacion retorno[1] = aux[1];//nombre variable } else { retorno[0] = "0";//error retorno[1] = "mala construcción de la sentencia."; } } else { retorno[0] = "0";//error retorno[1] = "mala construcción de la sentencia."; } } else { retorno[0] = "0"; retorno[1] = "se encuentra mal escrito el int."; } } else { retorno[0] = "0"; retorno[1] = "no se encontro la palabra reservada int."; } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } catch (Exception e) { System.out.println("Error en Asignacion " + e.getClass()); } finally { return retorno; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean hasIntValue();", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\treturn false;\n\t\t\t}", "public static int verifica() {\n boolean naoEInt = true;\n int valor = 0;\n while (naoEInt) {\n Scanner leitor = new Scanner(System.in);\n System.out.println(\"=====================\");\n try {\n valor = leitor.nextInt();\n naoEInt = false;\n } catch (Exception e) {\n System.out.println(\"Os dados digitados não são válidos!\");\n }\n }\n return valor;\n }", "public static int inputCheckI() {\r\n\t\tint unos = 0;\t// pocetna vrijednost\r\n\t\tboolean inputCheck = true;\t//kontrolna promjenljiva\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tunos = input.nextInt();\t//ucitavanje unosa i provjera da li je negativan broj\r\n\t\t\t\tif (unos <= 0) {\r\n\t\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\t//ako jeste ispisi poruku\r\n\t\t\t\t\tinputCheck = true;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t\telse inputCheck = false;\t//ako je sve ok, kontrolna promjenljiva false, vrati unos\t\t\t\t\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tcatch (InputMismatchException ex) {\t//u slucaju pogresnog unosa\r\n\t\t\t\tSystem.out.println(\"Pogresan unos. Pokusajte ponovo: \");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (inputCheck);\r\n\t\treturn unos;\r\n\t}", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\t\t\t// unos \r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t// hvatanje greske\r\n\t\t\t\tSystem.out.println(\"Pogresan unos, probajte ponovo\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (true);\r\n\t\treturn num;\r\n\t}", "public static int check() {\r\n\t\tint num = 0;\r\n\t\tboolean check = true;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\tnum = input.nextInt();\r\n\t\t\t\tif (num < 0) {\r\n\t\t\t\t\tnum = Math.abs(num);\r\n\t\t\t\t}\r\n\t\t\t\tcheck = false;\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t\t// hvatanje greske i ispis da je unos pogresan\r\n\t\t\t\tSystem.out.println(\"You know it's wrong input, try again mate:\");\r\n\t\t\t\tinput.nextLine();\r\n\t\t\t}\r\n\t\t} while (check);\r\n\t\treturn num;\r\n\t}", "private static int isEntero(String palabra) {\n int resultado;//declaramos la variable a retornar\n\n try {\n Integer.parseInt(palabra);//convertimos la palabra a Integer\n resultado = 1;//Si no hay un error entonces es un numero y retornamos true\n } catch (NumberFormatException excepcion) {//de lo contrario es una palabra\n resultado = 0;\n }\n\n return resultado;//retornamos el valor\n }", "public int evaluateAsInt();", "public boolean checkPosIntValues(TextField tempField) { //check if integer is positive\n \tString param = \"Nframes and N_reactions\";\n \treturn Values.checkPosIntValues(param, tempField);\n }", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public int Check(){\n return 6;\n }", "public boolean check(int value);", "protected abstract int isValidInput();", "private int cantFantasmasRestantes() {\n // TODO implement here\n return 0;\n }", "public void aumentarMinas(){\n\r\n if(espM==false){\r\n minascerca++;\r\n }\r\n }", "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "boolean hasInt();", "private void asserEquals(int esperado, int resultado) {\n\t\t\r\n\t}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public static int validaEntradaOrdem() {\r\n\t\tint entrada = 0;\r\n\t\tboolean erro = false;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\terro = false;\r\n\t\t\t\tentrada = Leitura.lerInt();\r\n\t\t\t\tif (entrada > 2 || entrada < 0) {\r\n\t\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\t\terro = true;\r\n\t\t\t\t}\r\n\t\t\t} catch (InputMismatchException excecao) {\r\n\t\t\t\tVisao.erroOrdemNum();\r\n\t\t\t\terro = true;\r\n\t\t\t}\r\n\r\n\t\t} while (erro);\r\n\t\treturn entrada;\r\n\t}", "public static int checkInt() {\n\t\tboolean is_Nb = false; int i = 0;\r\n\t\tdo {\r\n\t\t\ttry {\r\n\t\t\t\ti = Integer.parseInt(scan.nextLine());\r\n\t\t\t\tis_Nb= true;\r\n\t\t\t\tif(i<0) {\r\n\t\t\t\t\tSystem.out.println(\"Enter a positive number\");\r\n\t\t\t\t\tis_Nb = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(NumberFormatException e) {\r\n\t\t\t\tSystem.out.println(\"Enter a number\");\r\n\t\t\t}\r\n\t\t}while(!is_Nb);\r\n\t\treturn i;\r\n\t}", "public boolean HayPapelEnLaEsquina(int avenida, int calle);", "public boolean test_entry() {\n\t\tboolean t = false;\n\t\tdouble val = Double.parseDouble(numericfield.getText());\n\n\t\tif (val == opt) {\n\t\t\tt = true;\n\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\"Vous avez trouvé le bon parametre pour ce remede\");\n\t\t}\n\t\t// case init > opt ---> on doit diminuer la valeur !!!!\n\t\tif (init > opt) {\n\t\t\tif (init > val && val > opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init > val && opt > val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val > init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\n\t\t// case init < opt ---> on doit augmenter la valeur !!!!\n\t\tif (init < opt) {\n\t\t\tif (init < val && val < opt)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\"Vous allez dans le bon sens , continuez\");\n\t\t\tif (init < val && opt < val)\n\t\t\t\tJOptionPane\n\t\t\t\t\t\t.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\" Vous avez raté le parametre optimale et vous allez dans le mauvais sens\");\n\t\t\tif (val < init)\n\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\" Vous allez dans le mauvais sens\");\n\t\t}\n\t\treturn t;\n\t}", "private static int getInt()\n\t{\n\t\tScanner kb;\n\t\tint Val;\n\t\tkb = new Scanner(System.in);\n\t\tSystem.out.println();\n\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\n\t\twhile (!kb.hasNextInt())\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\tkb = new Scanner(System.in);\n\t\t}\n\t\t\n\t\tVal = kb.nextInt();\n\t\t\n\t\twhile (Val < 0)\n\t\t{\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(\"Fail. Try harder!\");\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER: \");\n\t\t\t\n\t\t\twhile (!kb.hasNextInt())\n\t\t\t{\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.println(\"Your options are clearly stated. Your failure is disapointing!\");\n\t\t\t\tSystem.out.println();\n\t\t\t\tSystem.out.print(\"Please enter a VALID POSITIVE INTEGER this time: \");\n\t\t\t\tkb = new Scanner(System.in);\n\t\t\t}\n\t\t\tVal = kb.nextInt();\n\t\t\t\n\n\t\t}\n\t\t\n\t\t\n\t\treturn Val;\n\t\t\n\t}", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}", "private boolean check_int_only(Question q)\n\t{\n\t\tNode val = doc.selectSingleNode(\"//document/question_attributes/rows/row[qid=\" + q.getQid() + \" and attribute='num_value_int_only']/value\");\n\t\treturn val.getText().equals(\"1\") ? true : false;\n\t}", "private static void determineIsPositiveInt() {\n System.out.println(\"Enter a number:\");\r\n Scanner s = new Scanner(System.in);\r\n int i = Integer.parseInt(s.nextLine());\r\n if (i > 0)\r\n System.out.println(\"Positive i\");\r\n else if (i == 0)\r\n System.out.println(\"i=0\");\r\n else\r\n System.out.println(\"Negative i\");\r\n }", "public boolean estValide() {\n\t\treturn ( estDedans() && estImpaire() ); \n }", "@Override\n public void subida(){\n // si es mayor a la eperiencia maxima sube de lo contrario no\n if (experiencia>(100*nivel)){\n System.out.println(\"Acabas de subir de nivel\");\n nivel++;\n System.out.println(\"Nievel: \"+nivel);\n }else {\n\n }\n }", "public boolean estaVacia(){\n if(darTamanio==0){\n return true;\n } \n else{\n return false;\n }\n}", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "public void ingresar() \r\n\t{\r\n\r\n\t\tString numeroCasilla = JOptionPane.showInputDialog(this, \"Ingresar numero en la casilla \" + sudoku.darFilaActual() + \",\" +sudoku.darColumnaActual());\r\n\t\tif (numeroCasilla == null || numeroCasilla ==\"\")\r\n\t\t{}\r\n\t\telse\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\tint numeroCasillaInt = Integer.parseInt(numeroCasilla);\r\n\t\t\t\tif(numeroCasillaInt > sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona() || numeroCasillaInt < 1)\r\n\t\t\t\t{\r\n\t\t\t\t\tJOptionPane.showMessageDialog( this, \"El numero ingresado no es valido. Debe ser un valor entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch(Exception e)\r\n\t\t\t{\r\n\t\t\t\tJOptionPane.showMessageDialog( this, \"Debe ingresar un valor numerico entre 1 y \" + sudoku.darCantidadColumnasZona()*sudoku.darCantidadFilasZona(), \"Error\", JOptionPane.ERROR_MESSAGE );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static boolean menosONo(){\n Scanner cifra = new Scanner(System.in);\n System.out.println(\"Задание №6. Введите любое число\");\n int number = cifra.nextInt();\n if (number < 0){\n System.out.println(\"Вы ввели отрицательное число.\");\n return true;\n }else\n System.out.println(\"Вы ввели положительное число.\");\n return false;\n }", "public static int verif(String cadena) {\r\n Scanner l = new Scanner(System.in);\r\n int m1 = -1;\r\n do {\r\n try {\r\n System.out.println(cadena);\r\n m1 = l.nextInt();\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"Valor no valido, ingrese un valor nuimerico\");\r\n }\r\n l.nextLine();\r\n } while (m1 < 0);\r\n\r\n return m1;\r\n }", "private void checkAnnoRateo() {\n\t\tif(req.getRateo().getAnno()>=primaNota.getBilancio().getAnno()){\n\t\t\tthrow new BusinessException(ErroreCore.OPERAZIONE_NON_CONSENTITA.getErrore(\"L'anno del Rateo deve essere minore dell'anno della prima nota di partenza.\"));\n\t\t}\n\t}", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "public int pedirNIF(){\n int NIF = 0;\n boolean validado = false;\n do{\n System.out.println(\"Introduce la NIF:\");\n try {\n NIF = Integer.parseInt(lector.nextLine());\n validado = true;\n\n if(NIF <= 0){\n validado = false;\n System.out.println(\"El NIF no puede ser un numero negativo\");\n }\n }catch (NumberFormatException nfe){\n System.out.println(\"Por favor, introduce un numero.\");\n }\n\n }while(!validado);\n return NIF;\n }", "public void checkResult(){\n\t\tif(throwNum == 0){\n\t\t\tthis.firstThrow = this.sumOfDice;\n\t\t}\n\n\t\tif((this.sumOfDice == 7 || this.sumOfDice==11) && throwNum==0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse if(this.sumOfDice ==2 || this.sumOfDice== 3 ||this.sumOfDice==12){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.game == gameStatus.CONTINUE && this.sumOfDice == 7)){\n\t\t\tthis.game = gameStatus.LOST;\n\t\t}\n\t\telse if((this.sumOfDice== this.firstThrow) && throwNum!=0){\n\t\t\tthis.game = gameStatus.WON;\n\t\t}\n\t\telse{\n\t\t\tthis.game = gameStatus.CONTINUE;\n\t\t}\n\t}", "public boolean probabilidadTotalEsValida(){\n return probabilidadTotal == 1.0;\n }", "public boolean prestamo(){\n boolean prestado = true;\n if (cantPres < cantLibro) {\n cantPres++;\n } else {\n prestado = false;\n }\n return prestado;\n }", "private static boolean isPositive(int ID) {\n return ID > 0;\n }", "private boolean isResultadoDadoValido(int resultadoDado) throws Exception {\n if ((resultadoDado > 6) || (resultadoDado < 1)) {\n throw new Exception(\"Invalid die result\");\n }\n return true;\n }", "public boolean tienePapel()\n {\n //COMPLETE\n return this.hojas > 0;\n }", "public void calcular() {\n int validar, c, d, u;\n int contrasena = 246;\n c = Integer.parseInt(spiCentenas.getValue().toString());\n d = Integer.parseInt(spiDecenas.getValue().toString());\n u = Integer.parseInt(spiUnidades.getValue().toString());\n validar = c * 100 + d * 10 + u * 1;\n //Si es igual se abre.\n if (contrasena == validar) {\n etiResultado.setText(\"Caja Abierta\");\n }\n //Si es menor nos indica que es mas grande\n if (validar < contrasena) {\n etiResultado.setText(\"El número secreto es mayor\");\n }\n //Si es mayot nos indica que es mas pequeño.\n if (validar > contrasena) {\n etiResultado.setText(\"El número secreto es menor\");\n }\n }", "private int getValidInteger(String msg) {\n\t\twhile (!scan.hasNextInt() || (choice = scan.nextInt()) < 1) {\n\t\t\tSystem.out\n\t\t\t\t\t.print(\"Error ---> Enter Positive Integer Value:\\n\" + msg);\n\t\t\tscan.next();\n\t\t}\n\n\t\treturn choice;\n\t}", "public boolean isSolved(){ return getRemainingValues() == 0; }", "@Override\n\t\t\tpublic boolean test(Integer t) {\n\t\t\t\tint tmp = t;\n\t\t\t\tif (tmp % 2 == 0) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\treturn false;\n\t\t\t}", "public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }", "public boolean disattiva_account()\n {\n boolean d=true;//variabile per disattivare l'account\n //già messa a true in quanto l'account viene attualmente usato\n int scelta;\n \n System.out.println(\"--Vuoi disattivare l'account?\\n[1] si [0] no\");\n scelta=input.nextInt();\n \n if(scelta==1)\n { \n d=false;\n System.out.println(\"--Attenzione account disattivato--\");\n }\n \n else if(scelta==0)\n { \n System.out.println(\"--Puoi usare ancora il tuo account--\");\n }\n \n else \n System.out.println(\"Impossibile eseguire l'operazione scelta\");\n \n return d;\n }", "@SuppressWarnings(\"SuspiciousMethodCalls\")\n private int houve_estouro()\n {\n int retorno = 0;\n boolean checar = false;\n for (Map.Entry i: janela.entrySet())\n {\n if (janela.get(i.getKey()).isEstouro())\n {\n janela.get(i.getKey()).setEstouro(false);\n retorno =(int) i.getKey();\n checar = true;\n break;\n }\n }\n for(Map.Entry i2: janela.entrySet()) janela.get(i2.getKey()).setEstouro(false);\n if(checar) return retorno;\n else return -69;\n }", "public boolean HayObstaculo(int avenida, int calle);", "boolean isInt(TextField input);", "public int check(){\r\n\r\n\treturn count ++;\r\n\t\r\n}", "private boolean isPosicaoFerrovia(int posicao) {\n return (posicao == 5 || posicao == 15 || posicao == 25 || posicao == 35);\n }", "private boolean isValidOption(int option){\n return (option >= 0) && (option < this.count());\n }", "private static int IntInput(){\n\t\tScanner input = new Scanner(System.in); \n\t\t// set the interger Value to less then the threshold minimum (-1)\n\t\tint Value = -1 ;\n\t\twhile (Value < 0){\n\t\t\tValue = input.nextInt();\n\t\t\tif (Value < 0){\n\t\t\t\tSystem.out.printf(\"The number must be greater than or equal to to 0 \\nPlease enter a different value: \");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn Value;\n\t}", "public abstract boolean isPositive();", "public static int validInt(String message){\n boolean success = false;\n int value = -1;\n do {\n try {\n value = (int)readNumber(message, \"int\");\n success = true;\n } catch (InputMismatchException e){\n System.out.println(\"Debe introducir un valor numérico... \");\n }\n } while(!success);\n return value;\n }", "@Override\r\n\tprotected boolean puedeExtraer(double monto) {\n\t\treturn ((super.getSaldo() - monto) >= 0) ? true : false;\r\n\t}", "public boolean checkOverflow() {\n\t\tfor(int i = 0; i < hand.size(); i++) {\n\t\t\tif(hand.get(i).getValue() == 11) {\n\t\t\t\thand.get(i).makeSoft();\n\t\t\t\tSystem.out.println(\"The value of the \" + hand.get(i) +\" was changed to 1\");\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t\t\n\t}", "public boolean PilaVacia()\n {\n if(tope == 0)\n {\n return true;\n }\n else\n {\n return false;\n }\n }", "public boolean esValidoElIndice(int indice){\n return (indice > 0 && indice< tareas.size());\n }", "boolean puedoEdificarCasa(Casilla casilla){\n boolean puedoEdificar = false;\n \n //Se comprueba si el jugador es propietario de la casilla.\n boolean esMia = this.esDeMipropiedad(casilla);\n \n if(esMia){\n //Se obtiene el precio de edificación.\n int costeEdificarCasa = casilla.getPrecioEdificar();\n \n //Se comprueba que el jugador tiene saldo para llevar a cabo la edificación.\n boolean tengoSaldo = this.tengoSaldo(costeEdificarCasa);\n \n if(tengoSaldo){\n puedoEdificar = true;\n } \n }\n return puedoEdificar; \n }", "public void aumentaInSitu(){\n if(quantidade_in_situ<quantidade_disponivel)\n quantidade_in_situ++;\n else\n return;\n }", "private boolean poseeSaldoAnterior() {\n boolean retorno = false;\n if(saldoAnterior !=null){\n retorno = true;\n }\n return retorno;\n }", "private boolean isPosicaoEstatal(int posicao) {\n\n boolean estatal = false;\n if (posicao == 12 || posicao == 28) {\n return true;\n } else {\n return false;\n }\n }", "@Test\n\tpublic void testInt2() {\n\t\tTextField intText = new TextField(\"-23\");\n\t\tboolean checkIntText = initTest.checkIntValues(intText);\n\t\tassertFalse(checkIntText);\n\t}", "private boolean tryPay() {\n return new Random().nextInt(100) + 1 <= 50;\n }", "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 }", "@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}", "private int verificarRemocao(No no){\n if(no.getDireita()==null && no.getEsquerda()==null)\n return 1;\n if((no.getDireita()==null && no.getEsquerda()!=null) || (no.getDireita()!=null && no.getEsquerda()==null))\n return 2;\n if(no.getDireita() != null && no.getEsquerda() != null)\n return 3;\n else return -1;\n }", "boolean sacar(double valor) {\n\t\tif (valor <= this.saldo+this.limite) {\n\t\t\tthis.saldo -= valor;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean checkInt(String str) {\n\t\ttry {\n\t\t\tint integer = Integer.parseInt(str);\n\t\t\tif(integer>=0&&integer<100000){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "protected void validatePreamp(int[] param) {\n }", "@Quando(\"^eu adicionar (\\\\d+) tarefa valida$\")\r\n\tpublic void eu_adicionar_tarefa_valida(int arg1) throws Throwable {\r\n\t\thp.adicionarTarefa(\"Tarefa n\", arg1);\r\n\t\t\r\n\t}", "public boolean restarUno(){\n\t\tif (numero>0){\n\t\t\tnumero--;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private int saisiePersoInt(String typeChoice, int min, int max) { \n\t\tint persoInt; \n\t\ttry {\n\t\t\tSystem.out.println(\"choisissez \"+ typeChoice+\" entre \"+min+\" et \"+max); \n\t\t\tpersoInt=sc.nextInt();\n\t\t\tsc.nextLine();\n\t\t\tif(persoInt<min || persoInt>max) {\n\t\t\t\tsaisiePersoInt(typeChoice, min, max);\n\t\t\t}; \n\t\t\treturn persoInt; \n\t\t} catch (InputMismatchException e) { \n\t\t\tSystem.out.println(\"vous n'avez pas rentré un monbre entier\"); \n\t\t\tsc.nextLine();\n\t\t\treturn saisiePersoInt(typeChoice, min, max); \n\t\t} catch (NoSuchElementException e) {\n\t\t\tSystem.out.println(\"vous n'avez rien rentré\"); \n\t\t\tsc.nextLine();\n\t\t\treturn saisiePersoInt(typeChoice, min, max);\n\t\t}\n\t}", "public void verificaInteiroMaiorQueZero(int parametro, String mensagem) {\n if (parametro <= 0) {\n throw new IllegalArgumentException(this.msgGeral + mensagem);\n }\n }", "private boolean checkGreedyDefense() {\r\n return enTotal.get(2)+1 < myTotal.get(2) && enTotal.get(0)+1 < myTotal.get(0);\r\n }", "private static boolean validateInteger(Map.Entry<String, CheckState> entry) {\n String prop = System.getProperty(entry.getKey());\n if (entry.getValue().isOptional && prop == null) {\n return true;\n }\n try {\n Integer.parseInt(prop);\n } catch (NumberFormatException e) {\n return false;\n }\n return !\"\".equals(prop);\n }", "public boolean tieneDinero(int precioEntrada){\r\n return this.dinero >= precioEntrada;\r\n }", "private boolean intToBoolean(int arg) {\n\t\tif (arg == 0) {\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private int validateIntegerInput(int input) {\n if (input < 1 ) {\n input = -1;\n }\n return input;\n }", "public int getValid() {\n return valid;\n }", "private static int digitarAntiguedad() {\n\t\tint antiguedad;\n\t\tSystem.out.println(\"Digite la antiguedad en aņos: \");\n\t\tantiguedad = teclado.nextInt();\n\t\treturn antiguedad;\n\t}", "private boolean checkInteger(String str) {\n try {\n return Integer.parseInt(str) <= 30; // Check if the entered value is an Integer and <= 30;\n } catch (NumberFormatException e) {\n return false;\n }\n }", "@Test\n public void testValiderNumeroSoin() {\n \n assertTrue(soin1.validerNumeroSoin());\n assertFalse(soin4.validerNumeroSoin());\n assertTrue(soin2.validerNumeroSoin());\n }", "private boolean isInt (String s) {\n\t\ttry {\n\t\t\tif(Integer.parseInt(s) < 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\tcatch(NumberFormatException e) {\n\t\t\treturn false;\n\t\t}\n\t\tcatch(NullPointerException e) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Override\r\n\tint check_sweetness() {\n\t\treturn 10;\r\n\t}", "public double ValidaValor(){\n\t return 0;\n }", "@Override\r\n public boolean ubahStatus(int masukan) {\r\n if (masukan == 1) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public int masVendido(int cantidad){\r\n \r\n return cantidad;\r\n }", "protected boolean checkChance(ReturnValue returnValue) {\n\t\tint sum = 0;\n\t\t\t\tfor (Integer i : intList) {\n\t\t\t\t\tsum += i;\n\t\t\t\t}\n\t\treturnValue.setValue(true, sum, Box.CHANCE);\n\t\treturn true;\n\t}", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "private boolean esColumnaValida(int columna) {\n return (columna>=0 && columna<=casillas[0].length);\n }", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "private boolean checkValidQuantity (int quantity){\n if (quantity >= 0){\n return true;\n }\n return false;\n }", "public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }", "private int getTextAns() {\n EditText tempAns = findViewById(R.id.answer0);\n if (tempAns.getText().toString().toLowerCase().equals(\"addition\")) {\n return 1;\n } else {\n return 0;\n }\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "private void incrPositiveCount(){\n m_PositiveCount++;\n }" ]
[ "0.6469821", "0.6373925", "0.6297207", "0.6268694", "0.6191933", "0.61904925", "0.61048985", "0.6090398", "0.60899186", "0.6040207", "0.6015303", "0.6009537", "0.5999034", "0.5993524", "0.5983987", "0.59471536", "0.59333175", "0.5912827", "0.5900162", "0.58723605", "0.5841768", "0.58394676", "0.58231115", "0.57997406", "0.5784338", "0.57632303", "0.5754895", "0.5750777", "0.5744176", "0.5743018", "0.57094884", "0.57029206", "0.5701842", "0.57001257", "0.5693941", "0.5683564", "0.56774944", "0.56691587", "0.56683123", "0.56655437", "0.5625487", "0.56254655", "0.5624775", "0.56204474", "0.56106716", "0.5605776", "0.5601977", "0.55976725", "0.55962956", "0.5588969", "0.5574406", "0.55708706", "0.5558787", "0.55482006", "0.5546176", "0.55321896", "0.5530782", "0.5522836", "0.55197203", "0.55046916", "0.5502272", "0.5488867", "0.5485029", "0.5484517", "0.5475266", "0.5475241", "0.5470796", "0.5469385", "0.5465491", "0.5463496", "0.54601216", "0.54566425", "0.5456136", "0.54429454", "0.5439023", "0.54381424", "0.5434389", "0.54275244", "0.5427497", "0.5416568", "0.5408715", "0.54057086", "0.5401244", "0.53967464", "0.53884506", "0.5388144", "0.5385978", "0.53827983", "0.5381632", "0.53774554", "0.537131", "0.53693724", "0.53609127", "0.5357773", "0.5353187", "0.53524095", "0.53506476", "0.5347865", "0.5346385", "0.5345046", "0.5338914" ]
0.0
-1
evalua que este bien escrita la condicion
private String[] Condicion(String variable, String condicion) { String retorno[] = new String[2]; try { String[] simbolos = {"<=", ">=", "==", "!=", "<", ">"}; String simbolo = "0"; for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion if (condicion.contains(simbolos[i])) { simbolo = simbolos[i]; break; } } if (simbolo.equals("0")) { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } else { String var[] = condicion.split(simbolo); if (var.length == 2) { if (esNumero(var[0])) { if (esNumero(var[1])) { retorno[0] = "1"; retorno[1] = ""; } else { if (var[1].equals(variable)) { retorno[0] = "1"; retorno[1] = ""; } else { retorno[0] = "0"; retorno[1] = "no se reconoce la variable " + var[1] + "."; } } } else { if (var[0].equals(variable)) { if (esNumero(var[1])) { retorno[0] = "1"; retorno[1] = ""; } else { retorno[0] = "0"; retorno[1] = "no se reconoce la variable " + var[1] + "."; } } else { retorno[0] = "0"; retorno[1] = "no se reconoce la variable " + var[0] + "."; } } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } } catch (Exception e) { System.out.println("Error en condicion " + e.getClass()); } finally { return retorno; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "@Override\n\tpublic boolean evaluar(Calculable cal) {\n\t\treturn false;\n\t}", "@Override\n public boolean reconoce(String entrada) {\n\t\n\tchar simbolos[] = entrada.toCharArray();\n\t\n\tauxiliarClausuraLambda.clear();\n\tclausuraLambda(q0);\n\n\testadosActuales.clear();\n\testadosActuales.addAll(auxiliarClausuraLambda);\n\t// Clausura lambda\n\tfor(char s : simbolos) {\n\n\t estadosAuxiliar.clear();\n\n\t // Transiciones de los estados con el simbolo\n\t for(int q : estadosActuales)\n\t\tif(q != 0)\n\t\t transita(q, s);\n\n\t auxiliarClausuraLambda.clear();\n\t for(int q : estadosAuxiliar)\n\t\tclausuraLambda(q);\n\n\t estadosActuales.clear();\n\t estadosActuales.addAll(auxiliarClausuraLambda);\n\t // Clausura lambda de los estados\n\t}\n\n\tboolean acepta = false;\n\tfor(int q : estadosActuales)\n\t if( (acepta = F.contains(q)) == true )\n\t\tbreak;\n\n\treturn acepta;\n }", "@Override\n\tpublic boolean evaluarPropuesta(Oferta o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}", "boolean isEvaluable();", "private boolean isPreEvalSymobl()\r\n\t{\r\n\t\t//if the expression is empty return false\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn false;\r\n\t\tString lastChar = expression.substring(expression.length() - 1, expression.length());\r\n\t\tfor(String str : evalSymbol)\r\n\t\t\tif(str.equals(lastChar))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public boolean sucheMitspieler();", "public void evaluate() {\n if (manoeuvre.getTrajectory().getEvolutionEnd() - manoeuvre.getCalcEvolution() <= toDoLength) { raise(); }\n }", "public boolean evaluate();", "private double evaluarExp4() throws Excepciones{\n double resultado;\n double resultadoParcial;\n double ex;\n int t;\n resultado = evaluarExp5();\n if(token.equals(\"^\")){\n obtieneToken();\n resultadoParcial = evaluarExp4();\n ex = resultado;\n if(resultadoParcial == 0.0) {\n resultado = 1.0;\n }else{\n for(t=(int)resultadoParcial-1; t > 0; t--){\n resultado = resultado * ex;\n }\n }\n }\n return resultado;\n}", "public void disconnetti() {\n\t\tconnesso = false;\n\t}", "public boolean offForEvaluation();", "double eval();", "private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }", "protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}", "Boolean getCompletelyCorrect();", "private double evaluarExp6() throws Excepciones{\n double resultado;\n if(token.equals(\"(\")) {\n obtieneToken();\n resultado = evaluarExp2();\n if(!token.equals(\")\")){\n obtieneError(PARENTESIS);\n }\n obtieneToken();\n }else{\n resultado = valor();\n }\n return resultado;\n}", "public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }", "public String evaluarAccion(Pokemon atacante, Pokemon defensor){\r\n// int[] debilidades_atacante = atacante.getDebilidades();\r\n// for (int i = 0; i < debilidades_atacante.length; i++) {\r\n// if(debilidades_atacante[i] == defensor.getNaturaleza_primaria() || debilidades_atacante[i] == defensor.getNaturaleza_secundaria()){\r\n// return \"Cambiar\";\r\n// }\r\n// \r\n// }\r\n// return \"Atacar\";\r\n int random = (int)(Math.random()*2+1);\r\n if(random == 1){\r\n return \"Atacar\";\r\n }\r\n else{\r\n return \"Cambiar\";\r\n }\r\n }", "boolean getCorrect();", "public void evaluate() throws Throwable {\n }", "void negarAnalise();", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public boolean esConexo() {\n\t\tboolean result = true;\n\t\tint indice = 0;\n\t\tBusquedaEnProfundidad busqueda = new BusquedaEnProfundidad(this, 0);\n\n\t\twhile (result && indice < cantNodos) {\n\t\t\tif (!busqueda.estaVisitado(indice))\n\t\t\t\tresult = false;\n\t\t\tindice++;\n\t\t}\n\n\t\treturn result;\n\t}", "public boolean reducible() {\n\treturn \n\t operator . equals( \"\\\\\") &&\n\t (argument.reducible() || argument instanceof BoolConstant);\n }", "@Test\r\n public void CriterioUnidadSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }", "public boolean tengoProteccion() {\n\t\treturn escudo;\n\t}", "@Override\n protected boolean runInEQ() {\n return true;\n }", "boolean isEstConditionne();", "private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }", "@Test\r\n public void CriterioUnidadNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }", "public boolean isPredeterminado()\r\n/* 154: */ {\r\n/* 155:264 */ return this.predeterminado;\r\n/* 156: */ }", "Hojas eval();", "bool eval(Map<string,object> obj)\n {\n if(!obj.contains(property)) //dept\n return false;\n \n curValue = obj.get(property); //purchase\n switch(operator)\n {\n case '==':\n return value.equeals(curValue); sales == purchase\n break;\n case '>':\n ...\n case '<':\n ...\n case '!=':\n ... \n case '<=':\n ...\n case '>=':\n ...\n }\n }", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "private boolean evaluate(final String input) {\n return evaluate(input, true);\n}", "private Boolean evaluateBooleanExpression(Expression expr, InMemoryExpressionEvaluator eval)\n {\n try\n {\n Object result = expr.evaluate(eval);\n return (result instanceof InMemoryFailure) ? Boolean.FALSE : (Boolean)result;\n }\n catch (VariableNotSetException vnse)\n {\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021024\", vnse.getVariableExpression().getId(), StringUtils.objectArrayToString(vnse.getValues())));\n }\n\n // TODO The iteration through possible variable values needs improving. We currently just drop out\n // to here with the possible values of a variable when first encountered (and not yet set), which\n // then starts the iteration process. This likely would fail if 2 or more variables (unchecked)\n if (vnse.getValues() == null || vnse.getValues().length == 0)\n {\n // No values available for this variable, so just put null and see the result\n eval.setVariableValue(vnse.getVariableExpression().getId(), null);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), \"(null)\"));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n else\n {\n // Set this variable and start iteration over the possible variable values\n for (int i=0;i<vnse.getValues().length;i++)\n {\n eval.setVariableValue(vnse.getVariableExpression().getId(), vnse.getValues()[i]);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), vnse.getValues()[i]));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n }\n\n // No variable value was successful so return FALSE\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021026\", vnse.getVariableExpression().getId()));\n }\n eval.removeVariableValue(vnse.getVariableExpression().getId());\n return Boolean.FALSE;\n }\n }", "boolean puedoEdificarCasa(Casilla casilla){\n boolean puedoEdificar = false;\n \n //Se comprueba si el jugador es propietario de la casilla.\n boolean esMia = this.esDeMipropiedad(casilla);\n \n if(esMia){\n //Se obtiene el precio de edificación.\n int costeEdificarCasa = casilla.getPrecioEdificar();\n \n //Se comprueba que el jugador tiene saldo para llevar a cabo la edificación.\n boolean tengoSaldo = this.tengoSaldo(costeEdificarCasa);\n \n if(tengoSaldo){\n puedoEdificar = true;\n } \n }\n return puedoEdificar; \n }", "private void doEpsilon(){\n\t\tcurrentState = \"q0\";\n\t}", "String evaluate();", "@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "public boolean Vacia (){\n return cima==-1;\n \n }", "public abstract boolean esComestible();", "private boolean checkInCashe(String s) {\n return true;\n }", "public void enfoncerMoins() {\n\t\ttry {\n\t\t\tthis.op = new Moins();\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}", "@Test\r\n public void Criterio60SiCumpleTest()\r\n {\r\n CriterioDeCorreccion criterio = new SesentaPorcientoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4);\r\n }", "public static String IngresarRazaCorrecta (){\n boolean condicion;\r\n int razaPerro;\r\n String razaElegida=\"\";\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n razaElegida=TiposDeRaza(razaPerro - 1);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n return razaElegida;}", "private boolean evaluarEntrada(Date fechaPoliza, AnalisisDeFlete det) {\r\n\t\treturn true;\r\n\t}", "protected boolean asEaten() {\n return false;\n }", "public int evaluate() {\n return Condition.INDETERMINATE;\n }", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "static boolean continuar(){\r\n\t\tchar respuesta = Teclado.leerCaracter(\"¿Desea continuar? (s/n): \");\r\n\t\tif (respuesta == 's' || respuesta == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}", "public boolean isSolved(){ return getRemainingValues() == 0; }", "@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}", "@Override\r\n\tpublic void checkAnswer() {\n\t\t\r\n\t}", "@Test\r\n public void Criterio60NoCumpleTest()\r\n {\r\n CriterioDeCorreccion criterio = new SesentaPorcientoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }", "public double evaluar(String cadenaExp) throws Excepciones{\n double resultado;\n exp = cadenaExp;\n expIndice = 0;\n obtieneToken();\n if(token.equals(FINEXP)){\n obtieneError(SINEXP); // no hay expresion presente\n } \n // analiza y evalua la expresion\n resultado = evaluarExp2();\n if(!token.equals(FINEXP)){ // el ultimo token debe ser FINEXP\n obtieneError(SYNTAXIS);\n }\n return resultado;\n }", "public boolean evaluate(Substitution sub);", "@Override\n public String Calculo(String expresion) throws ArithmeticException {\n while(!stack.empty()){\n stack.pop();\n }\n try {\n for(int i = 0; i<expresion.length(); i++){\n //Obtener cada caracter del string.\n char op = expresion.charAt(i);\n //Determinar si es un operador, operando o un termino no valido.\n if(nums.contains(Character.toString(op))){\n stack.push(Character.getNumericValue(op));\n }\n else if(ops.contains(Character.toString(op))){\n postFixEvalution(op);\n }\n else if(op != ' '){\n return \"Error: No se pudo realizar la operacion por invalidez de simbolos\";\n }\n }\n\n //Al finalizar, se debe validar que el stack tenga un solo dato dentro, el cual sera\n //probablemente el resultado de la operacion.\n\n if(stack.empty() || stack.size() > 1){\n return \"Error: Expresion invalida\";\n }\n else{\n return stack.pop().toString();\n }\n }\n catch (ArithmeticException e){\n\n throw new ArithmeticException(e.getMessage());\n }\n\n\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public IRecepteur quiEstEnDessous();", "public boolean validatePrescription() {\n\t\tif (dose == 0)\n\t\t\treturn false;\n\t\tif (count == 0)\n\t\t\treturn false;\n\t\tif (dosing == 0)\n\t\t\treturn false;\n\t\tif (instructions == null)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "protected Object subEval(EvalContext ctx, boolean forValue) {\n T.fail(\"A DelayedExpr isn't eval-able\");\n return null; //make compiler happy\n }", "void aprovarAnalise();", "@Test\r\n public void testVerificaPossibilidade2() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "private double evaluarExp2() throws Excepciones{\n char op;\n double resultado;\n double resultadoParcial;\n resultado = evaluarExp3();\n while((op = token.charAt(0)) == '+' || op == '-') {\n obtieneToken();\n resultadoParcial = evaluarExp3();\n switch(op) {\n case '-':\n resultado = resultado - resultadoParcial;\n break;\n case '+':\n resultado = resultado + resultadoParcial;\n break;\n } \n }\n return resultado;\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "@Test\r\n public void CriterioTipoSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }", "public boolean EvaluaSucesor(char Valor, char Sucesor) {\n if (Valor == Sucesor) {\n return true;\n } else {\n return false;\n }\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "@Test\r\n public void testVerificaPossibilidade3() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "void doSet() throws NotConnectedException\n\t{\n\t\ttry\n\t\t{\n\t\t\tValueExp exp = null;\n\n\t\t\tif (!hasMoreTokens())\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"setCommand\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\t// pull the expression\n\t\t\t\tString s = restOfLine();\n\n\t\t\t\t// parse and eval which causes the assignment to occur...\n\t\t\t\tif ( (exp = parseExpression(s)) == null )\n\t\t\t\t\t; // failed parse\n\n\t\t\t\t// make sure contains assignment\n\n\t\t\t\telse if ( !exp.containsAssignment() )\n\t\t\t\t\tthrow new IllegalAccessException(\"=\"); //$NON-NLS-1$\n\n\t\t\t\telse\n\t\t\t\t\tevalExpression(exp);\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException iae)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"operator\", iae.getMessage()); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"missingOperator\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotEvaluate\")); //$NON-NLS-1$\n\t\t}\n\t}", "@Test\r\n public void testVerificaPossibilidade4() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Override\n public boolean evaluate(Event event) {\n return true;\n }", "public boolean solucionar() {\n\t\treturn false;\n\t}", "private boolean validacionesSolicitarReserva(int indice, int CodEmp, int CodLoc, int CodCot, boolean isSol){\n boolean blnRes=true;\n try{\n if(!validaItemsServicio(CodEmp, CodLoc, CodCot)){\n blnRes=false;\n MensajeInf(\"La cotizacion contiene Items de Servicio o Transporte, los cuales no deben ser reservados.\");\n }\n\n if(!validaFechasMAX(indice, tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString(),isSol)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada es mayor a la permitida, revise la Fecha y vuelva a intentarlo\");\n }\n \n if(!validaTerminalesLSSegunEmpresaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar reserva de codigos L/S en este local, debe reservarlo por el local que puede ser facturado\");\n }\n \n if(!validaFechasPrimerDiaLaboral(indice,isSol,CodEmp,CodLoc)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada, no corresponde al primer dia laboral registrado\");\n } \n \n if(tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if(!validaTerminalesLReservaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar Reserva en Empresa de Codigos L \");\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "public boolean estValide() {\n\t\treturn ( estDedans() && estImpaire() ); \n }", "@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "private double individualEvaluation() {\n\t\t//System.out.println(\"indE\"+ myValues.get(myAction.getPurpose()).getStrength(null));\n\t\treturn myValues.get(myAction.getPurpose()).getStrength(null);\n\t}", "private boolean literal() {\r\n return ALT((GO() && escape()) || (OK() && visible()));\r\n }", "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "@Override\n\tpublic boolean reverseCorrectIt() {\n\t\treturn false;\n\t}", "@Test\r\n public void CriterioTipoNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0); \r\n }", "private static void expressions() {\n double kilometers = (100 * 1.609344);\n int highScore = 50;\n\n if (highScore == 50) {\n System.out.println(\"this is an expression\");\n }\n\n int score = 100;\n if (score > 99) {\n System.out.println(\"You got the high score\");\n score = 0;\n }\n }", "void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}", "private void validExpresion(){\n\t\tString valores =\"+/*-^sinbqrcotah.\";\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint tam = fun.length-1;\n\t\tif(tam > 0){\n\t\t\tif(valores.indexOf(fun[tam]) != -1){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t\t}\n\t\t}\n\n\t\tif(this.getText().equals(\"+\") || this.getText().equals(\"-\") || this.getText().equals(\".\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"s\") || this.getText().equals(\"c\") || this.getText().equals(\"t\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"(\") || this.getText().equals(\"a\") || this.getText().equals(\"i\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\t}", "@Override\r\n public void resetEvaluation ()\r\n {\r\n evaluation = null;\r\n }", "@Test\r\n public void testVerificaPossibilidade6() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }", "public void coMina(){\n espM=true;\r\n }", "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }", "@Override\n void execute(RolapEvaluator evaluator) {\n }", "boolean isOnlineEvaluation();", "private static void verifEnt() {\r\n\t\tif (tCour != ENT)\r\n\t\t\tUtilLex.messErr(\"expression entiere attendue\");\r\n\t}" ]
[ "0.6199149", "0.61821806", "0.5824142", "0.57683206", "0.57339597", "0.5714099", "0.55370516", "0.5504262", "0.5462788", "0.54525864", "0.5421903", "0.54139996", "0.5406428", "0.53670734", "0.5326402", "0.53154325", "0.5278615", "0.5266801", "0.52627724", "0.52557766", "0.52501035", "0.5249871", "0.5249498", "0.5217439", "0.51959383", "0.51828694", "0.51821905", "0.5179474", "0.51741314", "0.5172903", "0.515817", "0.51412755", "0.513577", "0.5123439", "0.51228493", "0.512195", "0.5119772", "0.511317", "0.50994873", "0.5078422", "0.5071221", "0.5070113", "0.506484", "0.5063823", "0.5051147", "0.50416183", "0.50349987", "0.50293696", "0.50288236", "0.50285316", "0.5027633", "0.50266355", "0.5024654", "0.50186366", "0.5012541", "0.50098383", "0.50051916", "0.5000797", "0.49971512", "0.49914503", "0.49908754", "0.4990308", "0.4989355", "0.49789262", "0.49746573", "0.49482733", "0.49476522", "0.49362394", "0.49361482", "0.49305758", "0.49296907", "0.49295175", "0.492454", "0.49229723", "0.49194044", "0.49117088", "0.490904", "0.49084163", "0.49084127", "0.49009192", "0.48923525", "0.4888599", "0.48862073", "0.4884758", "0.48805913", "0.4877009", "0.48765042", "0.48723263", "0.48699397", "0.4869556", "0.48667112", "0.48615882", "0.48582977", "0.48573804", "0.48566094", "0.48556998", "0.48486626", "0.48481435", "0.48407644", "0.48368734", "0.48349175" ]
0.0
-1
evalua que este bien escrita la condicion
private String[] condicionGeneral(String condicion) { String retorno[] = new String[2]; try { String[] simbolos = {"<=", ">=", "==", "!=", "<", ">"}; String simbolo = "0"; if (condicion.length() > 3) { condicion = condicion.substring(1, condicion.length()); for (int i = 0; i < simbolos.length; i++) {//selecciona el simbolo de la condicion if (condicion.contains(simbolos[i])) { simbolo = simbolos[i]; break; } } if (simbolo.equals("0")) { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } else { String var[] = condicion.split(simbolo); if (var.length == 2) { if (esNumero(var[0])) { if (esNumero(var[1])) { retorno[0] = "1"; retorno[1] = ""; } else { if (var[1].matches("[a-zA-Z]*")) { //comprueba que solo contenga letas byte aux = 0; for (int i = 0; i < codigo.size(); i++) { if (var[1].equals(codigo.get(i).toString())) { aux++; } } if (aux > 0) { retorno[0] = "1"; retorno[1] = ""; } else { retorno[0] = "0"; retorno[1] = "no se reconoce la variable " + var[1] + "."; } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } } else { if (var[0].matches("[a-zA-Z]*")) { //comprueba que solo contenga letras byte aux = 0; for (int i = 0; i < codigo.size(); i++) { if (var[0].equals(codigo.get(i).toString())) { aux++; } } if (aux > 0) { if (esNumero(var[1])) { retorno[0] = "1"; retorno[1] = ""; } else { if (var[0].matches("[a-zA-Z]*")) { //comprueba que solo contenga letas aux = 0; for (int i = 0; i < codigo.size(); i++) { if (var[1].equals(codigo.get(i).toString())) { aux++; } } if (aux > 0) { retorno[0] = "1"; retorno[1] = ""; } else { retorno[0] = "0"; retorno[1] = "no se reconoce la variable " + var[1] + "."; } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } } else { retorno[0] = "0"; retorno[1] = "no se reconoce la variable " + var[0] + "."; } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } } else { retorno[0] = "0"; retorno[1] = "mala construcción de la sentencia."; } } catch (Exception e) { System.out.println("Error en condicion " + e.getClass()); } finally { return retorno; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Boolean precond() {\r\n\t\tcalculoCantidadSacar(grupoPuestosController.getIdConcursoPuestoAgr());\r\n\t\t/**\r\n\t\t * fin incidencia 0001649\r\n\t\t */\r\n\t\tBoolean respuesta = validacionesIteracion();\r\n\t\treturn respuesta;\r\n\t}", "@Override\n\tpublic boolean evaluar(Calculable cal) {\n\t\treturn false;\n\t}", "@Override\n public boolean reconoce(String entrada) {\n\t\n\tchar simbolos[] = entrada.toCharArray();\n\t\n\tauxiliarClausuraLambda.clear();\n\tclausuraLambda(q0);\n\n\testadosActuales.clear();\n\testadosActuales.addAll(auxiliarClausuraLambda);\n\t// Clausura lambda\n\tfor(char s : simbolos) {\n\n\t estadosAuxiliar.clear();\n\n\t // Transiciones de los estados con el simbolo\n\t for(int q : estadosActuales)\n\t\tif(q != 0)\n\t\t transita(q, s);\n\n\t auxiliarClausuraLambda.clear();\n\t for(int q : estadosAuxiliar)\n\t\tclausuraLambda(q);\n\n\t estadosActuales.clear();\n\t estadosActuales.addAll(auxiliarClausuraLambda);\n\t // Clausura lambda de los estados\n\t}\n\n\tboolean acepta = false;\n\tfor(int q : estadosActuales)\n\t if( (acepta = F.contains(q)) == true )\n\t\tbreak;\n\n\treturn acepta;\n }", "@Override\n\tpublic boolean evaluarPropuesta(Oferta o) {\n\t\treturn false;\n\t}", "@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}", "boolean isEvaluable();", "private boolean isPreEvalSymobl()\r\n\t{\r\n\t\t//if the expression is empty return false\r\n\t\tif(expression.length() == 0)\r\n\t\t\treturn false;\r\n\t\tString lastChar = expression.substring(expression.length() - 1, expression.length());\r\n\t\tfor(String str : evalSymbol)\r\n\t\t\tif(str.equals(lastChar))\r\n\t\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "protected String comprobarConsumoEnergetico(Letra letra){\r\n if(getConsumoEnergetico() == Letra.A | getConsumoEnergetico() == Letra.B | getConsumoEnergetico() == Letra.C \r\n | getConsumoEnergetico() == Letra.D | getConsumoEnergetico() == Letra.E | getConsumoEnergetico() == Letra.F){\r\n return \"Consumo energetico correcto; letra correcta\";\r\n }\r\n else{\r\n return \"Consumo energetico incorrecto; letra erronea\";\r\n }\r\n}", "private boolean correcto() {\r\n return (casillas.size()>numCasillaCarcel); //&&tieneJuez\r\n }", "public void sincronizza() {\n boolean abilita;\n\n super.sincronizza();\n\n try { // prova ad eseguire il codice\n\n /* abilitazione bottone Esegui */\n abilita = false;\n if (!Lib.Data.isVuota(this.getDataInizio())) {\n if (!Lib.Data.isVuota(this.getDataFine())) {\n if (Lib.Data.isSequenza(this.getDataInizio(), this.getDataFine())) {\n abilita = true;\n }// fine del blocco if\n }// fine del blocco if\n }// fine del blocco if\n this.getBottoneEsegui().setEnabled(abilita);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }", "public boolean sucheMitspieler();", "public void evaluate() {\n if (manoeuvre.getTrajectory().getEvolutionEnd() - manoeuvre.getCalcEvolution() <= toDoLength) { raise(); }\n }", "public boolean evaluate();", "private double evaluarExp4() throws Excepciones{\n double resultado;\n double resultadoParcial;\n double ex;\n int t;\n resultado = evaluarExp5();\n if(token.equals(\"^\")){\n obtieneToken();\n resultadoParcial = evaluarExp4();\n ex = resultado;\n if(resultadoParcial == 0.0) {\n resultado = 1.0;\n }else{\n for(t=(int)resultadoParcial-1; t > 0; t--){\n resultado = resultado * ex;\n }\n }\n }\n return resultado;\n}", "public void disconnetti() {\n\t\tconnesso = false;\n\t}", "public boolean offForEvaluation();", "double eval();", "private void evalExpression () {\n\tif (expr.type != null) {\n\t // Expression ist wie vorgesehen getypt\n\t if (expr.type instanceof M_Bool) {\n\t\t// Expression ist eine boolesche, also :\n\t\tdebug.addMsg(\"# expression to evaluate is boolean.\",3);\n\t\tSimulatorBoolEvaluator boolExpr = new SimulatorBoolEvaluator(process, expr);\n\t\tvalue = new SimulatorBoolValue ( boolExpr.giveResult() );\n\t }\n\t else if (expr.type instanceof M_Int) {\n\t\t// Expression ist eine zu Integer evaluierende, also :\n\t\tdebug.addMsg(\"# expression to evaluate is integer.\",3);\n\t\tSimulatorIntEvaluator intExpr = new SimulatorIntEvaluator(process, expr);\n\t\tvalue = new SimulatorIntValue ( intExpr.giveResult() ); \n\t }\n\t else {\n\t /* Platz für Exception, da Expression falsch getypt */\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not properly typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:1 \",0);\n\t }\n\n\t} //--------- end if(1) ------------\n\telse {\n\t // Expression ist nicht getypt also :\n\t debug.addMsg(\"!!! EXCEPTION !!! : Expression not typed \",0);\n\t debug.addMsg(\"!!! Class: SimulatorExprEvaluator \\n!!! Method : evalExpression\\n!!! Pos.:2 \",0);\n\t} //-------- end else --------------\n }", "protected E eval()\n\t\t{\n\t\tE e=this.e;\n\t\tthis.e=null;\n\t\treturn e;\n\t\t}", "Boolean getCompletelyCorrect();", "public void performEvaluation(){\n if(validateExp(currentExp)){\n try {\n Double result = symbols.eval(currentExp);\n currentExp = Double.toString(result);\n calculationResult.onExpressionChange(currentExp,true);\n count=0;\n }catch (SyntaxException e) {\n calculationResult.onExpressionChange(\"Invalid Input\",false);\n e.printStackTrace();\n }\n }\n\n }", "private double evaluarExp6() throws Excepciones{\n double resultado;\n if(token.equals(\"(\")) {\n obtieneToken();\n resultado = evaluarExp2();\n if(!token.equals(\")\")){\n obtieneError(PARENTESIS);\n }\n obtieneToken();\n }else{\n resultado = valor();\n }\n return resultado;\n}", "public String evaluarAccion(Pokemon atacante, Pokemon defensor){\r\n// int[] debilidades_atacante = atacante.getDebilidades();\r\n// for (int i = 0; i < debilidades_atacante.length; i++) {\r\n// if(debilidades_atacante[i] == defensor.getNaturaleza_primaria() || debilidades_atacante[i] == defensor.getNaturaleza_secundaria()){\r\n// return \"Cambiar\";\r\n// }\r\n// \r\n// }\r\n// return \"Atacar\";\r\n int random = (int)(Math.random()*2+1);\r\n if(random == 1){\r\n return \"Atacar\";\r\n }\r\n else{\r\n return \"Cambiar\";\r\n }\r\n }", "boolean getCorrect();", "public void evaluate() throws Throwable {\n }", "void negarAnalise();", "protected boolean colaVacia() {\r\n return ini == -1;\r\n }", "public boolean esConexo() {\n\t\tboolean result = true;\n\t\tint indice = 0;\n\t\tBusquedaEnProfundidad busqueda = new BusquedaEnProfundidad(this, 0);\n\n\t\twhile (result && indice < cantNodos) {\n\t\t\tif (!busqueda.estaVisitado(indice))\n\t\t\t\tresult = false;\n\t\t\tindice++;\n\t\t}\n\n\t\treturn result;\n\t}", "public boolean reducible() {\n\treturn \n\t operator . equals( \"\\\\\") &&\n\t (argument.reducible() || argument instanceof BoolConstant);\n }", "@Test\r\n public void CriterioUnidadSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }", "public boolean tengoProteccion() {\n\t\treturn escudo;\n\t}", "@Override\n protected boolean runInEQ() {\n return true;\n }", "boolean isEstConditionne();", "private boolean for_cond(){\n int save = position;\r\n boolean for_cond = false;\r\n\r\n if (getNextLexeme() == Lexeme.LP) {\r\n if(init()){\r\n if(log_exp() && getNextLexeme() == Lexeme.END){\r\n if(getNextLexeme() == Lexeme.VAR && assign_op()) {\r\n if (getNextLexeme() == Lexeme.RP) {\r\n for_cond = true;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n position = for_cond ? position : save;\r\n return for_cond;\r\n }", "Hojas eval();", "@Test\r\n public void CriterioUnidadNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnaDeCadaUnidadCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }", "public boolean isPredeterminado()\r\n/* 154: */ {\r\n/* 155:264 */ return this.predeterminado;\r\n/* 156: */ }", "bool eval(Map<string,object> obj)\n {\n if(!obj.contains(property)) //dept\n return false;\n \n curValue = obj.get(property); //purchase\n switch(operator)\n {\n case '==':\n return value.equeals(curValue); sales == purchase\n break;\n case '>':\n ...\n case '<':\n ...\n case '!=':\n ... \n case '<=':\n ...\n case '>=':\n ...\n }\n }", "@Override\n\tpublic void exucute() {\n\t\t\n\t}", "private boolean evaluate(final String input) {\n return evaluate(input, true);\n}", "private Boolean evaluateBooleanExpression(Expression expr, InMemoryExpressionEvaluator eval)\n {\n try\n {\n Object result = expr.evaluate(eval);\n return (result instanceof InMemoryFailure) ? Boolean.FALSE : (Boolean)result;\n }\n catch (VariableNotSetException vnse)\n {\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021024\", vnse.getVariableExpression().getId(), StringUtils.objectArrayToString(vnse.getValues())));\n }\n\n // TODO The iteration through possible variable values needs improving. We currently just drop out\n // to here with the possible values of a variable when first encountered (and not yet set), which\n // then starts the iteration process. This likely would fail if 2 or more variables (unchecked)\n if (vnse.getValues() == null || vnse.getValues().length == 0)\n {\n // No values available for this variable, so just put null and see the result\n eval.setVariableValue(vnse.getVariableExpression().getId(), null);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), \"(null)\"));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n else\n {\n // Set this variable and start iteration over the possible variable values\n for (int i=0;i<vnse.getValues().length;i++)\n {\n eval.setVariableValue(vnse.getVariableExpression().getId(), vnse.getValues()[i]);\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021025\", vnse.getVariableExpression().getId(), vnse.getValues()[i]));\n }\n if (Boolean.TRUE.equals(evaluateBooleanExpression(expr, eval)))\n {\n return Boolean.TRUE;\n }\n }\n }\n\n // No variable value was successful so return FALSE\n if (NucleusLogger.QUERY.isDebugEnabled())\n {\n NucleusLogger.QUERY.debug(Localiser.msg(\"021026\", vnse.getVariableExpression().getId()));\n }\n eval.removeVariableValue(vnse.getVariableExpression().getId());\n return Boolean.FALSE;\n }\n }", "boolean puedoEdificarCasa(Casilla casilla){\n boolean puedoEdificar = false;\n \n //Se comprueba si el jugador es propietario de la casilla.\n boolean esMia = this.esDeMipropiedad(casilla);\n \n if(esMia){\n //Se obtiene el precio de edificación.\n int costeEdificarCasa = casilla.getPrecioEdificar();\n \n //Se comprueba que el jugador tiene saldo para llevar a cabo la edificación.\n boolean tengoSaldo = this.tengoSaldo(costeEdificarCasa);\n \n if(tengoSaldo){\n puedoEdificar = true;\n } \n }\n return puedoEdificar; \n }", "private void doEpsilon(){\n\t\tcurrentState = \"q0\";\n\t}", "String evaluate();", "@Override\n\tpublic void doit() {\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint i = saisie_entier();\n\t\tafficher_texte(UtilitaireChainesCommunes.demande_saisie_nombre);\n\t\tint j = saisie_entier();\n\t\t// tous deux strictements positifs ou strictement négatifs? \n\t\t// vrai => produit positif\n\t\t// faux => produit negatif ou nul\n\t\tboolean Truth = TrueIfSameTruthValue(i,j,this.estposit);\n if (Truth){afficher_texte(UtilitaireChainesCommunes.resultat_positif);}\n else{ \n \t// l un des deux est soit de signe différent soit nul.\n \t// on vire le cas \"est de signe différent\" (on aurait pu faire l autre)\n \tboolean Truth2 = ((i < 0 && j > 0) || (i > 0 && j < 0));\n \tif (Truth2){afficher_texte(UtilitaireChainesCommunes.resultat_negatif);}\n \telse {afficher_texte(UtilitaireChainesCommunes.nombre_nul);}\n }\n\n\t}", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "public boolean Vacia (){\n return cima==-1;\n \n }", "public abstract boolean esComestible();", "public void enfoncerMoins() {\n\t\ttry {\n\t\t\tthis.op = new Moins();\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}", "@Test\r\n public void Criterio60SiCumpleTest()\r\n {\r\n CriterioDeCorreccion criterio = new SesentaPorcientoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4);\r\n }", "private boolean checkInCashe(String s) {\n return true;\n }", "private boolean evaluarEntrada(Date fechaPoliza, AnalisisDeFlete det) {\r\n\t\treturn true;\r\n\t}", "public static String IngresarRazaCorrecta (){\n boolean condicion;\r\n int razaPerro;\r\n String razaElegida=\"\";\r\n do {\r\n MenuRaza();\r\n razaPerro = TecladoIn.readLineInt();\r\n if ((razaPerro > 0) && (razaPerro < 13)) {\r\n razaElegida=TiposDeRaza(razaPerro - 1);\r\n condicion = true;\r\n } else {\r\n System.out.println(\"Ingrese una raza Correcta del 1 al 12.\");\r\n System.out.println(\".........................................\");\r\n condicion = false;\r\n }\r\n } while (condicion != true);\r\n return razaElegida;}", "protected boolean asEaten() {\n return false;\n }", "public int evaluate() {\n return Condition.INDETERMINATE;\n }", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}", "public void verificar_que_se_halla_creado() {\n\t\t\n\t}", "static boolean continuar(){\r\n\t\tchar respuesta = Teclado.leerCaracter(\"¿Desea continuar? (s/n): \");\r\n\t\tif (respuesta == 's' || respuesta == 'S')\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\treturn false;\r\n\t}", "public boolean applyErrors() {\n\t\t/*\n\t\tdouble erreur = Math.random(); // on genere un nombre entre 0 et 1\n\t\tSystem.out.print(this.error*erreur + \"\\n\");\n\t\tif (erreur * this.error < 0.07) { // on multiplie l'erreur aleatoire par l'error de la sonde (qui sera aussi compris entre 0 et 1)\n\t\t\treturn true;\t\t\t\t// si l'erreur finle (produit des deux erreur) est inferieur a 20%\n\t\t}\n\t\treturn false;\n\t\t*/\n\t\treturn true;\n\t}", "public boolean isSolved(){ return getRemainingValues() == 0; }", "@Override\r\n\tpublic void checkAnswer() {\n\t\t\r\n\t}", "@Override\n\tpublic void Examinar() {\n\t\tSystem.out.println(\"\\nEsta preguiça emite o som tec tec tec ao ser examinada\\n\");\t\n\t}", "@Test\r\n public void Criterio60NoCumpleTest()\r\n {\r\n CriterioDeCorreccion criterio = new SesentaPorcientoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0);\r\n }", "public double evaluar(String cadenaExp) throws Excepciones{\n double resultado;\n exp = cadenaExp;\n expIndice = 0;\n obtieneToken();\n if(token.equals(FINEXP)){\n obtieneError(SINEXP); // no hay expresion presente\n } \n // analiza y evalua la expresion\n resultado = evaluarExp2();\n if(!token.equals(FINEXP)){ // el ultimo token debe ser FINEXP\n obtieneError(SYNTAXIS);\n }\n return resultado;\n }", "public boolean evaluate(Substitution sub);", "@Override\n public String Calculo(String expresion) throws ArithmeticException {\n while(!stack.empty()){\n stack.pop();\n }\n try {\n for(int i = 0; i<expresion.length(); i++){\n //Obtener cada caracter del string.\n char op = expresion.charAt(i);\n //Determinar si es un operador, operando o un termino no valido.\n if(nums.contains(Character.toString(op))){\n stack.push(Character.getNumericValue(op));\n }\n else if(ops.contains(Character.toString(op))){\n postFixEvalution(op);\n }\n else if(op != ' '){\n return \"Error: No se pudo realizar la operacion por invalidez de simbolos\";\n }\n }\n\n //Al finalizar, se debe validar que el stack tenga un solo dato dentro, el cual sera\n //probablemente el resultado de la operacion.\n\n if(stack.empty() || stack.size() > 1){\n return \"Error: Expresion invalida\";\n }\n else{\n return stack.pop().toString();\n }\n }\n catch (ArithmeticException e){\n\n throw new ArithmeticException(e.getMessage());\n }\n\n\n }", "private String elaboraIncipit() {\n String testo = VUOTA;\n\n if (usaHeadIncipit) {\n testo += elaboraIncipitSpecifico();\n testo += A_CAPO;\n }// fine del blocco if\n\n return testo;\n }", "public IRecepteur quiEstEnDessous();", "public boolean validatePrescription() {\n\t\tif (dose == 0)\n\t\t\treturn false;\n\t\tif (count == 0)\n\t\t\treturn false;\n\t\tif (dosing == 0)\n\t\t\treturn false;\n\t\tif (instructions == null)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "protected Object subEval(EvalContext ctx, boolean forValue) {\n T.fail(\"A DelayedExpr isn't eval-able\");\n return null; //make compiler happy\n }", "void aprovarAnalise();", "@Test\r\n public void testVerificaPossibilidade2() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "private double evaluarExp2() throws Excepciones{\n char op;\n double resultado;\n double resultadoParcial;\n resultado = evaluarExp3();\n while((op = token.charAt(0)) == '+' || op == '-') {\n obtieneToken();\n resultadoParcial = evaluarExp3();\n switch(op) {\n case '-':\n resultado = resultado - resultadoParcial;\n break;\n case '+':\n resultado = resultado + resultadoParcial;\n break;\n } \n }\n return resultado;\n }", "public boolean Victoria(){\n boolean respuesta=false;\n if(!(this.palabra.contains(\"-\"))&& this.oportunidades>0 && !(this.palabra.isEmpty())){\n this.heGanado=true;\n respuesta=true;\n }\n return respuesta;\n }", "@Test\r\n public void CriterioTipoSiCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoAprobado(criterio);\r\n \r\n assertTrue(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 4); \r\n }", "void doSet() throws NotConnectedException\n\t{\n\t\ttry\n\t\t{\n\t\t\tValueExp exp = null;\n\n\t\t\tif (!hasMoreTokens())\n\t\t\t\terr(getLocalizationManager().getLocalizedTextString(\"setCommand\")); //$NON-NLS-1$\n\t\t\telse\n\t\t\t{\n\t\t\t\t// pull the expression\n\t\t\t\tString s = restOfLine();\n\n\t\t\t\t// parse and eval which causes the assignment to occur...\n\t\t\t\tif ( (exp = parseExpression(s)) == null )\n\t\t\t\t\t; // failed parse\n\n\t\t\t\t// make sure contains assignment\n\n\t\t\t\telse if ( !exp.containsAssignment() )\n\t\t\t\t\tthrow new IllegalAccessException(\"=\"); //$NON-NLS-1$\n\n\t\t\t\telse\n\t\t\t\t\tevalExpression(exp);\n\t\t\t}\n\t\t}\n\t\tcatch(IllegalAccessException iae)\n\t\t{\n\t\t\tMap<String, Object> args = new HashMap<String, Object>();\n\t\t\targs.put(\"operator\", iae.getMessage()); //$NON-NLS-1$\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"missingOperator\", args)); //$NON-NLS-1$\n\t\t}\n\t\tcatch(NullPointerException npe)\n\t\t{\n\t\t\terr(getLocalizationManager().getLocalizedTextString(\"couldNotEvaluate\")); //$NON-NLS-1$\n\t\t}\n\t}", "public boolean EvaluaSucesor(char Valor, char Sucesor) {\n if (Valor == Sucesor) {\n return true;\n } else {\n return false;\n }\n }", "public void orina() {\n System.out.println(\"Que bien me quedé! Deposito vaciado.\");\n }", "@Test\r\n public void testVerificaPossibilidade3() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Test\r\n public void testVerificaPossibilidade4() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "@Override\n public boolean evaluate(Event event) {\n return true;\n }", "public boolean solucionar() {\n\t\treturn false;\n\t}", "@Override\n\tpublic double evaluate() {\n\t\t// TODO Auto-generated method stub\n\t\treturn 0;\n\t}", "public boolean estValide() {\n\t\treturn ( estDedans() && estImpaire() ); \n }", "private boolean validacionesSolicitarReserva(int indice, int CodEmp, int CodLoc, int CodCot, boolean isSol){\n boolean blnRes=true;\n try{\n if(!validaItemsServicio(CodEmp, CodLoc, CodCot)){\n blnRes=false;\n MensajeInf(\"La cotizacion contiene Items de Servicio o Transporte, los cuales no deben ser reservados.\");\n }\n\n if(!validaFechasMAX(indice, tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString(),isSol)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada es mayor a la permitida, revise la Fecha y vuelva a intentarlo\");\n }\n \n if(!validaTerminalesLSSegunEmpresaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar reserva de codigos L/S en este local, debe reservarlo por el local que puede ser facturado\");\n }\n \n if(!validaFechasPrimerDiaLaboral(indice,isSol,CodEmp,CodLoc)){\n blnRes=false;\n MensajeInf(\"La Fecha solicitada, no corresponde al primer dia laboral registrado\");\n } \n \n if(tblDat.getValueAt(indice,INT_TBL_DAT_STR_TIP_RES_INV).toString().equals(\"R\")){\n if(!validaTerminalesLReservaLocal(CodEmp,CodLoc,CodCot)){\n blnRes=false;\n MensajeInf(\"No puede solicitar Reserva en Empresa de Codigos L \");\n }\n }\n }\n catch(Exception e){\n objUti.mostrarMsgErr_F1(null, e);\n blnRes=false;\n }\n return blnRes;\n }", "private double individualEvaluation() {\n\t\t//System.out.println(\"indE\"+ myValues.get(myAction.getPurpose()).getStrength(null));\n\t\treturn myValues.get(myAction.getPurpose()).getStrength(null);\n\t}", "private boolean literal() {\r\n return ALT((GO() && escape()) || (OK() && visible()));\r\n }", "@Test\n\t\tpublic void noApplyGoal() {\n\t\t\tassertFailure(\" ;H; ;S; x∈{1,2} ;; {1}⊆S |- 3=3\");\n\t\t}", "@Override\n\tpublic boolean reverseCorrectIt() {\n\t\treturn false;\n\t}", "@Test\r\n public void CriterioTipoNoCumple()\r\n {\r\n CriterioDeCorreccion criterio = new UnoDeCadaTipoCriterioDeCorreccion();\r\n ExamenCorregido corregido = generarExamenCorregidoNoAprobado(criterio);\r\n \r\n assertFalse(criterio.cumple(corregido.getNotasPregunta()));\r\n assertEquals(corregido.getNota(), 0); \r\n }", "private static void expressions() {\n double kilometers = (100 * 1.609344);\n int highScore = 50;\n\n if (highScore == 50) {\n System.out.println(\"this is an expression\");\n }\n\n int score = 100;\n if (score > 99) {\n System.out.println(\"You got the high score\");\n score = 0;\n }\n }", "void evaluate()\n\t{\n\t\toperation.evaluate();\n\t}", "@Override\r\n public void resetEvaluation ()\r\n {\r\n evaluation = null;\r\n }", "@Test\r\n public void testVerificaPossibilidade6() {\r\n usucapiao.setAnimusDomini(true);\r\n usucapiao.setPosseMansa(true);\r\n usucapiao.setPossePassifica(true);\r\n usucapiao.setPosseIninterrupta(true);\r\n usucapiao.setBemComumCasal(true);\r\n usucapiao.setCompanheiroAbandonou(true);\r\n String result = usucapiao.verificaRequisitos();\r\n assertEquals(\"false\", result);\r\n }", "private void validExpresion(){\n\t\tString valores =\"+/*-^sinbqrcotah.\";\n\t\tchar[] fun = (this.getText()).toCharArray();\n\t\tint tam = fun.length-1;\n\t\tif(tam > 0){\n\t\t\tif(valores.indexOf(fun[tam]) != -1){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t\t}\n\t\t}\n\n\t\tif(this.getText().equals(\"+\") || this.getText().equals(\"-\") || this.getText().equals(\".\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"s\") || this.getText().equals(\"c\") || this.getText().equals(\"t\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\n\t\telse if(this.getText().equals(\"(\") || this.getText().equals(\"a\") || this.getText().equals(\"i\")){\n\t\t\t\tcont++;\n\t\t\t\tthis.setBackground(Color.RED);\n\t\t}\n\t}", "public void verifierSaisie(){\n boolean ok = true;\n\n // On regarde si le client a ecrit quelque chose\n if(saisieMessage.getText().trim().equals(\"\"))\n ok = false;\n\n if(ok)\n btn.setEnabled(true); //activer le bouton\n else\n btn.setEnabled(false); //griser le bouton\n }", "public void coMina(){\n espM=true;\r\n }", "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }", "@Override\n void execute(RolapEvaluator evaluator) {\n }", "boolean isOnlineEvaluation();", "private static void verifEnt() {\r\n\t\tif (tCour != ENT)\r\n\t\t\tUtilLex.messErr(\"expression entiere attendue\");\r\n\t}" ]
[ "0.61996245", "0.61847764", "0.582325", "0.57690066", "0.5735976", "0.57162", "0.5537896", "0.550151", "0.5460662", "0.54528034", "0.54208004", "0.54180187", "0.5409752", "0.5367189", "0.53247905", "0.53172934", "0.5281427", "0.52682316", "0.5266105", "0.525594", "0.52540076", "0.52499425", "0.52488655", "0.5217815", "0.52000195", "0.5181623", "0.5180772", "0.5178894", "0.51734865", "0.517229", "0.5157503", "0.51444256", "0.513541", "0.5123853", "0.51223874", "0.5122089", "0.51217425", "0.51148504", "0.51012117", "0.50800854", "0.5073048", "0.5068565", "0.5067654", "0.5066335", "0.50511736", "0.5043542", "0.50323355", "0.50300765", "0.5029866", "0.5026799", "0.5026487", "0.5024477", "0.5023843", "0.50186014", "0.50139767", "0.50098777", "0.50053656", "0.49998954", "0.4996667", "0.4993553", "0.4992222", "0.4991483", "0.49885854", "0.49787703", "0.49769583", "0.49477324", "0.4945187", "0.49363574", "0.49352506", "0.4933624", "0.4931297", "0.49285153", "0.49232203", "0.49206865", "0.49187207", "0.491147", "0.4911232", "0.49086922", "0.4907262", "0.4899992", "0.4894884", "0.48878515", "0.48846653", "0.4884573", "0.48845044", "0.48787594", "0.48752967", "0.48738864", "0.48694167", "0.48686093", "0.48680484", "0.48668337", "0.48608074", "0.48558304", "0.48555544", "0.48540777", "0.48486236", "0.48460037", "0.48450485", "0.48383394", "0.4833378" ]
0.0
-1
valida siuna cadena es numerica
private boolean esNumero(String cadena) { try { Integer.parseInt(cadena); return true; } catch (NumberFormatException nfe) { return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static boolean isNumeric(String cadena)\n\t {\n\t\t try \n\t\t {\n\t\t\t Integer.parseInt(cadena);\n\t\t\t return true;\n\t\t } catch (NumberFormatException nfe)\n\t\t {\n\t\t\t return false;\n\t\t }\n\t }", "public boolean isNumeric(String cadena) {\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException nfe) {\r\n return false;\r\n }\r\n }", "public static boolean isNumeric(String cadena){ \r\n try {\r\n Integer.parseInt(cadena);\r\n return true;\r\n } catch (NumberFormatException e){\t\r\n System.out.println(e.getMessage());\r\n return false;\r\n }\r\n }", "public boolean isNum(String cad){\n try{\n Integer.parseInt(cad);\n return true;\n }catch(NumberFormatException nfe){\n System.out.println(\"Solo se aceptan valores numericos\");\n return false;\n }\n }", "public boolean ValidarCantidad(String c) {\n String numCuenta = c;\n int NOnum = 0;\n for (int i = 0; i < numCuenta.length(); i++) {\n if (!Character.isDigit(numCuenta.charAt(i))) {\n NOnum++;\n }\n }\n return NOnum == 0;\n }", "private boolean valid_numbers(String nr)\n\t{\n\t\t// loop through the string, char by char\n\t\tfor(int i = 0; i < nr.length();i++)\n\t\t{\n\t\t\t// if the char is not a numeric value or negative\n\t\t\tif(Character.getNumericValue(nr.charAt(i)) < 0)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t// if it did not return false in the loop, return true\n\t\treturn true;\n\t}", "private static boolean isNumber(String value){\r\n\t\tfor (int i = 0; i < value.length(); i++){\r\n\t\t\tif (value.charAt(i) < '0' || value.charAt(i) > '9')\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean validate(String num) {\n\t\treturn false;\r\n\t}", "public static boolean isNumeric(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException ex) {\n return false;\n }\n }", "private static boolean isNumber( char i ) {\n\t\tif ( Character.isDigit(i) ) return true; \n\t\tthrow new IllegalArgumentException(\"The weight of the route should be a number, now it's '\"+ i +\"'\");\n\t}", "private boolean validar_numero(String numero) {\n boolean es_valido;\n es_valido = numero.charAt(0) != '0';\n return es_valido;\n }", "public static boolean esNumero(String cadena) {\n try {\n Integer.parseInt(cadena);\n return true;\n } catch (NumberFormatException nfe) {\n return false;\n }\n }", "@Test\n public void isNumeric() {\n assertTrue(Deadline.isNumeric(VALID_YEAR_2018));\n\n //contains other symbols -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SYMBOLS));\n\n //contains alphabets -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_ALPHABETS));\n\n //contains space -> false\n assertFalse(Deadline.isNumeric(INVALID_YEAR_WITH_SPACE));\n }", "private boolean isNumber(char c){\n if(c >= 48 && c < 58)\n return true;\n else{\n return false;\n }\n }", "private boolean isNumerico(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isNumber(String str) {\r\n int ASCII_0 = 48;\r\n int ASCII_9 = 57;\r\n if (str.equals(\"\")) {\r\n return false;\r\n }\r\n for (int i = 0; i < str.length(); i++) {\r\n int chr = str.charAt(i);\r\n if (chr < ASCII_0 || chr > ASCII_9) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private static boolean validNumber(String thing) {\n\t\treturn validDouble(thing);\n\t}", "private boolean isLegalNumChar(char c) {\n return c == '-'\n || c == '+'\n || (c >= '0' && c <= '9')\n || c == 'e'\n || c == 'E'\n || c == '.';\n }", "private boolean digits() {\r\n return ALT(\r\n GO() && RANGE('1','9') && decimals() || OK() && CHAR('0') && hexes()\r\n );\r\n }", "public static boolean isNumber(String val){\n\t\t\n\t\tfor(int i=0;i<val.length();i++){\n\t\t\tif((val.charAt(i) >= '0' && val.charAt(i) <= '9') || (val.charAt(i) >= 'A' && val.charAt(i) <= 'F') || (val.charAt(i) >= 97 && val.charAt(i) <= 102)){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean checkForNumber(String field) {\n\n\t\tPattern p = Pattern.compile(\"[0-9].\");\n\t\tMatcher m = p.matcher(field);\n\n\t\treturn (m.find()) ? true : false;\n\t}", "public abstract boolean isNumeric();", "private boolean isAllNums(String fieldVal){\r\n // Get rid of all whitespace\r\n String val = fieldVal.replaceAll(\"\\\\s\",\"\").trim();\r\n // check for presence of letters in the string, ignoring '()' and '-'\r\n for (int i=0; i < val.length(); i++){\r\n if (val.charAt(i) != '(' || val.charAt(i) != ')' || val.charAt(i) != '-'){\r\n if (Character.isLetter(val.charAt(i))){\r\n return false;\r\n }\r\n }\r\n }\r\n return true; \r\n }", "public static boolean isNumber(char n) {\r\n\t\treturn (n >= '0' && n <= '9');\r\n\t}", "public boolean checkNum(String n,JTextField t,int len) \n\t{\n\t\tboolean number=true;\t\t//We are assuming that name will be a String \n\t\tboolean result=false;\n\t\ttry \n\t\t{\n\t\t\tDouble num=Double.parseDouble(n); //if s contains sting then it will not be parse and it will throw exception\t\n\t\t}\n\t\tcatch(NumberFormatException e)\n\t\t{\t\tnumber=false;\t\t}\n\t\t\n\t\tif(number==true) // true\n\t\t{\n\t\t\t//it is a number\n\t\t\tif(n.length()==len)\n\t\t\t{\tresult=true;\t}\n\t\t\telse\n\t\t\t{\tresult=false;\t}\n\t\t}\n\t\telse if(number==false) //it is a String\n\t\t{\tresult=false;\t}\n\t\treturn result;\n}", "private boolean camposNumCorrectos() {\n\t\t return Utilidades.isPositiveNumber(anioText.getText().trim());\n\t}", "private boolean isNumericoConFraccion(char unChar) {\r\n\t\tswitch (unChar) {\r\n\t\tcase '0':\r\n\t\t\treturn true;\r\n\t\tcase '1':\r\n\t\t\treturn true;\r\n\t\tcase '2':\r\n\t\t\treturn true;\r\n\t\tcase '3':\r\n\t\t\treturn true;\r\n\t\tcase '4':\r\n\t\t\treturn true;\r\n\t\tcase '5':\r\n\t\t\treturn true;\r\n\t\tcase '6':\r\n\t\t\treturn true;\r\n\t\tcase '7':\r\n\t\t\treturn true;\r\n\t\tcase '8':\r\n\t\t\treturn true;\r\n\t\tcase '9':\r\n\t\t\treturn true;\r\n\t\tcase '.':\r\n\t\t\treturn dotCountValidate();\r\n\t\tdefault:\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "private boolean isValid(String input){\n return input.length() == 10 && input.matches(\"-?\\\\d+(\\\\.\\\\d+)?\");\n //check its digits\n }", "public static boolean isNumeric(String field) {\r\n\t\tif (isEmpty(field))\r\n\t\t\treturn true;\r\n\t\telse\r\n\t\t\tfield = field.trim();\r\n\t\tif (field.trim().matches(\"[0-9\\\\-\\\\(\\\\)\\\\ ]*\")) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "private boolean isNotNumeric(String s) {\n return s.matches(\"(.*)\\\\D(.*)\");\n }", "public boolean isNum() \n\t{ \n\t try \n\t { \n\t int d = Integer.parseInt(numeric); \n\t } \n\t catch(NumberFormatException nfe) \n\t { \n\t return false; \n\t } \n\t return true; \n\t}", "public boolean isNumber(String in) \n\t{\n\t\ttry \n\t\t{\n\t\t\tInteger.parseInt(in);\n\t\t\treturn true;\n\t\t}\n\t\tcatch (Exception e) \n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isDigit(char toCheck) {\n return toCheck >= '0' && toCheck <= '9';\n }", "private boolean containsOnlyNumbers(String inputString)\r\n {\r\n inputString = inputString.trim();\r\n if (inputString.equals(null))\r\n return false;\r\n else\r\n for (int i = 0; i < inputString.length(); i++)\r\n if (!(inputString.charAt(i) >= '0' && inputString.charAt(i) <= '9'))\r\n return false;\r\n return true;\r\n }", "private int validate(final String lcono) {\n\n if (lcono == null || lcono.isEmpty())\n return 1;\n else if (!lcono.matches(\"\\\\d*\\\\.?\\\\d+\"))\n return 2;\n\n return 0;\n }", "@Test\n void checkIsTrueForStringWithNumbers() {\n // Act, Assert\n assertTrue(IsNumeric.check(\"3\"));\n assertTrue(IsNumeric.check(\"0\"));\n assertTrue(IsNumeric.check(\"-0f\"));\n assertTrue(IsNumeric.check(\"3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F\"));\n assertTrue(IsNumeric.check(\"-3\"));\n assertTrue(IsNumeric.check(\"32f\"));\n assertTrue(IsNumeric.check(\"15D\"));\n assertTrue(IsNumeric.check(\"3.2\"));\n assertTrue(IsNumeric.check(\"0.2\"));\n assertTrue(IsNumeric.check(\"-0.28\"));\n assertTrue(IsNumeric.check(\"0.24D\"));\n assertTrue(IsNumeric.check(\"0.379d\"));\n }", "public boolean isNum(String x) {\n\t\tfor (int i = 0; i < x.length(); i++) {\n\t\t\tchar c = x.charAt(i);\n\t\t\tif ((c == '-' || c == '+') && x.length() > 1)\n\t\t\t\tcontinue;\n\t\t\tif ((int) c > 47 && (int) c < 58)\n\t\t\t\tcontinue;\n\t\t\telse\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public void llenarnumerodecimales(java.awt.event.KeyEvent evt, int tamanioEntero, int tamanioDecimal, String txt){\n char c = evt.getKeyChar();\r\n int bDecimal = 0, bEntero = 0;\r\n// if ((c >= '0') || (c <= '9') && bEntero)\r\n// bEntero++;\r\n if (((c < '0') || (c > '9')) && (c != KeyEvent.VK_BACK_SPACE) && (c != '.')) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"Debe ingresar sólo números!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n if (c == '.' && txt.contains(\".\")) {\r\n evt.consume();\r\n JOptionPane.showMessageDialog(null, \"No puede ingresar más puntos!!!\", \"Mensaje del sistema\", JOptionPane.ERROR_MESSAGE);\r\n }\r\n }", "public boolean isNumber(String num)\t{\n\t\tfor(int i=0;i<13;i++)\t{\n\t\t\tif(Integer.parseInt(num)==i)\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isNumber(String s) \r\n{ \r\n for (int i = 0; i < s.length(); i++) \r\n if (Character.isDigit(s.charAt(i)) \r\n == false) \r\n return false; \r\n\r\n return true; \r\n}", "private static boolean isNumeric(String str){\n return str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); //match a number with optional '-' and decimal.\n }", "public static boolean isNumeric(String value) {\n // Procedimiento para monitorear e informar sobre la excepcion\n try {\n //Se realiza asignacion de dato numerico\n Float.parseFloat(value);\n return true;\n\n }\n //Mostrar mensaje de error\n catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null,Constantes.TXT_Msg_Error,\n \"Error\",\n JOptionPane.ERROR_MESSAGE);\n\n return false;\n\n }\n\n }", "boolean isNumeric(char pChar)\n{\n\n //check each possible number\n if (pChar == '0') {return true;}\n if (pChar == '1') {return true;}\n if (pChar == '2') {return true;}\n if (pChar == '3') {return true;}\n if (pChar == '4') {return true;}\n if (pChar == '5') {return true;}\n if (pChar == '6') {return true;}\n if (pChar == '7') {return true;}\n if (pChar == '8') {return true;}\n if (pChar == '9') {return true;}\n\n return false; //not numeric\n\n}", "@Test\n void checkIsTrueForStringWithNumbersWithSpacesAtTheBeginningAndEnd() {\n // Act, Assert\n assertTrue(IsNumeric.check(\" 3\"));\n assertTrue(IsNumeric.check(\"32 \"));\n assertTrue(IsNumeric.check(\" 3.2 \"));\n assertTrue(IsNumeric.check(\" -0.2\"));\n assertTrue(IsNumeric.check(\" -0.2d\"));\n assertTrue(IsNumeric.check(\"0.24D \"));\n assertTrue(IsNumeric.check(\"0.28 \"));\n assertTrue(IsNumeric.check(\" 3.8f\"));\n assertTrue(IsNumeric.check(\"-3.87F \"));\n }", "public static boolean isNumber(String val)\n {\n\t if(val == null || val.trim().isEmpty())\n\t {\n\t\t return false;\n\t }\n\t else\n\t {\n\t\t Pattern patternForNumber = Pattern.compile(\"^[+-]?(([0-9]+\\\\.?[0-9]+)|[0-9]+)\");\n\t\t return patternForNumber.matcher(val).matches();\n\t }\n }", "public static boolean ComprobarNumero(String str) {\n try {\n double d = Double.parseDouble(str);\n return true;\n } catch (NumberFormatException nfe) {\n \treturn false;\n }\n }", "public static boolean isNumeric(String userInput) {\n return Pattern.matches(Constants.ID_VALIDATION, userInput);\n }", "private boolean isDigit(char x) {\n return x >= '0' && x <= '9';\n }", "public boolean verificaNumero() {\n if (contemSomenteNumeros(jTextFieldDeposita.getText()) || contemSomenteNumeros(jTextFieldSaca.getText())\n || contemSomenteNumeros(jTextFieldTransfere.getText())) {\n return true;\n } else {\n JOptionPane.showMessageDialog(this, \"Digite somente números, por favor. \", \"Atenção !!\", JOptionPane.ERROR_MESSAGE);\n return false;\n }\n }", "public boolean checkNumber() {\n\t\treturn true;\n\t}", "public static boolean isnumber(char c) {\n\t\tif (c=='0'||c=='1'||c=='2'||c=='3'||c=='4'||c=='5'||c=='6'||c=='7'||c=='8'||c=='9') {\n\t\t\treturn true;// return true if that char is number\n\t\t}\n\t\telse { //else return false\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean isNumber( String test ) {\n\treturn test.matches(\"\\\\d+\");\n }", "public String validateNumberString() {\n String tempNumber = numberString;\n int start = 0;\n Pattern pattern = Pattern.compile(\"\\\\D+\");\n Matcher matcher = pattern.matcher(tempNumber);\n if (isZero()) {\n return \"0\";\n }\n if (isNegative()) {\n start++;\n }\n if (matcher.find(start)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n pattern = Pattern.compile(\"([1-9][0-9]*)\");\n matcher.usePattern(pattern);\n if (!matcher.find(0)) {\n throw new IllegalArgumentException(\"Wrong number: \" + tempNumber);\n }\n return tempNumber.substring(matcher.start(), matcher.end());\n }", "public boolean isNumber(String input) {\r\n\t\tif (input == null || input.isEmpty())\r\n\t\t\treturn false;\r\n\t\tif (input.charAt(0) == '-')\r\n\t\t\treturn false;\r\n\t\tfor (int i = 0; i < input.length(); i++) {\r\n\t\t\tif (Character.isDigit(input.charAt(i)) == false)\r\n\t\t\t\treturn false;\r\n\t\t\tif (Integer.parseInt(input) < 1 || Integer.parseInt(input) > 7)\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "boolean checkNumberFormat (String birthDate){\r\n for (int i = 0; i < birthDate.length(); i++) {\r\n if ((birthDate.charAt(i) < 48 && birthDate.charAt(i) != 32 \r\n && birthDate.charAt(i) != 10) \r\n || birthDate.charAt(i) > 57){\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "private static boolean isDigit(char p_char) {\n return p_char >= '0' && p_char <= '9';\n }", "public boolean checkInt( String s ) {\n \tchar[] c = s.toCharArray();\n \tboolean d = true;\n\n \tfor ( int i = 0; i < c.length; i++ )\n \t // verifica se o char não é um dígito\n \t if ( !Character.isDigit( c[ i ] ) ) {\n \t d = false;\n \t break;\n \t }\n \treturn d;\n \t}", "private void allowOnlyNumbers(JTextField txtField) {\r\n txtField.addKeyListener(new KeyAdapter() {\r\n public void keyPressed(KeyEvent ke) {\r\n if (ke.getKeyChar() >= '0' && ke.getKeyChar() <= '9'\r\n || ke.getKeyCode() == KeyEvent.VK_BACK_SPACE\r\n ) {\r\n txtField.setEditable(true);\r\n } else {\r\n txtField.setEditable(false);\r\n msgDialog.showWarningMsg(null, \"Bitte geben Sie nur Zahlen an.\");\r\n txtField.setEditable(true);\r\n }\r\n }\r\n });\r\n }", "@Test\n public void deve_aceitar_tamanho_com_9_numeros() {\n telefone.setTamanho(9);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }", "private static boolean isNumeric(String str){\n return NumberUtils.isNumber(str);\n }", "public boolean isNumber(String sIn)\r\n {\r\n int parseNumber = -1;\r\n \r\n try{\r\n parseNumber = Integer.parseInt(sIn);\r\n }catch(Exception e){\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean validate(String input)//true if valid\n\t{\n\t\t//loop through string verifying for numbers\n\t\tfor(int i = 0;i<input.length(); i++)\n\t\t{\n\t\t\tchar c = input.charAt(i);\n\t\t\tif(!Character.isDigit(c))\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\t\n\t\t}\n\t\treturn true;\n\t}", "public boolean isNumber(String s)\r\n {\r\n if (s == null)\r\n {\r\n return false;\r\n }\r\n s = s.trim();\r\n ValidNumberStateMachine vnsm = new ValidNumberStateMachine(s);\r\n return vnsm.isValid();\r\n }", "private static boolean isNumeric(String str)\t{\n\n\t\treturn str.matches(\"-?\\\\d+(\\\\.\\\\d+)?\"); \n\t\t\t// match a number with optional '-' and decimal.\n\t}", "public boolean isNumber(String str)\r\n\t{\r\n\t\tfor(int i = 0; i < str.length(); i++)\r\n\t\t{\r\n\t\t\tif(!Character.isDigit(str.charAt(i)))\r\n\t\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "protected boolean isNumberValid(@NotNull ConversationContext context, @NotNull Number input) {\n/* 30 */ return true;\n/* */ }", "public boolean isNumeric(String str){\r\n\t Pattern pattern = Pattern.compile(\"[0-9]*\");\r\n\t return pattern.matcher(str).matches(); \r\n\t}", "public static boolean isNumber(String string) {\n if (string == null || string.isEmpty()) {\n return false;\n }\n int i = 0;\n if (string.charAt(0) == '-') {\n if (string.length() > 1) {\n i++;\n } else {\n return false;\n }\n }\n for (; i < string.length(); i++) {\n if (!Character.isDigit(string.charAt(i))) {\n return false;\n }\n }\n return true;\n}", "private static boolean isValidDigit(String strInput) {\n boolean isValid = true;\n if (isPrimitive(strInput)) {\n int input = Integer.parseInt(strInput);\n if (input < 1 || input > 255) {\n log.debug(\"Wrong config input value: {}\", strInput);\n isValid = false;\n } else {\n isValid = true;\n }\n\n } else {\n isValid = false;\n }\n\n return isValid;\n }", "public static int verif(String cadena) {\r\n Scanner l = new Scanner(System.in);\r\n int m1 = -1;\r\n do {\r\n try {\r\n System.out.println(cadena);\r\n m1 = l.nextInt();\r\n } catch (InputMismatchException e) {\r\n System.out.println(\"Valor no valido, ingrese un valor nuimerico\");\r\n }\r\n l.nextLine();\r\n } while (m1 < 0);\r\n\r\n return m1;\r\n }", "@Test(expectedExceptions=NumberFormatException.class)\r\n\tpublic void chkNumberFrmtExcep(){\r\n\t\tString x=\"100A\";\r\n\t\tint f=Integer.parseInt(x);//it will throw exception bcoz x=100A, if it is 100 it will not throw exception\r\n\t}", "public static boolean verificarLetras(String cadeia) {\n\t\tfor (int i = 0; i < cadeia.length(); i++) {\n\t\t\tif (Character.isDigit(cadeia.charAt(i))) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private boolean isNumeric(String s) {\n return java.util.regex.Pattern.matches(\"\\\\d+\", s);\n }", "private boolean isValidNumber(String quantity) {\n\t\ttry{\n\t\t\tint value=Integer.parseInt(quantity);\n\t\t\treturn value>0? true: false;\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isInt(TextField input);", "public boolean isNumeric(String str){\n try {\n int i = Integer.parseInt(str);\n } catch (NumberFormatException nfe) {\n return false;\n }\n return true;\n }", "private static boolean isPrimitive(String value) {\n boolean status = true;\n value = value.trim();\n if (value.length() < 1) {\n return false;\n }\n for (int i = 0; i < value.length(); i++) {\n char c = value.charAt(i);\n if (!Character.isDigit(c)) {\n status = false;\n break;\n }\n }\n\n return status;\n }", "public boolean validateNummer() {\n\t\treturn (nummer >= 10000 && nummer <= 99999 && nummer % 2 != 0); //return true==1 oder false==0\n\t}", "private static boolean isNumeric(String str) { \n\t\ttry { \n\t\t\tDouble.parseDouble(str); \n\t\t} \n\t\tcatch(NumberFormatException nfe) { \n\t\t\treturn false; \n\t\t} \n\t\treturn true; \n\t}", "@Test\n public void deve_aceitar_tamanho_com_8_numeros() {\n telefone.setTamanho(8);\n assertTrue(isValid(telefone, String.valueOf(telefone.getTamanho()), Find.class));\n }", "public static boolean verificarNumeros(String numero) {\n\t\ttry{\n\t\t\tInteger.parseInt(numero);\n\t\t\treturn true;\n\t\t}catch(Exception e){\n\t\t\treturn false;\n\t\t}\n\t}", "private void validateData(String input) {\n String[] inputStringArray = input.split(\" \");\n\n for (String s : inputStringArray) {\n try {\n Integer.parseInt(s);\n } catch (NumberFormatException e) {\n throw new NumberFormatException(\n \"Looks like your input - \" + s + \", is not a number. Try again\");\n }\n }\n }", "private boolean is_phonenumber(String nr)\n\t{\n\t\t// if the string is not null, length is between 0 and 16, starts with \"00\" and all the characters in the sttring are numbers\n\t\t// then it's valid\n\t\tif(nr != null && nr.length() > 0 && nr.length() < 16 && nr.substring(0, 2).equals(\"00\") && valid_numbers(nr))\n\t\t{\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "protected boolean isNumber(String s)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tDouble.parseDouble(s);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException ex)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test\n void checkIsFalseForStringWithNumbersAndOtherChars() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a3\"));\n assertFalse(IsNumeric.check(\"3l\"));\n assertFalse(IsNumeric.check(\"345L\"));\n assertFalse(IsNumeric.check(\"32b\"));\n assertFalse(IsNumeric.check(\"*3.2 \"));\n assertFalse(IsNumeric.check(\"/0.2\"));\n assertFalse(IsNumeric.check(\"0.28L\"));\n assertFalse(IsNumeric.check(\"0.28.\"));\n assertFalse(IsNumeric.check(\"3.2.4\"));\n assertFalse(IsNumeric.check(\"0x400\"));\n assertFalse(IsNumeric.check(\"0.24Dd\"));\n }", "protected boolean isNumeric(final String id) {\n\t\tfinal NumberFormat formatter = NumberFormat.getInstance();\n\t\tfinal ParsePosition pos = new ParsePosition(0);\n\t\tformatter.parse(id, pos);\n\t\treturn id.length() == pos.getIndex();\n\t}", "private void validateValue()\r\n {\r\n try\r\n {\r\n Long.parseLong(getText());\r\n }\r\n catch (NumberFormatException ex)\r\n {\r\n setText(\"\");\r\n }\r\n \r\n }", "public static boolean isNumber(String text)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tInteger.parseInt(text);\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\tcatch(NumberFormatException e)\r\n\t\t{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "@Test(expected=MalformedNumberException.class)\n public void spacesInWeirdPlaces() throws MalformedNumberException {\n new RomanArabicConverter(\"1 4\");\n }", "private static final boolean isNumeric(final char formatChar, final int count) {\n\t\tint i = NUMERIC_FORMAT_CHARS.indexOf(formatChar);\n\t\treturn (i > 0 || (i == 0 && count < 3));\n\t}", "public static boolean isNumber(String val) {\n boolean flag = true;\n try {\n if (val != null) {\n if (!\"\".equals(val.trim())) {\n Integer.parseInt(val);\n\n }\n\n }\n } catch (NumberFormatException nfe) {\n flag = false;\n }\n return flag;\n }", "public boolean isInteger() {\n try {\n Integer.parseInt(txt.getText());\n return true;\n } catch (Exception e) {\n return error(\"El valor debe ser un numero entero!\");\n }\n }", "public static boolean containsOnlyDigitsV1(String str) {\n\n if (str == null || str.isBlank()) {\n // or throw IllegalArgumentException\n return false;\n }\n \n for (int i = 0; i < str.length(); i++) {\n if (!Character.isDigit(str.charAt(i))) {\n return false;\n }\n }\n \n return true;\n }", "private boolean validNum (int num) {\n if (num >= 0) return true;\n else return false;\n }", "private static boolean areNumbers(String s) {\n boolean isADigit = false;//only changed once everything has been checked\n //checks if places 0-2 are numbers and 3 is a \"-\"\n for(int i = 0; i < 3; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(3) == '-') {\n isADigit = true;\n }\n }\n //checks if places 4-5 are numbers and 6 is a \"-\"\n for(int i = 4; i < 6; i++) {\n if(Character.isDigit(s.charAt(i)) && s.charAt(6) == '-') {\n isADigit = true;\n }\n }\n //checks if places 7-10 are numbers\n for(int i = 7; i < 11; i++) {\n if(Character.isDigit(s.charAt(i))) {\n isADigit = true;\n }\n }\n return isADigit;\n }", "public static final boolean isNumeric(char c, int i) {\r\n return NUMERIC_FORMAT_CHARS.indexOf(c) >= 0 || (i <= 2 && NUMERIC_FORMAT_CHARS2.indexOf(c) >= 0);\r\n }", "private boolean isInt(TextField input){\r\n input.setStyle(\"-fx-border-color: green; -fx-border-radius: 15;-fx-background-radius: 20;\");\r\n try {\r\n int number = Integer.parseInt(input.getText());\r\n System.out.println(\"Input is\" + number );\r\n return true;\r\n } catch (Exception e) {\r\n input.setStyle(\"-fx-border-color: red;\");\r\n input.setText(null);\r\n input.setPromptText(\"Only digits/numbers must be filled\");\r\n return false;\r\n }\r\n }", "private boolean isValidNumber(String number) {\n if (null == number) {\n return false;\n }\n\n int i = 0;\n for (i = 0; i < number.length(); ++i) {\n if (number.charAt(i) != '+' && number.charAt(i) != '-') {\n if (Character.isDigit(number.charAt(i))) {\n break;\n }\n\n // Found a character that isn't a digit or sign\n return false;\n }\n }\n\n int firstDigitIndex = i;\n\n if (number.length() == i) {\n // The number has only signs\n return false;\n }\n\n return (number.substring(firstDigitIndex).chars().allMatch(Character::isDigit));\n }", "public boolean validarDni(String dni){\n boolean isDni = true;\n while(dni.startsWith(\"0\")){\n dni = dni.substring(1);\n }\n isDni = dni.length()<10 && dni.length()>6?true:false;\n return isDni;\n }", "@Test\n void checkIsFalseForStringWithoutNumbers() {\n // Act, Assert\n assertFalse(IsNumeric.check(\"a\"));\n assertFalse(IsNumeric.check(\"ö\"));\n assertFalse(IsNumeric.check(\"\"));\n assertFalse(IsNumeric.check(\"´´´\"));\n assertFalse(IsNumeric.check(\"lgk\"));\n assertFalse(IsNumeric.check(\"lL y\"));\n assertFalse(IsNumeric.check(\" \"));\n assertFalse(IsNumeric.check(\"h* \"));\n assertFalse(IsNumeric.check(\"/+\"));\n assertFalse(IsNumeric.check(\"-\"));\n assertFalse(IsNumeric.check(\"+\"));\n assertFalse(IsNumeric.check(\"d\"));\n assertFalse(IsNumeric.check(\"ariel\"));\n assertFalse(IsNumeric.check(\"#€%/!\"));\n }" ]
[ "0.7528576", "0.71818393", "0.7158034", "0.71060777", "0.70103675", "0.6920339", "0.69054604", "0.68893486", "0.68871987", "0.68548423", "0.6826484", "0.6781424", "0.672048", "0.671568", "0.67055786", "0.67053276", "0.6644062", "0.65564096", "0.65459055", "0.6544312", "0.6534574", "0.6513445", "0.650439", "0.65004003", "0.64899665", "0.64724773", "0.6469549", "0.64334756", "0.6407273", "0.6371959", "0.63582546", "0.6345391", "0.6336134", "0.63304937", "0.63301915", "0.6323727", "0.6295856", "0.6295128", "0.62947863", "0.6283566", "0.6247472", "0.62440276", "0.62434435", "0.6236055", "0.6229376", "0.6213758", "0.6172021", "0.61614406", "0.6133946", "0.6133157", "0.6127226", "0.61221784", "0.6114852", "0.61027783", "0.60960364", "0.6091742", "0.6084717", "0.60739887", "0.6071917", "0.6069197", "0.6067053", "0.60515004", "0.60483086", "0.6047383", "0.604227", "0.60391235", "0.603607", "0.60260224", "0.6022462", "0.6015559", "0.6014839", "0.6006406", "0.60058045", "0.59935844", "0.5991955", "0.5988142", "0.5985774", "0.59792304", "0.5959546", "0.5950098", "0.59336424", "0.59248793", "0.5923311", "0.59160185", "0.59079516", "0.5906045", "0.59039724", "0.58992255", "0.5897884", "0.5892582", "0.58867323", "0.5883069", "0.58809495", "0.5874814", "0.5871682", "0.5868185", "0.5862169", "0.58583176", "0.5852851", "0.584703" ]
0.733867
1
evalua si hay transposicion
private String[] Transposicion(String texto) { String retorno[] = new String[2]; retorno[0] = "1"; retorno[1] = ""; texto = texto.toLowerCase(); try {//evalua si hay transposicion en el while if (texto.contains("w") && texto.contains("h") && texto.contains("i") && texto.contains("l") && texto.contains("e")) { if (!texto.equals("while") && texto.length() == 5) { retorno[0] = "0"; retorno[1] = "Lexico: Transposicion de caracteres en sentencia while."; } } else {//evalua si hay transposicion en el if if (texto.contains("i") && texto.contains("f")) { if (!texto.equals("if") && texto.length() == 2) { retorno[0] = "0"; retorno[1] = "Lexico: Transposicion de caracteres en sentencia if."; } } else {//evalua si hay transposicion en el int if (texto.contains("i") && texto.contains("n") && texto.contains("t")) { if (!texto.equals("int") && texto.length() == 3) { retorno[0] = "0"; retorno[1] = "Lexico: Transposicion de caracteres en sentencia int."; } } else {//evalua si hay transposicion en el for if (texto.contains("f") && texto.contains("o") && texto.contains("r")) { if (!texto.equals("for") && texto.length() == 3) { retorno[0] = "0"; retorno[1] = "Lexico: Transposicion de caracteres en sentencia for."; } } else {//evalua si hay transposicion en el do while if (texto.contains("d") && texto.contains("o")) { if (!texto.equals("do") && texto.length() == 2) { retorno[0] = "0"; retorno[1] = "Lexico: Transposicion de caracteres en sentencia do."; } } } } } } } catch (Exception e) { System.out.println("Error en metodo de Transposicion"); } finally { return retorno; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private int getResult() {\n ArrayList<Character> operanzi = new ArrayList<Character>();\n ArrayList<Character> operatori = new ArrayList<Character>();\n for(int i = 1; i <= n; i++){\n // System.out.println(i);\n if ((expr[i] == 'T' ) || (expr[i] == 'F'))\n operanzi.add(expr[i]);\n else \n operatori.add(expr[i]);\n }\n System.out.println(operanzi.get(0));\n int n1 = operanzi.size();\n System.out.println(n1);\n long [][] T = new long[n1][n1];\n long [][] F = new long[n1][n1];\n\n for (int i = 0; i < operanzi.size(); i++) {\n \n if (operanzi.get(i) == 'T') {\n T[i][i] = 1;\n F[i][i] = 0;\n } else if (operanzi.get(i) == 'F') {\n T[i][i] = 0;\n F[i][i] = 1;\n }\n }\n long aux=0;\n for (int l=1; l<n1; ++l) \n { \n for (int i=0, j=l; j<n1; ++i, ++j) \n { \n T[i][j] = F[i][j] = 0; \n for (int g=0; g<l; g++) \n { \n int k = i + g; \n long total_i_k = evaluate(T[i][k],F[i][k],'+'); \n long total_k_j = evaluate(T[k+1][j] , F[k+1][j],'+'); \n long total = evaluate(total_i_k,total_k_j,'*');\n if (operatori.get(k) == '&') \n { \n aux = evaluate(T[i][k],T[k+1][j],'*');\n T[i][j] = evaluate(T[i][j],aux,'+'); \n \n\n F[i][j] = evaluate( F[i][j],evaluate(total,aux,'-'),'+'); \n } \n if (operatori.get(k) == '|') \n { \n aux = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate(F[i][j],aux,'+'); \n \n T[i][j] =evaluate( T[i][j],evaluate(total, aux,'-'),'+'); \n } \n if (operatori.get(k) == '^') \n { \n aux = evaluate(F[i][k],T[k+1][j],'*');\n long aux1= evaluate(T[i][k],F[k+1][j],'*');\n T[i][j] = evaluate( T[i][j],evaluate( aux , aux1,'+'),'+'); \n aux = evaluate(T[i][k],T[k+1][j],'*');\n aux1 = evaluate(F[i][k],F[k+1][j],'*');\n F[i][j] = evaluate( F[i][j],evaluate(aux,aux1,'+'),'+');\n } \n } \n } \n } \n return (int)T[0][n1-1]; \n }", "Matriz evaluar(Matriz A);", "public void evaluate_cipher_sequence() {\n int[][] init_cipher_sequence = new int[18][32];\n // Initialisierung\n // for (int p=0; p<18; p++)\n // for (int t=0; t<32; t++)\n // init_cipher_sequence[p][t] = 0;\n intialize_matrix(init_cipher_sequence);\n\n // Initialisierung mit der Initial Permutation \"IP\"\n int[] m0_m1 = new int[64];\n m0_m1 = select(DES_plaintext, IP);\n\n DES_cipher_sequence = init_cipher_sequence;\n\n for (int j = 0; j < 32; j++) {\n DES_cipher_sequence[0][j] = m0_m1[j];\n DES_cipher_sequence[1][j] = m0_m1[32 + j];\n }\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 // JOptionPane.showMessageDialog(null, \"Evaluating m[0]...m[17] && Action-Type = \" +\n // DES_action_type);\n\n for (int i = 2; i < 18; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(DES_cipher_sequence[i - 1]), K[i - 2]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n DES_cipher_sequence[i] = exclusive_or(DES_cipher_sequence[i - 2], fmK);\n }\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 }", "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 void transpose() {\n Utils.transpose(this._board);\n }", "@Test\n public void testCreateTranspose1(){\n double[][] a = new double[1][1];\n a[0][0] = Math.random();\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }", "public void compararMatrix(Estado_q es1, Estado_q es2, int filest,short tam,int tamañoEsta){\n if(es1.isFinal()==es2.isFinal()){\n //contador para vecto de alfabeto o transiciones\n int con=0;\n //si son inidistinguibles los estados, se insertan en la matriz sus estados destinos respecto a transiciones\n for(int cont=1;cont<=(int)tam;cont++){\n matrix[filest][cont].setEst1(es1.getTransiçaosE(con));\n matrix[filest][cont].setEst2(es2.getTransiçaosE(con)); \n con++;\n }\n //comparamos en la misma fila y distintas columnas, si hay alguna pareja igual a la original, para revisarla\n //pareja original es la de la columna 0, de donde se obtuvieron los estados de las columnas insertadas\n for(int k=1;k<=(int)tam;k++){\n if((matrix[filest][k].getEst1().getNombre()==es1.getNombre())&&(matrix[filest][k].getEst2().getNombre()\n ==es2.getNombre())){\n matrix[filest][k].setRevisado(true);\n }\n }\n //se setea verdadera la revision de la posicion donde estabamos\n matrix[filest][0].setRevisado(true);\n \n //terminado de insertar todos los estados es una fila(for de arriba), se lee la matrix a buscar nuevos estados sin revisar\n //para colocarlos una posicion mas abajo\n for(int fil=0;fil<=tamañoEsta;fil++){\n for(int col=0;col<=(int)tam;col++){\n \n //se busca en la matriz alguna pareja de estados que sea igual a la original para marcarla revisada\n if((matrix[fil][col]!=null)&&(matrix[fil][col].getEst1().getNombre()==es1.getNombre())&&\n (matrix[fil][col].getEst2().getNombre())==es2.getNombre()){\n matrix[fil][col].setRevisado(true);\n }\n \n //si la casilla no esta revisada\n if((matrix[fil][col].isRevisado()==false)&&(matrix[fil][col]!=null)){\n \n //vamos a buscar si no esta esta posicion ya verificada\n for(int row=0;row<=tamañoEsta;row++){\n for(int cols=0;cols<=(int)tam;cols++){\n if((matrix[fil][col].getEst1().getNombre()==matrix[row][cols].getEst1().getNombre())&&\n (matrix[fil][col].getEst2().getNombre()==matrix[row][cols].getEst2().getNombre())\n &&(matrix[row][cols].isRevisado()==true)){\n matrix[fil][col].setRevisado(true);\n }\n }\n }\n if((matrix[fil][col].isRevisado()==false)&&(matrix[fil][col]!=null)){\n \n //si la siguiente fila esta nula\n if(matrix[fil+1][0]==null){\n //se inerta la casilla con sus estados en una fila abajo\n matrix[fil+1][0].setEst1(matrix[fil][col].getEst1());\n matrix[fil+1][0].setEst2(matrix[fil][col].getEst2());\n tamañoEsta++;\n //se vuelve a llamar al metodo, para volver a verificar desde la columna e estados si son inidistinguibles\n compararMatrix(matrix[fil][col].getEst1(),matrix[fil][col].getEst2(),filest+1,tam,tamañoEsta);\n\n }\n else\n {\n matrix[col][0].setEst1(matrix[fil][col].getEst1());\n matrix[col][0].setEst2(matrix[fil][col].getEst2());\n //se vuelve a llamar al metodo, para volver a verificar desde la columna e estados si son inidistinguibles\n compararMatrix(matrix[fil][col].getEst1(),matrix[fil][col].getEst2(),filest+1,tam,tamañoEsta);\n\n }\n }\n }\n } \n }\n System.out.print(\"SI son equivalentes\");\n \n }\n else\n System.out.print(\"NO son equivalentes\");\n \n \n }", "@Test\n public void testCreateTranspose3(){\n double[][] a = new double[4][2];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }", "static int[] triDeShell(int tableau[]) {\r\n\r\n\t\tfinal Logger logger = LogManager.getLogger(TriDeShell.class.getName());\r\n\r\n\t\tif (logger.isDebugEnabled())\r\n\t\t\tlogger.debug(\"Entrée dans la fonction tri de shell\");\r\n\r\n\t\tint pas = 0;\r\n\t\tint valIns = 0;\r\n\r\n\t\twhile (pas < tableau.length) {\r\n\r\n\t\t\tpas = (pas * 3) + 1;\r\n\r\n\t\t}\r\n\r\n\t\tpas = pas / 3;\r\n\r\n\t\twhile (pas > 1) {\r\n\r\n\t\t\tpas = pas / 3;\r\n\r\n\t\t\tfor (int i = pas; i <= tableau.length - 1; i++) {\r\n\r\n\t\t\t\tvalIns = tableau[i];\r\n\r\n\t\t\t\tint j = i;\r\n\r\n\t\t\t\twhile (j >= pas && tableau[j - pas] > valIns) { // solution de la première valeur non triée reprise du\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// TP de Gabriel Bouty (merci à lui)\r\n\r\n\t\t\t\t\ttableau[j] = tableau[j - pas];\r\n\r\n\t\t\t\t\tj = j - pas;\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t\ttableau[j] = valIns;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\r\n\t\treturn tableau;\r\n\r\n\t}", "@Test\n public void testCreateTranspose2(){\n double[][] a = new double[5][5];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }", "public RetTransp getRetTransp() {\n return retTransp;\n }", "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 matrizInversa(){\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n //System.out.println(\"\");getDeter();\n getMatriz()[i][j] = getMatrizAdjunta()[i][j]/getDeter();\n }\n }\n mostrarMatriz(getMatriz(),\"Matriz inversa\");\n }", "public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }", "public ReformaTributariaOutput getComporConv(boolean comportamiento, ReformaTributariaInput reformaTributaria)throws Exception {\n Connection conn = null;\n CallableStatement call = null;\n int inComportamiento=0; \n int inTipoConvenio=0;\n int inEmbargo=0;\n int inPyme=0;\n String ContextoAmbienteParam = null;\n ReformaTributariaOutput reformaTributariaOut = new ReformaTributariaOutput();\n try {\n\n conn = this.getConnection();\n String beneficio = this.getBeneficio();\n \n System.out.println(\"Estoy adentro con parametro beneficio---------------------->\"+beneficio);\n \n if (beneficio.equalsIgnoreCase(\"S\")){\n\t if (reformaTributaria.getContextoAmbienteParam().endsWith(\"CNV_INTRA\")){\n\t \t ContextoAmbienteParam=\"CNV_INTRA\";\n\t }else{\n\t \t ContextoAmbienteParam=\"CNV_BENEFICIO_INTER\";\n\t }\n }else{\n \t ContextoAmbienteParam=reformaTributaria.getContextoAmbienteParam(); \n }\n //Deudas que forman parte de la propuesta, pero no son propias del contribuyente\n /*\n --------------------------------------------------------------\n ------- Las variables determinantes --------------------\n ------- para condiciones de convenios --------------------\n --------------------------------------------------------------\n ------- v_tipo_valor\n ------- v_tipo_convenio\n ------- v_comportamiento\n ------- v_embargo\n ------- v_canal\n --------------------------------------------------------------\n -------------------------------------------------------------- \n */\n if (comportamiento){\n \t inComportamiento=1;\n }else{\n \t inComportamiento=2;\n }\n \n //String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia()+\";\"+reformaTributaria.canal();\n String parametros=reformaTributaria.pagoTotalConvenio()+\";\"+reformaTributaria.comportamiento()+\";\"+reformaTributaria.garantia();\n \n //System.out.println(\"tipo reforma condonacion--->\"+reformaTributaria.getCodConvenios());\n //System.out.println(\"***************************estoy en comportamiento****************************************\");\n //System.out.println(\"reformaTributaria.garantia()--->\"+reformaTributaria.garantia());\n //System.out.println(\"param getComporConv---> \"+parametros);\n //call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?)}\");\n call = conn.prepareCall(\"{call PKG_REFORMA_TRIBUTARIA.consulta_tabla_valores_conv(?,?,?,?,?,?,?,?)}\");\n call.setLong(1,inComportamiento);/*tipo comporamiento � condonaci�n */\n call.setString(2,parametros);/*tipo convenio */\n call.registerOutParameter(3, OracleTypes.INTEGER);/*max_cuotas*/\n call.registerOutParameter(4, OracleTypes.INTEGER);/*min_pie*/\n call.registerOutParameter(5, OracleTypes.INTEGER);/*por_condonacion*/ \n call.registerOutParameter(6, OracleTypes.INTEGER);/*error*/ \n /*se agrega nueva forma de servicio*/\n if (reformaTributaria.getCodConvenios()!=null){//si no es nulo quiere decir que es transitoria\n \t call.setLong(7,reformaTributaria.getCodConvenios().intValue());/*codigo condonacion si es transitoria*/\n }else{//si es null quiere decir que es convenio permanente\n \t call.setNull(7, OracleTypes.INTEGER);\n }\n //call.setString(8,reformaTributaria.getContextoAmbienteParam());/*ambiente Intranet � internet*/ \n System.out.println(\"ContextoAmbienteParam---> \"+ContextoAmbienteParam);\n call.setString(8,ContextoAmbienteParam);/*ambiente Intranet � internet*/\n call.execute();\n \n int maxCuotas = Integer.parseInt(call.getObject(3).toString());\n int minCuotaContado = Integer.parseInt(call.getObject(4).toString());\n \n\n int codError = Integer.parseInt(call.getObject(6).toString());\n \n reformaTributariaOut.setCodError(new Integer(codError));\n reformaTributariaOut.setMaxCuota(new Integer(maxCuotas));\n reformaTributariaOut.setMinCuotaContado(new Integer(minCuotaContado));\n call.close(); \n \n }catch (Exception e) {\n \te.printStackTrace();\n \t//throw new RemoteException(\"No tiene valor de comportamiento convenios:\" + e.getMessage());\n }\n finally{\n this.closeConnection();\n }\n\t\treturn reformaTributariaOut;\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 void resolver(){\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras(); j++){\n\t\t\t\tif(tablero.getTablero()[i].contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tE\");\n\t\t\t\t} else if (tablero.getTablero()[i].contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tO\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Busca sentido Norte y Sur\n\t\tString aux = \"\";\n\t\tfor(int i = 0 ; i < tablero.getTamanio(); i++){\n\t\t\tfor(int j = 0 ; j < tablero.getTamanio(); j++){\n\t\t\t\taux += tablero.getTablero()[j].charAt(i);\n\t\t\t}\n\t\t\tfor(int j = 0 ; j < diccionario.getCantPalabras() ; j++){\n\t\t\t\tif(aux.contains(diccionario.getPalabra()[j].getPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tS\");\n\t\t\t\t} else if(aux.contains(diccionario.getPalabra()[j].invertirPalabra()) && !diccionario.getPalabra()[j].isEncontrada()){\n\t\t\t\t\tdiccionario.getPalabra()[j].setEncontrada(true);\n\t\t\t\t\trespuesta.add(Integer.toString(j+1) + \"\\tN\");\n\t\t\t\t}\n\t\t\t}\n\t\t\taux = \"\";\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tPrintWriter pw = new PrintWriter(new File(\"Rapigrama1.out\"));\n\t\t\tfor(int i = 0 ; i < respuesta.size(); i++){\n\t\t\t\tpw.println(respuesta.get(i));\n\t\t\t}\n\t\t\tpw.close();\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "Matrix<T> getTransposed();", "private void pasar_a_matriz_adyacencia() {\n table_panel1.eliminar_All();//elimino todo los elemento de la matrices\n Grafo g = panel.getGrafo();//saco el grafo del panel\n data_fila[] dato = new data_fila[g.size_vertice()];//hago de una arreglo de vectores \n for (int i = 0; i < g.size_vertice(); i++) {//estructuras de datos\n dato[i] = new data_fila();\n }\n\n for (int i = 0; i < g.size_vertice(); i++) {\n Vertices A = g.get_vertices(i);\n dato[i].setNombre(A.getNombre());\n for (int j = 0; j < g.size_vertice(); j++) {\n if (j != i) {\n Vertices B = g.get_vertices(j);\n int peso =A.adyacencia(B);\n if (peso != Integer.MIN_VALUE) {\n dato[i].setArry(j, peso);\n }\n\n }\n }\n table_panel1.add(dato[i]);\n }\n }", "public static void main(String[] args) {\n int numeros[] = {2, 3, 4, 2, 4, 5, 6, 2, 1, 2};\n //Creamos segundo arreglo con iguall tamaño que el arreglo nùmeros\n int cuadrados[] = new int[numeros.length];\n //Arreglo para almacenar el proceso de la operación\n String procesos[] = new String[numeros.length];\n //Creamos ciclo de repeticiòn para recorrer arreglo \n for (int indice = 0; indice < numeros.length; indice++) {\n int cuadrado = numeros[indice] * numeros[indice];\n //Almacenamos el proceso de la opreaciòn en el arreglo cuadrados\n cuadrados[indice] = cuadrado;\n \n //Almacenar resultado en el arreglo procesos\n procesos[indice] = numeros[indice] + \"x\" + numeros[indice];\n }\n //Ciclo de repetición para mostrar arreglos\n String print_numeros = \"numeros - \";\n String print_cuadrados = \"cuadrados - \";\n String print_procesos = \"procesoss - \";\n for (int indice = 0; indice < numeros.length; indice++) {\n print_numeros = print_numeros + numeros[indice] + \", \";\n print_cuadrados = print_cuadrados + cuadrados[indice] + \", \";\n print_procesos = print_procesos + procesos[indice] + \", \";\n\n }\n System.out.println(print_numeros);\n System.out.println(print_cuadrados);\n System.out.println(print_procesos);\n \n //suma solo numeros pares\n int acumulador_pares=0;\n for (int indice = 0; indice < 10; indice++) {\n boolean par= detectar_par(numeros[indice]);\n if (par == true) {\n acumulador_pares = acumulador_pares + numeros[indice];\n \n }\n }\n System.out.println(\"La suma de los nùmeros pares es: \"+acumulador_pares);\n \n }", "public boolean interpreta(String com[]){\n\t\tint i, contv = 0, j;\n\t\tchar tok;\n\t\tString aux;\n\t\t\n\t\tfor(i = 0 ; i < com.length && com[i] != null; i++){\n\t\t\tcom[i]=com[i].trim();\n\t\t\tcom[i]=com[i].trim();\n\t\t\tcom[i]=com[i].replace(\"fimenquanto\",\"#\");\n\t\t\tcom[i]=com[i].replace(\"fimse\",\"*\");\n\t\t\tcom[i]=com[i].replace(\"else\",\",\");\n\t\t\tcom[i]=com[i].replace(\"se\",\".\");\n\t\t\tcom[i]=com[i].replace(\"op\",\"$\");\n\t\t\tcom[i]=com[i].replace(\":\",\"[\");//Para chamar a funcao abacaxi:\n\t\t\tcom[i]=com[i].replace(\"{\",\"+\");\n\t\t\tcom[i]=com[i].replace(\"}\",\"-\");\n\t\t\tcom[i]=com[i].replace(\"end\",\":\");//Fim do ELSE\n\t\t\tcom[i]=com[i].replace(\"enquanto\",\"@\");\n\t\t\tcom[i]=com[i].replace(\"imprime\",\"%\");\n\t\t\tcom[i]=com[i].replace(\"le\",\"?\");\n\t\t}\n\t\tboolean baleado=false;\n\t\tint salvaFuncao = 0, jaEntrou = 1;\n\t\tMate mat = new Mate();\n\n\t\tfor(i = 0; i < (com.length - 1) && com[i] != null; ++i){\n\t\t\ttok = com[i].charAt(0);\n\t\t\taux = com[i].substring(1);\n\t\t\taux = aux.trim();\n\t\t\t\n\t\t\tswitch(tok){//Caso IF\n\t\t\t\tcase '.':\n\t\t\t\t\tbaleado = Logico.funcaoSe(var, aux, 2);\n\t\t\t\t\tif(baleado == false){\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase ',': //Caso ELSE IF\n\t\t\t\t\tif(baleado){\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\tcase '*': \t//fim if\n\t\t\t\t\tbreak;\n\t\t\t\tcase ':': //fim ELSE\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '$': \t//criar variavel\n\t\t\t\t\tString[] nova = aux.split(\"=\");\n\t\t\t\t\tString nok = new String();\n\t\t\t\t\tnova[1] = nova[1].trim();\n\t\t\t\t\tnok = nova[1].substring(0);\n\t\t\t\t\t//double valor = Mate.soma(nova[1], var);\n\t\t\t\t\tint jaka,contador;\n\t\t\t\t\tdouble value;\n\t\t\t\t\tchar jui = ' ';\n\t\t\t\t\tfor(jaka=0,contador=0; jaka < nok.length(); ++jaka){\n\t\t\t\t\t\tjui = nova[1].charAt(jaka);\n\t\t\t\t\t\tif(jui == '+' || jui == '-' || jui == '*' || jui == '/')\n\t\t\t\t\t\t\tcontador++;\n\t\t\t\t\t}\n\t\t\t\t\tif(contador > 0){\n\t\t\t\t\t\tvalue = mat.calcula(nok, 0, var);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tvalue = Mate.soma(nova[1], var);\n\t\t\t\t\t}\n\t\t\t\t\tnova[0] = nova[0].trim();\n\t\t\t\t\tvar.atlVar( nova[0] , value);\t\t\t\t\t\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '@':\t//while\n\t\t\t\t\tif(Logico.funcaoSe(var, aux, 1) == true){\n\t\t\t\t\t\tlaco.push(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\ti = Logico.linha(com, i);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase '#':\t//fim while\n\t\t\t\t\tif(laco.vazio() == true){\n\t\t\t\t\t\t//if(com[laco.pop()].charAt(0) == '@'){\n\t\t\t\t\t\t\ti = (laco.pop() - 1);\n\t\t\t\t\t\t//}\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase '[': //Onde está a FUNCAO. Necessário guardar essa posicao\n\t\t\t\t\tsalvaFuncao = i;\n\t\t\t\t\tString[] nome = aux.split(\";\");\n\t\t\t\t\tnome[0] = nome[0].trim();\n\t\t\t\t\t//System.out.println(\"NOME = \"+nome[0]);\n\t\t\t\t\ti = Logico.achaFuncao(com, i, nome[0]);\n\t\t\t\t\tjaEntrou++;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '-':\n\t\t\t\t\tjaEntrou--;\n\t\t\t\t\tif(jaEntrou == 0)\n\t\t\t\t\t\treturn true;\n\t\t\t\t\ti = salvaFuncao;\n\t\t\t\t\tbreak;\n\t\t\t\tcase '+':\n\t\t\t\t\treturn true;\n\t\t\t\tcase '%':\t//imprime\n\t\t\t\t\taux = aux.trim();\n\t\t\t\t\tImp.imprime(aux, var);\n\t\t\t\t\tbreak;\n\n\t\t\t\t\t\n\t\t\t\tcase '?':\t//scaner leitur\n\t\t\t\t\tdouble get = scan.nextDouble();\n\t\t\t\t\tvar.atlVar(aux, get);\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t}", "@Override\n\tpublic double[][] calc() {\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\n\t\t\t\tthis.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length];\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif (this.det != 0) {\t//if determinant is not 0.\n\t\t\t\n\t\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\t\n\t\t\t\t\n\t\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t\t\t\t\n\t\t\t\t\tthis.cT = new double[this.singleMatrix.length][this.singleMatrix[i].length];\t//declare the size of co-factor matrix transposed\n\n\t\t\t\t\tthis.cT[i][j] = this.coFactor[j][i];\t//the rows of cT = the cols of coFactor matrix. the cols of cT = the rows of coFactor matrix\n\t\t\t\t\t\n\t\t\t\t\t/* # you might want to initialize this.inverse and calculate right after the above cT calculation done as follow,\n\t\t\t\t\t \n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \t- this.inverse = new double[this.singleMatrix.length][this.singleMatrix[i].length]; -\n\t\t\t\t\t \t- this.inverse[i][j] = 1 / this.det * this.cT[i][j]; -\n\t\t\t\t\t \t--------------------------------------------------------------------------------------\n\t\t\t\t\t \n\t\t\t\t\t technically, it's not really a problem when it comes to initializing one more variable in the same loop.\n\t\t\t\t\t however, this specific situation, that three variables (coFacotr, cT and inverse) and their values are involved in, occurs an unexpected result which is still not an error.\n\t\t\t\t\t \n\t\t\t\t\t this.coFactor is done in a loop in initializing and calculating \n\t\t\t\t\t this.cT and this.inverse are done in a loop in initializing and calculating\n\t\t\t\t\t \n\t\t\t\t\t # thus, calculation goes as it goes and this.inverse will be kept initializing until the loop ends.\n\t\t\t\t\t this.inverse will then always & only store its running value at a current location depending on increment of i and j.\n\t\t\t\t\t you will see only one result at the last index and won't see all the values stored correctly.\n\t\t\t\t\t (all of the values will be zero except the last value at the last index)\n\t\t\t\t\t \n\t\t\t\t\t # one simple solution is to initialize and calculate a variable -inverse in this case- in a separate for-loop\n\t\t\t\t\t \n\t\t\t\t\t */\n\n\t\t\t\t\t//calculate inverse here but initialize it in another for-loop\n\t\t\t\t\tthis.inverse[i][j] = 1 / this.det * this.cT[i][j]; //formula: A-1 = 1 / det * cT\n\t\t\t\t}\t\n\t\t\t}\n\t\t\t\n\t\t}else {\t//det is 0\n\t\t\t\n\t\t\tSystem.out.println(\"\\nThe matrix is a singular. singular matrices can not have inverses.\");\n\t\t}\n\t\t\n\t\t//print\n\t\tSystem.out.println(\"\\nInverse of the current matrix is: \");\n\t\tfor (int i=0; i<this.singleMatrix.length; i++) {\n\t\t\t\t\t\n\t\t\tfor (int j=0; j<this.singleMatrix[i].length; j++) {\n\t\t \t\t\n\t\t\t\tSystem.out.print(String.format(\"%.2f\", this.inverse[i][j]) + \" \");\t//display the result with a space between value representing as two decimal point\n//\t\t\t\tSystem.out.print(this.inverse[i][j] + \" \");\t//display the result with a space between value representing as two decimal point\n\t\t\t}\n\t\tSystem.out.println();\t//a new line for the next row and cols\n\t\t}\n\t\t\n\t\treturn inverse;\t//return the value of inverse\n\t}", "Nda<V> transpose( int dim1, int dim2 );", "private static void trans(Board board) {\n\t\tint[][] M = new int[board.size][board.size];\n\t\tfor (int i = 0; i < board.size; i++)\n\t\t\tfor (int j = 0; j < board.size; j++)\n\t\t\t\tM[i][j] = board.board[j][i];\n\t\tboard.board = M.clone();\n\t}", "public int esquinas(){\n int v=0;\n if (fila==0 && columna==0){\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna+1)!=null && automata.getElemento(fila+1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==0 && columna==15){\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna-1)!=null && automata.getElemento(fila+1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila+1,columna)!=null && automata.getElemento(fila+1,columna).isVivo()){v++;}\n }\n else if(fila==15 && columna==0){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna+1)!=null && automata.getElemento(fila-1,columna+1).isVivo()){v++;}\n if(automata.getElemento(fila,columna+1)!=null && automata.getElemento(fila,columna+1).isVivo()){v++;}\n }\n else if(fila==15 && columna==15){\n if(automata.getElemento(fila-1,columna)!=null && automata.getElemento(fila-1,columna).isVivo()){v++;}\n if(automata.getElemento(fila-1,columna-1)!=null && automata.getElemento(fila-1,columna-1).isVivo()){v++;}\n if(automata.getElemento(fila,columna-1)!=null && automata.getElemento(fila,columna-1).isVivo()){v++;}\n }\n return v;\n }", "public String corrector () {\n String aux = tabla_lexica.peek();\n \n if (aux.equals(\"$\") || aux.equals(\".\") || aux.equals(\"(\") || aux.equals(\")\") || aux.equals(\",\") || aux.equals(\"'\") || aux.equals(\"+\") || aux.equals(\"-\") || aux.equals(\"*\") || aux.equals(\"/\") || aux.equals(\"r\") || aux.equals(\"i\") || aux.equals(\"d\") || aux.equals(\"a\")) {\n return aux;\n } \n \n Pattern p1 = Pattern.compile(\"(([>\\\\<])+([=])|[(\\\\)\\\\;\\\\+\\\\-\\\\–\\\\*\\\\/\\\\'\\\\’\\\\‘\\\\,\\\\.\\\\>\\\\<\\\\=]|([@0-9A-Za-z]*)+([#\\\\.\\\\%\\\\_\\\\-]*)?[0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)\"\n + \"|([@A-Za-z]*)+([#\\\\%\\\\_\\\\-]*)?[A-Za-z0-9]+([#\\\\%\\\\_\\\\-\\\\[0-9A-Za-z]*)?([#\\\\%\\\\-\\\\_\\\\[0-9A-Za-z]*)|[!\\\\$\\\\%\\\\&\\\\?\\\\¿\\\\¡\\\\_]|[a-zA-Z])\");\n \n Matcher m2 = p1.matcher(aux);\n while (m2.find()) {\n if(m2.group().matches(\"SELECT|FROM|WHERE|IN|AND|OR|CREATE|TABLE|CHAR|NUMERIC|NOT|NULL|CONSTARINT|KEY|PRIMARY|FOREIGN|REFERENCES|INSERT|INTO|VALUES|GO|CREATE|PROCEDURE|VARCHAR\"\n + \"|AS|IF|EXISTS|BEGIN|PRINT|END|ELSE\")) //Palabras reservadas\n {\n String pal = m2.group();\n switch (pal) {\n case \"SELECT\": aux = \"s\";\n auxLinea = m2.group();\n break;\n case \"FROM\": aux = \"f\";\n auxLinea = m2.group();\n break;\n case \"WHERE\": aux = \"w\";\n auxLinea = m2.group();\n break;\n case \"IN\": aux = \"n\";\n auxLinea = m2.group();\n break;\n case \"AND\": aux = \"y\";\n auxLinea = m2.group();\n break;\n case \"OR\": aux = \"o\";\n auxLinea = m2.group();\n break;\n case \"CREATE\": aux = \"c\";\n auxLinea = m2.group();\n break;\n case \"TABLE\": aux = \"t\";\n auxLinea = m2.group();\n break;\n case \"CHAR\": aux = \"h\";\n auxLinea = m2.group();\n break;\n case \"NUMERIC\": aux = \"u\";\n auxLinea = m2.group();\n break;\n case \"NOT\": aux = \"e\";\n auxLinea = m2.group();\n break;\n case \"NULL\": aux = \"g\";\n auxLinea = m2.group();\n break;\n case \"CONSTRAINT\": aux = \"b\";\n auxLinea = m2.group();\n break;\n case \"KEY\": aux = \"k\";\n auxLinea = m2.group();\n break;\n case \"PRIMARY\": aux = \"p\";\n auxLinea = m2.group();\n break;\n case \"FOREIGN\": aux = \"j\";\n auxLinea = m2.group();\n break;\n case \"REFERENCES\": aux = \"l\";\n auxLinea = m2.group();\n break;\n case \"INSERT\": aux = \"m\";\n auxLinea = m2.group();\n break;\n case \"INTO\": aux = \"q\";\n auxLinea = m2.group();\n break;\n case \"VALUES\": aux = \"v\";\n auxLinea = m2.group();\n break;\n }\n } else {\n \n }\n }\n return aux;\n }", "public static ContenidoHTML tabla(Iterable<String[]> datos) {\n if (datos == null)\n throw new IllegalArgumentException(\"No se permiten parámetros null.\");\n EtiquetaEmparejada tabla = UtilHTML.tabla();\n Iterator<String[]> iteradorDatos = datos.iterator();\n // Si el iterador no tiene elementos termina.\n if (!iteradorDatos.hasNext())\n return tabla;\n // Agrega los encabezados a la tabla.\n String[] encabezados = iteradorDatos.next();\n EtiquetaEmparejada filaEncabezados = UtilHTML.filaTabla();\n for (int i = 0; i < encabezados.length; i++) {\n EtiquetaEmparejada encabezado = UtilHTML.encabezadoTabla();\n encabezado.agregarContenido(UtilHTML.textoPlano(encabezados[i]));\n filaEncabezados.agregarContenido(encabezado);\n }\n tabla.agregarContenido(filaEncabezados);\n // agrega los demás datos a la tabla\n while (iteradorDatos.hasNext()) {\n String[] filaDatos = iteradorDatos.next();\n EtiquetaEmparejada fila = UtilHTML.filaTabla();\n for (int i = 0; i < filaDatos.length; i++) {\n EtiquetaEmparejada entrada = UtilHTML.entradaTabla();\n entrada.agregarContenido(UtilHTML.textoPlano(filaDatos[i]));\n fila.agregarContenido(entrada);\n }\n tabla.agregarContenido(fila);\n }\n return tabla;\n }", "Hojas eval();", "public void mostrarVariablesForrester(){\n System.out.println(\"\");\n for (int i = 0; i < tam; i++) {\n if(matrizTipos[i][i].equals(\"P\")){\n System.out.println(\"[\"+i+\"] es un parametro\"); // parametro = constante\n }\n else if(matrizTipos[i][i].equals(\"V\")){\n System.out.println(\"[\"+i+\"] es un auxiliar\"); // auxiliar = constante * auxiliar (?) ó constante +/- auxiliar\n }\n else if(matrizTipos[i][i].equals(\"R\")){\n System.out.println(\"[\"+i+\"] es un flujo\"); // flujo = constante * auxiliar * nivel\n }\n else if(matrizTipos[i][i].equals(\"X\")){\n System.out.println(\"[\"+i+\"] es un nivel\");// xi(t + Δt) = xi(t) + Δt{rj - rk} rj = entrada y rk = salida, \"el - es por la salida\" (creo) \n }\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 }", "@Test\n public void givenStringShouldReturnTheTransposedString() {\n assertTrue(transpose.setString(\"This is the given text\"));\n String expectedOutput = \"sihT si eht nevig txet\";\n assertEquals(expectedOutput, transpose.getTransposedString());\n }", "private void aretes_aY(){\n\t\tthis.cube[49] = this.cube[43]; \n\t\tthis.cube[43] = this.cube[21];\n\t\tthis.cube[21] = this.cube[10];\n\t\tthis.cube[10] = this.cube[32];\n\t\tthis.cube[32] = this.cube[49];\n\t}", "@Test\n public void testCheckTriType() {\n System.out.println(\"checkTriType\");\n double[] a = {1 , 5 , 4 , 100};\n double[] b = {1 , 5 , 3 , 5 };\n double[] c = {1 , 8 , 2 , 6 };\n SVV01 instance = new SVV01();\n String[] expResult = {\"Equilateral Triangle\",\"Isosceles Triangle\",\"Scalene\",\"Invalid\"};\n \n for ( int i = 0 ; i < 4 ; i++ ){\n String result = instance.checkTriType(a[i], b[i], c[i]);\n assertEquals(expResult[i], result);\n }\n }", "DataFrame<C,R> transpose();", "public String getTabularResult() {\n StringBuilder builder = new StringBuilder();\n for (int c = 0; c < cols; ++c) {\n for (int r = 0; r < rows; ++r) {\n builder.append(puzzleMap.get(orderedKeys[r][c]).getValue());\n }\n builder.append(System.lineSeparator());\n }\n return builder.toString().trim();\n }", "public int evaluate(int[][] tabla, Position player, Position opponent, int p) {\r\n\t\t\r\n\t\tint x = player.x;\r\n\t\tint y = player.y;\r\n\t\t\r\n\t\tif (p == 0)\r\n\t\t\treturn -(tabla[x - 1][y] + tabla[x][y + 1] + tabla[x + 1][y] + tabla[x][y - 1] + \r\n\t\t\t\t\ttabla [x - 1][y - 1] + tabla[x - 1][y + 1] + tabla[x + 1][y - 1] + tabla[x + 1][y + 1] -\r\n\t\t\t\t\tMath.abs(player.x - opponent.x) - Math.abs(player.y - opponent.y) + 1);\r\n\t\telse\r\n\t\t\treturn tabla[x - 1][y] + tabla[x][y + 1] + tabla[x + 1][y] + tabla[x][y - 1] +\r\n\t\t\t\t\ttabla [x - 1][y - 1] + tabla[x - 1][y + 1] + tabla[x + 1][y - 1] + tabla[x + 1][y + 1] -\r\n\t\t\t\t\tMath.abs(player.x - opponent.x) - Math.abs(player.y - opponent.y) + 1;\r\n\t}", "public StringBuffer evoluciona()\r\n\t{\r\n\t\tStringBuffer hechos = new StringBuffer(\"\");\r\n\t\t\r\n\t\t//Me creo una superficie de booleanos para saber si hay célula o no en una posición....\r\n\t\tboolean [][]supBool = this.supBooleana();\r\n\t\t//Recorrido de la superficie...\r\n\t\tfor(int i=0; i<this.casillas.getFila(); i++)\r\n\t\t{\r\n\t\t\tfor(int j=0; j<this.casillas.getCol(); j++)\r\n\t\t\t{\r\n\t\t\t\t//Si en esa posición hay célula...\r\n\t\t\t\tif(supBool[i][j] == true)\r\n\t\t\t\t{\r\n\t\t\t\t\t//Ordeno ejecutarla, y la casilla a la que se ha movido, la pongo a false en la superficie booleana.\r\n\t\t\t\t\tCasilla c = this.superficie[i][j].ejecutaMovimiento(new Casilla(i,j), this, hechos);\r\n\t\t\t\t\tif(c!=null)supBool[c.getFila()][c.getCol()] = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t//Meto el tablero actualizado.\r\n\t\thechos.append(\"\\n\");\r\n\t\t\r\n\t\treturn hechos;\r\n\t}", "@Override\n\tpublic void evaluar(int resistencia, int capacidad, int velocidad) {\n\t\t\n\t}", "public Matrix[] palu() {\n\t\tHashMap<Integer, Integer> permutations = new HashMap<Integer,Integer>();\n\t\tMatrix m = copy();\n\t\tint pivotRow = 0;\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tif (pivotRow < m.M) {\n\t\t\t\tint switchTo = m.M - 1;\n\t\t\t\twhile (pivotRow != switchTo && \n\t\t\t\t\t\tm.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\tm = m.rowSwitch(pivotRow, switchTo);\n\t\t\t\t\tpermutations.put(pivotRow, switchTo);\n\t\t\t\t\tswitchTo--;\n\t\t\t\t}\n\t\t\t\tif (!m.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < m.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = m.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = m.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tm = m.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tMatrix p = identity(m.M);\n\t\tfor (Integer rowI : permutations.keySet()) {\n\t\t\tp.rowSwitch(rowI, permutations.get(rowI));\n\t\t}\n\t\tMatrix l = identity(m.M);\n\t\tMatrix u = p.multiply(copy());\n\t\t\n\t\tpivotRow = 0;\n\t\tfor (int col = 0; col < u.N; col++) {\n\t\t\tif (pivotRow < u.M) {\n\t\t\t\t// Should not have to do any permutations\n\t\t\t\tif (!u.ROWS[pivotRow][col].equals(new ComplexNumber(0))) {\n\t\t\t\t\t// We got a non-zero pivot\n\t\t\t\t\tfor (int lowerRow = pivotRow + 1; lowerRow < u.M;\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlowerRow++) {\n\t\t\t\t\t\tComplexNumber factor1 = new ComplexNumber(-1);\n\t\t\t\t\t\tComplexNumber factor2 = u.ROWS[lowerRow][col];\n\t\t\t\t\t\tComplexNumber factor3 = u.ROWS[pivotRow][col];\n\t\t\t\t\t\tComplexNumber factor4 = new ComplexNumber(1);\n\t\t\t\t\t\tComplexNumber factor5 = factor1.multiply(factor2);\n\t\t\t\t\t\tComplexNumber factor6 = factor4.divide(factor3);\n\t\t\t\t\t\tComplexNumber weight = factor5.multiply(factor6);\n\n\t\t\t\t\t\tu = u.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t\tl = l.rowAdd(lowerRow, pivotRow, weight);\n\t\t\t\t\t}\n\t\t\t\t\tpivotRow++;\n\t\t\t\t\t/* Keep the same pivot row if we currently have a\n\t\t\t\t\t * zero-pivot. Move on to see if there's a pivot in the\n\t\t\t\t\t * next column.\n\t\t\t\t\t */\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tl = l.inverse();\n\t\tMatrix[] palu = {p, this, l, u};\n\t\treturn palu;\n\t}", "static void compararMatrices() {\r\n System.out.println(\"COMPARAR MATRIZ CUADRADA \\n\");\r\n setup(true);\r\n boolean iguales = matrizA.compararMatrices(matrizB);\r\n if (iguales) {\r\n messageDialog(\"Las matrices son iguales!\", \"Comparar\", 3);\r\n } else {\r\n messageDialog(\"Las matrices no son iguales!\", \"Comparar\", 3);\r\n }\r\n }", "@Test\n\tpublic void probandoParametrosDevuelta() {\n\n\t\tString outFolder = ArbolFileSources.userFolder + \"/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_2_dm_finanzas/entregable/historia/\";\n\t\ttry {\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400, 500 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70,90 };\n\n\t\t\t// String[] seed = { \"101723\", \"208403\", \"663552\", \"826668\",\n\t\t\t// \"980641\" };\n\t\t\t// Integer[] maximaProfundidadList = { 6,7 };\n\t\t\t// Integer[] minParentSizeList = {300, 400 };\n\t\t\t// // cuenta que va a ser el porcentaje variable del current padre\n\t\t\t// Integer[] minChildSizeList = { 65,70 };\n\n\t\t\tString[] seed = { \"101723\", \"208403\", \"663552\", \"826668\", \"980641\" };\n\t\t\tInteger[] maximaProfundidadList = { 7 };\n\t\t\tInteger[] minParentSizeList = { 300, 350, 400 };\n\t\t\t// cuenta que va a ser el porcentaje variable del current padre\n\t\t\tInteger[] minChildSizeList = { 65, 70 };\n\n\t\t\t// para cada semilla correr los arboles\n\n\t\t\tString resultSyntax = ArbolesSQLEjecutador.generaSyntaxSpssIterativoVarsYHisto(outFolder, maximaProfundidadList, minParentSizeList, minChildSizeList, seed);\n\t\t\tString timeStampFolder = UtilidadesGenerales.getTimeStamp(null, null);\n\t\t\tUtilidadesGenerales.writeToFile(resultSyntax, \"UTF-8\", outFolder + timeStampFolder + \"_syntax.txt\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tAssert.fail(e.getMessage());\n\t\t}\n\t}", "public static void main(String[] args) {\n double[] vArr = {5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75};\n double[] tempArr = {-40, -30, -20, -10, 0, 10, 20, 30, 40, 50};\n //1. utwórz tablice 2-wymiarowa\n //2. potrzebuje: typprzechowanej wartosci i rozmiar, czyli\n //typ: double\n //rozm w kierunku temp.: -40, -30, -20, ... 50 -> 10 elementow\n //rozm w kierunku v: 5, 10, 15, 20, 25, -> 15 elelmentow\n double[][] resultMatrix = new double[vArr.length][tempArr.length];\n\n //3. rM(1, 3) = f(10, -10) = -7,5;\n //Odczytac wartosc v i temp do obliczen i podstawic do wzoru - wynik umiescic w odp miejscu tab rM\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n resultMatrix[v][t] = 35.74 + 0.6215 * tempArr[t] + (0.4275 * tempArr[t] - 35.75) * Math.pow(vArr[v], 0.16);\n }\n }\n\n //mam juz uzupelniona cala tab wartosci - wyswietlic\n for (int v = 0; v < vArr.length; v++){\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[v], (int) tempArr[t], resultMatrix[v][t]));\n }\n }\n System.out.println(\"Tabela wartosci: \");\n for (int v = 0; v < vArr.length; v++) {\n for (int t = 0; t < tempArr.length; t++){\n System.out.println(resultMatrix[v][t] + \"\\t\");\n }\n System.out.println();\n }\n System.out.println(\"Podaj v: <5, 10, 15... 75>\");\n //5 -> vArr[0]\n //75 -> vArr[14]\n //userInput/5 - 1\n Scanner sc = new Scanner(System.in);\n int userInput = sc.nextInt();\n int vIdx = userInput / 5 - 1;\n System.out.println(\"Podaj temp: <-40, -30... 50>\");\n userInput = sc.nextByte();\n int tempIdx = (userInput + 40) / 10;\n\n System.out.println(String.format(\"f(%d, %d) = %f\", (int) vArr[vIdx], (int) tempArr[tempIdx], resultMatrix[vIdx][tempIdx]));\n }", "@Test\n public void serialDecomposition_test1()\n {\n // The function:\n // i2 i4 i7 Q | o0 o2 o3\n // 1 1 0 G0 | 1 - -\n // 1 1 - G6 | - - 1\n // 0 0 0 G7 | - 1 -\n // 1 0 1 G0 | - 1 1\n // 1 1 1 G2 | - 1 1\n // 1 1 1 G5 | - 1 1\n // 0 1 0 G0 | - 1 1\n // 1 1 0 G2 | - 1 -\n // 1 - - G1 | - - 1\n // 1 0 0 G5 | 1 1 -\n // 0 1 1 G5 | - - 1\n // 0 - - G1 | - 1 -\n // 0 0 1 G0 | - - 1\n // 0 0 1 G2 | - - 1\n // 1 1 1 G7 | - 1 -\n // 0 0 0 G0 | - - 1\n // 1 1 0 G7 | - 1 1\n // 1 0 1 G2 | - 1 1\n // 0 1 0 G5 | - - 1\n // 1 1 0 G5 | - 1 1\n // 1 0 0 G2 | - 1 1\n // 1 0 0 G0 | - 1 1\n // 1 0 0 G7 | - 1 1\n // 1 0 1 G7 | - 1 -\n // 0 0 1 G5 | - - 1\n // 1 0 1 G5 | - 1 1\n // 0 0 1 G7 | 1 1 1\n // 1 1 - G0 | - 1 1\n // 0 0 0 G2 | 1 1 1\n // 1 - - G3 | - 1 -\n // 0 - - G3 | - - 1\n // 0 - - G5 | 0 - -\n // 0 - 0 G7 | 0 - -\n // 0 - - G0 | 0 - -\n // - - 1 G0 | 0 - -\n // - - 1 G2 | 0 - -\n // 1 0 - G0 | 0 - -\n // 1 0 - G2 | 0 - -\n // 1 0 - G7 | 0 - -\n // - 1 - G7 | 0 - -\n // - 1 - G5 | 0 - -\n // - 1 - G2 | 0 - -\n // 1 - 1 G5 | 0 - -\n // - - - G1 | 0 - -\n // - - - G3 | 0 - -\n // - - - G4 | 0 - -\n // - - - G0 | - - -\n // - - - G2 | - - -\n // - - - G6 | - - -\n // - - - G7 | - - -\n // - - - G5 | - - -\n // - - - G4 | - - -\n // - - - G6 | 0 - -\n // 0 0 0 G5 | 0 0 0\n // 0 - 1 G2 | - 0 -\n // 0 - 1 G5 | - 0 -\n // 0 1 - G2 | 0 0 0\n // 0 1 - G4 | 0 0 0\n // 0 1 - G2 | 0 0 -\n // 0 1 - G5 | 0 0 -\n // 0 1 - G4 | 0 0 -\n // 0 - 0 G7 | 0 - 0\n // 0 1 - G7 | 0 0 0\n // 0 0 - G0 | 0 0 -\n // 0 0 - G4 | 0 0 -\n // 0 1 1 G0 | 0 0 0\n // 0 - - G4 | 0 0 0\n // 0 - - G3 | - 0 -\n // 0 - - G4 | - 0 -\n // 0 - - G1 | 0 - 0\n // 0 - - G4 | 0 - 0\n // - 0 0 G6 | - - 0\n // - 0 0 G5 | - - 0\n // - 0 0 G4 | - - 0\n // 1 0 1 G6 | - - 0\n // - 0 - G6 | 0 0 0\n // 1 - 1 G7 | - - 0\n // 1 - - G1 | 0 0 -\n // 1 - - G6 | 0 0 -\n // 1 - - G4 | 0 0 -\n // - 1 0 G2 | - - 0\n // - 1 0 G4 | - - 0\n // - - - G4 | 0 0 0\n // 1 - - G3 | - - 0\n // 1 - - G4 | - - 0\n // - - - G3 | - - -\n // - - - G1 | - - -\n\n // Y = {o0o2o3}, U = {i7}, V = {i2i4}\n // Iv = i2i4\n Blanket βIv = Blanket.create(\"1,2,5,6,8,9,15,17,20,28,30,35,36,40,41,42,43,44,45,46,47,48,49,50,51,52,53,77,78,79,80,81,82,83,84,85,86,87; 3,12,13,14,16,25,27,29,31,32,33,34,35,36,44,45,46,47,48,49,50,51,52,53,54,55,56,62,64,65,67,68,69,70,71,72,73,74,76,83,86,87; 4,9,10,18,21,22,23,24,26,30,35,36,37,38,39,43,44,45,46,47,48,49,50,51,52,53,72,73,74,75,76,77,78,79,80,83,84,85,86,87; 7,11,12,19,31,32,33,34,35,36,40,41,42,44,45,46,47,48,49,50,51,52,53,55,56,57,58,59,60,61,62,63,66,67,68,69,70,71,81,82,83,86,87;\");\n // Iu = i7\n Blanket βIu = Blanket.create(\"1,2,3,7,8,9,10,12,16,17,19,20,21,22,23,28,29,30,31,32,33,34,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,57,58,59,60,61,62,63,64,65,67,68,69,70,71,72,73,74,76,78,79,80,81,82,83,84,85,86,87; 2,4,5,6,9,11,12,13,14,15,18,24,25,26,27,28,30,31,32,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,55,56,57,58,59,60,61,63,64,65,66,67,68,69,70,71,75,76,77,78,79,80,83,84,85,86,87;\");\n Blanket βQ = Blanket.create(\"G0:1,4,7,13,16,22,28,34,35,37,47,64,66; G1:9,12,44,70,78,87; G2:5,8,14,18,21,29,36,38,42,48,55,57,59,81; G3:30,31,45,68,84,86; G4:46,52,58,61,65,67,69,71,74,80,82,83,85; G5:6,10,11,19,20,25,26,32,41,43,51,54,56,60,73; G6:2,49,53,72,75,76,79; G7:3,15,17,23,24,27,33,39,40,50,62,63,77;\");\n Blanket βY = Blanket.create(\"1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,47,48,49,50,51,52,86,87; 1,2,9,11,13,14,16,19,25,31,47,48,49,50,51,52,55,56,68,69,86,87; 1,3,8,10,12,15,24,30,47,48,49,50,51,52,72,73,74,75,77,81,82,84,85,86,87; 1,47,48,49,50,51,52,55,56,68,69,72,73,74,75,77,81,82,84,85,86,87; 2,3,4,5,6,7,8,9,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,86,87; 2,9,11,13,14,16,19,25,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,55,56,59,60,61,64,65,68,69,78,79,80,86,87; 3,8,12,15,24,30,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,62,70,71,72,73,74,75,77,81,82,84,85,86,87; 32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87;\");\n DecompositionBlankets decomposition = Decompositions.serialDecomposition(βIv, βIu, βQ, βY, 0, false);\n Assertions.assertThat(decomposition).isNotNull();\n\n Blanket βQv = decomposition.QvJoinedWithQu ? decomposition.Qu.BxB(decomposition.QvPartial) : decomposition.Qv;\n Blanket βQu = decomposition.QuJoinedWithQv ? decomposition.Qv.BxB(decomposition.QuPartial) : decomposition.Qu;\n\n Assertions.assertThat(decomposition.Iv.BxB(βQv).BleB(decomposition.G)).isTrue(); // βIv x βQv <= βG - true\n Assertions.assertThat(decomposition.G.BxB(decomposition.Iu != null ? decomposition.Qu.BxB(decomposition.Iu) : βQu).BleB(decomposition.H)).isTrue(); // βIu x βG x βQu <= βY - true\n Assertions.assertThat(decomposition.Qv.BxB(decomposition.Qu).BeqB(decomposition.Q)).isTrue(); // βQv x βQu = βQ - true\n Assertions.assertThat(decomposition.Qv.BxB(decomposition.Qu).BeqB(βQ)).isTrue(); // βQv x βQu = βQ - true\n }", "public void mayorMenorEntrada(int[][] entradas) throws Exception {\n Producto mayorEntrada = null;\n Producto menorEntrada = null;\n String entradaMayor = \"\";\n String costoMayor = \"\";\n String entradaMenor = \"\";\n String costoMenor = \"\";\n \n ciclo: {\n for (int i = 0; i < entradas.length; i++) {\n if (i == 0) {\n if (entradas[i][1] > 0) {\n mayorEntrada = buscarProducto(entradas[0][0]);\n entradaMayor = mayorEntrada.getNombre();\n costoMayor = entradas[0][3] + \"\"; \n }\n } else if (entradas[i][1] == 0) {\n menorEntrada = buscarProducto(entradas[i - 1][0]);\n entradaMenor = menorEntrada.getNombre();\n costoMenor = entradas[i - 1][3] + \"\"; \n break ciclo;\n } else if (i == (entradas.length - 1)) {\n menorEntrada = buscarProducto(entradas[i][0]);\n entradaMenor = menorEntrada.getNombre();\n costoMenor = entradas[i][3] + \"\"; \n break ciclo;\n }\n }\n }\n DefaultTableModel modelo = (DefaultTableModel) jTableMayorMenorEntrada.getModel();\n Object[] filaNueva = { entradaMayor, costoMayor, entradaMenor, costoMenor };\n modelo.addRow(filaNueva); \n }", "public void verTablero(){\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" 1 2 3 4 5 6 \\n\");\n\t\tfor(int i = 0; i < tablero.length; i++){\n\t\t\t\n\t\t\tfor(int j = 0; j < tablero[1].length; j++){\n\t\t\t\t\n\t\t\t\tif(tablero[i][j] == 0){\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" - \");\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.print(\" \" + tablero[i][j] + \" \");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "public void reversarComprobante() {\r\n if (tab_tabla1.getTotalFilas() > 0) {\r\n String ide_cnccc_anular = tab_tabla1.getValor(\"ide_cnccc\");\r\n // realizo el asiento de reversa\r\n con.reversar(ide_cnccc_anular, \"Asiento de reversa de la transaccion num: \" + ide_cnccc_anular, con);\r\n String ide_cnccc_nuevo = con.getTab_cabecera().getValor(\"ide_cnccc\");\r\n if (ide_cnccc_nuevo != null && !ide_cnccc_nuevo.isEmpty()) {\r\n // cambio el estado de libro bancos a anulado\r\n utilitario.getConexion().agregarSqlPantalla(\"update tes_cab_libr_banc set ide_teelb=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n // consulto si tiene Documentos por Pagar\r\n TablaGenerica tab_cxp_cab_fact = utilitario.consultar(\"select * from cxp_cabece_factur where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxp_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxp_cabece_factur set ide_cpefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_pagar cxp = new cls_cuentas_x_pagar();\r\n // reverso la transaccion CxP\r\n cxp.reversar(ide_cnccc_nuevo, tab_cxp_cab_fact.getValor(0, \"ide_cpcfa\"), \"Reversa CxP de fact. num:\" + tab_cxp_cab_fact.getValor(0, \"numero_cpcfa\") + \" y asiento num:\" + ide_cnccc_anular, null);\r\n // hago reversa de inventario\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n inv.reversar_menos(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n }\r\n }\r\n\r\n boolean boo_asiento_costos = false;\r\n String ide_asiento_costos = \"-1\";\r\n // consulto si tiene CXC\r\n\r\n TablaGenerica tab_cxc_cab_fact = utilitario.consultar(\"select * from cxc_cabece_factura where ide_cnccc=\" + ide_cnccc_anular);\r\n if (tab_cxc_cab_fact.getTotalFilas() > 0) {\r\n // cambio elestado a anulado de la factura cxc si tiene\r\n utilitario.getConexion().agregarSqlPantalla(\"update cxc_cabece_factura set ide_ccefa=1 where ide_cnccc=\" + ide_cnccc_anular);\r\n cls_cuentas_x_cobrar cxc = new cls_cuentas_x_cobrar();\r\n //cxc.reversar(ide_cnccc_nuevo, tab_cxc_cab_fact.getValor(0, \"ide_cccfa\"), \"Reversa CxP de fact. num:\" + tab_cxc_cab_fact.getValor(0, \"secuencial_cccfa\") + \" y asiento num:\" + ide_cnccc_anular);\r\n TablaGenerica tab_inv_cab_inv = utilitario.consultar(\"select * from inv_cab_comp_inve where ide_incci in ( \"\r\n + \"select ide_incci from inv_det_comp_inve where ide_cccfa=\" + tab_cxc_cab_fact.getValor(0, \"ide_cccfa\") + \" GROUP BY ide_incci)\");\r\n if (tab_inv_cab_inv.getTotalFilas() > 0) {\r\n cls_inventario inv = new cls_inventario();\r\n // reverso inventario\r\n inv.reversar_mas(ide_cnccc_nuevo, tab_inv_cab_inv.getValor(0, \"ide_cnccc\"), \"Reversa de comprobante num:\" + ide_cnccc_anular);\r\n // reverso el comprobante de costos\r\n boo_asiento_costos = true;\r\n ide_asiento_costos = tab_inv_cab_inv.getValor(0, \"ide_cnccc\");\r\n }\r\n }\r\n\r\n utilitario.getConexion().guardarPantalla();\r\n tab_tabla1.setFilaActual(con.getTab_cabecera().getValor(\"ide_cnccc\"));\r\n tab_tabla1.ejecutarSql();\r\n if (boo_asiento_costos == true) {\r\n con.limpiar();\r\n con.reversar(ide_asiento_costos, \"Asiento de reversa asiento costos de la transaccion num: \" + ide_cnccc_anular, con);\r\n utilitario.getConexion().guardarPantalla();\r\n }\r\n }\r\n }\r\n }", "private void constructTransitionTransposeMatrix() {\r\n\t\tfor(int i=0; i<getNodeCnt(); i++) {\r\n\t\t\tArrayList<NodeTransition> transitionList = new ArrayList<NodeTransition>();\r\n\t\t\tmTransitionTranspose.add( transitionList );\r\n\t\t}\r\n\t\tfor(Node node: mNodes) {\r\n\t\t\tint fromId = node.getId();\r\n\t\t\tint outDegree = node.getOutDegree();\r\n\t\t\t\r\n\t\t\tSet<Integer> outEdges = getOutEdges(fromId);\r\n\t\t\tfor(Integer edgeId: outEdges) {\r\n\t\t\t\tint toId = getEdge(edgeId).getToId();\r\n\t\t\t\tdouble pTransition = (double) getEdge(edgeId).getWeight() / (double) outDegree;\r\n\t\t\t\t\r\n\t\t\t\tArrayList<NodeTransition> transitionList = mTransitionTranspose.get(toId);\r\n\t\t\t\ttransitionList.add( new NodeTransition(fromId, pTransition) );\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public ResultadoEvaluacionTecnica validarAccesibilidadPorTecnica(Parseador parseador) {\r\n\t\tthis.setParseador(parseador);\r\n\t\tResultadoEvaluacionTecnica resultadoEvaluacionTecnica = new ResultadoEvaluacionTecnica(this);\r\n\t\tResultadoEvaluacionTecnicaItem comprobacionTablaSinCaption = new ResultadoEvaluacionTecnicaItem(\r\n\t\t\t\tTipologia.TABLAS, \r\n\t\t\t\t\"Tablas sin elemento \\\"caption\\\".\",\r\n\t\t\t\t\"Verificar que la tabla incluye un elemento \\\"caption\\\".\",\r\n\t\t\t\t\"Comunica la informaci�n y sus relaciones mediantes tabla de datos: el elemento \\\"caption\\\" para titular la tabla de datos.\");\r\n\t\tResultadoEvaluacionTecnicaItem comprobacionContenidoCaptionIdentificaTabla = new ResultadoEvaluacionTecnicaItem(\r\n\t\t\t\tTipologia.TABLAS, \r\n\t\t\t\t\"Contenido del elemento \\\"caption\\\" identifica la tabla.\", \r\n\t\t\t\tTipoResultadoEvaluacion.MANUAL,\r\n\t\t\t\t\"Verificar que el contenido del elemento \\\"caption\\\" identifica la tabla.\",\r\n\t\t\t\t\"Comunica la informaci�n y sus relaciones mediantes tabla de datos: el elemento \\\"caption\\\" para titular la tabla de datos.\");\r\n\t\tfor (Element elementoTABLE : this.getParseador().getElementos(HTMLElementName.TABLE)) {\r\n\t\t\tList<Element> listaElementosCaption = elementoTABLE.getAllElements(HTMLElementName.CAPTION);\r\n\t\t\tif (listaElementosCaption.isEmpty()) \r\n\t\t\t\tcomprobacionTablaSinCaption.procesar(elementoTABLE);\r\n\t\t\telse \r\n\t\t\t\tfor (Element elementoCAPTION : listaElementosCaption) \r\n\t\t\t\t\tcomprobacionContenidoCaptionIdentificaTabla.procesar(elementoCAPTION);\r\n\t\t}\t\r\n\t\tresultadoEvaluacionTecnica.agregarResultadoEvaluacionTecnicaItem(comprobacionTablaSinCaption); \r\n\t\tresultadoEvaluacionTecnica.agregarResultadoEvaluacionTecnicaItem(comprobacionContenidoCaptionIdentificaTabla); \r\n\t\treturn resultadoEvaluacionTecnica;\r\n\t}", "private double evaluarExp4() throws Excepciones{\n double resultado;\n double resultadoParcial;\n double ex;\n int t;\n resultado = evaluarExp5();\n if(token.equals(\"^\")){\n obtieneToken();\n resultadoParcial = evaluarExp4();\n ex = resultado;\n if(resultadoParcial == 0.0) {\n resultado = 1.0;\n }else{\n for(t=(int)resultadoParcial-1; t > 0; t--){\n resultado = resultado * ex;\n }\n }\n }\n return resultado;\n}", "private boolean combinacaoHorizontal(){\n\t\t\tfor(int i=0; i<3;i++){\n\t\t\t\tint linha=botoes[i][0].getTipo();\n\t\t\t\tint contagem=1;\n\t\t\t\tfor(int j=1;j<3;j++){\n\t\t\t\t\tint modelo=botoes[i][j].getTipo(); //Pega qual tipo -se X ou O- foi acionado e armazena\n\t\t\t\t\tif(modelo==BotaoJogo.VAZIO){\n\t\t\t\t\t\tcontinue; //Se for vazio, ja vai pra proxima verificacao\n\t\t\t\t\t}\n\t\t\t\t\tif(modelo==linha){ \n\t\t\t\t\t\tcontagem++; //Vai computando os botoes acionados nas linhas\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(contagem==3){ //Se computou que chegou a 3, houve combinacao na horizontal\n\t\t\t\t\tif(linha==1){\n\t\t\t\t\t\tSystem.out.println(\"\\n X EH O GANHADOR!\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"\\n O EH O GANHADOR!\");\n\t\t\t\t\t}\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\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 }", "@Test\n\tpublic void testSquareIndexToSequence(){\n\t\t\n\t\tRow row = TestUtils.buildRow(\"3,1,2,1|-...-.....-....-.....-.-\");\n\t\tRowDecomposition decomposition = row.getDecomposition();\n\t\t\n\t\tAssert.assertEquals(18, decomposition.getTotalLength());\n\t\tAssert.assertEquals(decomposition.getSequence(0), decomposition.getSequenceContaining(0));\n\t\tAssert.assertEquals(decomposition.getSequence(0), decomposition.getSequenceContaining(2));\n\t\tAssert.assertEquals(decomposition.getSequence(1), decomposition.getSequenceContaining(3));\n\t\tAssert.assertEquals(decomposition.getSequence(1), decomposition.getSequenceContaining(7));\n\t\tAssert.assertEquals(decomposition.getSequence(2), decomposition.getSequenceContaining(8));\n\t\tAssert.assertEquals(decomposition.getSequence(2), decomposition.getSequenceContaining(11));\n\t\tAssert.assertEquals(decomposition.getSequence(3), decomposition.getSequenceContaining(12));\n\t\tAssert.assertEquals(decomposition.getSequence(3), decomposition.getSequenceContaining(16));\n\t\tAssert.assertEquals(decomposition.getSequence(4), decomposition.getSequenceContaining(17));\n\t\t\n\t}", "@Test\n public void decompositionShape() {\n checkDecomposition(5, 5 ,false);\n checkDecomposition(10, 5,false);\n checkDecomposition(5, 10,false);\n checkDecomposition(5, 5 ,true);\n checkDecomposition(10, 5,true);\n checkDecomposition(5, 10,true);\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 }", "public boolean isToeplitzMatrix(int[][] matrix) {\n \t\n \t//將i取出作為local variable,使能夠讀取當前行的下一行\n \t//例如當前讀第0行,使得能夠先讀到第1行\n \tint i=0;\n \tList<Integer> list = new ArrayList<>();\n \t\n \t//若矩陣長度<=1 則回傳true\n \tif(matrix.length <= 1)\n \t\treturn true;\n \t/*以行為主走訪\n \t * 走訪第n與n+1行*/\n \t\n \t//因為要讓內層第二個迴圈走訪到最後一行,故最外層走訪0~(列數-1)行\n \tfor(i=0 ; i<matrix[0].length-1 ; i++){\n \t\t//走訪每行的元素,並加到list中\n \t\tfor(int j=0 ; j<matrix.length ; j++){\n \t\t\tlist.add(matrix[j][i]);\n \t\t\t//System.out.println(matrix[j][i]);\n \t\t}\n \t\t//走訪i+1行的元素,並加到list中\n \t\tfor(int k=0 ; k<matrix.length ; k++){\n \t\t\tlist.add(matrix[k][i+1]);\n \t\t\t//System.out.println(matrix[k][i+1]);\n \t\t}\n \t\t\n \t\t/*以[1,2,3,4],[5,1,2,3],[9,5,1,2]為例\n \t\t * 我們以行為主走訪,可得知每次只需要比較前兩筆資料是否與下一行的後兩筆資料相符,就可以判斷是否符合題目要求\n \t\t * 因此將list內元素拿出來做比較,經過上面兩個迴圈的走訪後,第一次list內會有1,5,9,2,1,5這些元素\n \t\t * 只需比較上述矩陣的前兩筆資料是否與後兩筆相同(h+matrix.length+1)就可確認是否符合題目要求\n \t\t*/\n \t\tfor(int h=0 ; h<matrix.length-1 ;h++){\n \t\t\tif(list.get(h) != list.get(h+matrix.length+1)){\n \t\t\t//\tSystem.out.println(list.get(h));\n \t\t\t// System.out.println(list.get(h+matrix.length+1));\n \t\t\t\treturn false;\n \t\t\t}\n \t\t}\n \t\tlist.clear();\n \t}\n \treturn true;\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i,j,r,c;\n\t\tSystem.out.println(\"Enter no of Rows and column\");\n\t\tr = sc.nextInt();\n\t\tc = sc.nextInt();\n\t\tint arr[][] = new int[r][c];\n\t\tint res[][] = new int[c][r];\n\t\t\n\t\tSystem.out.println(\"Enter Element in matrix\");\n\t\tfor(i = 0;i < r;i++)\n\t\t{\n\t\t\tfor(j = 0;j < c;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"Enter Element: \");\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Transpose Matrix\");\n\t\tfor(i = 0;i < c;i++)\n\t\t{\n\t\t\tfor(j = 0;j < r;j++)\n\t\t\t{\n\t\t\t\tres[i][j] = arr[j][i];\n\t\t\t}\n\t\t}\n\t\tfor(i = 0;i < c;i++)\n\t\t{\n\t\t\tfor(j = 0;j < r;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \"+res[i][j]);\n\t\t\t}\n\t\t\tSystem.out.print(\" \\n \");\n\t\t}\n\t}", "@Test\n public void pruebasTDD() {\n assertEquals(\"\", TransformadorRomano.calcular(0));\n assertEquals(\"I\", TransformadorRomano.calcular(1));\n assertEquals(\"II\", TransformadorRomano.calcular(2));\n assertEquals(\"III\", TransformadorRomano.calcular(3));\n assertEquals(\"IV\", TransformadorRomano.calcular(4));\n assertEquals(\"V\", TransformadorRomano.calcular(5));\n assertEquals(\"VI\", TransformadorRomano.calcular(6));\n assertEquals(\"VII\", TransformadorRomano.calcular(7));\n assertEquals(\"VIII\", TransformadorRomano.calcular(8));\n assertEquals(\"IX\", TransformadorRomano.calcular(9));\n assertEquals(\"X\", TransformadorRomano.calcular(10));\n assertEquals(\"XI\", TransformadorRomano.calcular(11));\n assertEquals(\"XII\", TransformadorRomano.calcular(12));\n assertEquals(\"XIII\", TransformadorRomano.calcular(13));\n assertEquals(\"XIV\", TransformadorRomano.calcular(14));\n assertEquals(\"XV\", TransformadorRomano.calcular(15));\n assertEquals(\"XVI\", TransformadorRomano.calcular(16));\n assertEquals(\"XVII\", TransformadorRomano.calcular(17));\n assertEquals(\"XVIII\", TransformadorRomano.calcular(18));\n assertEquals(\"XIX\", TransformadorRomano.calcular(19));\n assertEquals(\"XX\", TransformadorRomano.calcular(20));// --> XX\n assertEquals(\"XXI\", TransformadorRomano.calcular(21));// --> XXI\n assertEquals(\"XXII\", TransformadorRomano.calcular(22));\n assertEquals(\"XXIII\", TransformadorRomano.calcular(23));// --> XXIII\n assertEquals(\"XXIV\", TransformadorRomano.calcular(24));// --> XXIV\n assertEquals(\"XXV\", TransformadorRomano.calcular(25));// --> XXV\n assertEquals(\"XXVI\", TransformadorRomano.calcular(26));// --> XXVI\n assertEquals(\"XXXIV\", TransformadorRomano.calcular(34));// --> XXXIV\n assertEquals(\"XXXIX\", TransformadorRomano.calcular(39));// --> XXXIX\n assertEquals(\"XL\", TransformadorRomano.calcular(40));// --> XL\n assertEquals(\"XLVIII\", TransformadorRomano.calcular(48));// --> XLVIII\n assertEquals(\"XLIX\", TransformadorRomano.calcular(49));// --> XLIX\n assertEquals(\"L\", TransformadorRomano.calcular(50));// --> L\n assertEquals(\"LI\", TransformadorRomano.calcular(51));// --> LI\n assertEquals(\"LVIII\", TransformadorRomano.calcular(58));// --> LVIII\n assertEquals(\"LIX\", TransformadorRomano.calcular(59));// --> LIX\n assertEquals(\"LX\", TransformadorRomano.calcular(60));// --> LX\n assertEquals(\"LXIII\", TransformadorRomano.calcular(63));// --> LXIII\n assertEquals(\"LXVIII\", TransformadorRomano.calcular(68));// --> LXVIII\n assertEquals(\"LXXXIX\", TransformadorRomano.calcular(89));// --> LXXXIX\n assertEquals(\"XC\", TransformadorRomano.calcular(90));// --> XC\n assertEquals(\"XCI\", TransformadorRomano.calcular(91));// --> XCI\n assertEquals(\"XCV\", TransformadorRomano.calcular(95));// --> XCV \n assertEquals(\"XCIX\", TransformadorRomano.calcular(99)); \n assertEquals(\"C\", TransformadorRomano.calcular(100));// --> C\n assertEquals(\"CIII\", TransformadorRomano.calcular(103));// --> CIII\n assertEquals(\"CXVII\", TransformadorRomano.calcular(117));// --> CXVII\n assertEquals(\"CLI\", TransformadorRomano.calcular(151)); \n assertEquals(\"CLXX\", TransformadorRomano.calcular(170));// --> CLXX\n assertEquals(\"CC\", TransformadorRomano.calcular(200));\n assertEquals(\"CCL\", TransformadorRomano.calcular(250));// --> CCL\n assertEquals(\"CCCXCIX\", TransformadorRomano.calcular(399));// --> CCCXCIX\n assertEquals(\"CD\", TransformadorRomano.calcular(400));// --> CD \n assertEquals(\"CDX\", TransformadorRomano.calcular(410));// --> CDX\n assertEquals(\"CDL\", TransformadorRomano.calcular(450));// --> CDL\n assertEquals(\"CDLXXX\", TransformadorRomano.calcular(480));// --> CDLXXX\n assertEquals(\"CDXCIX\", TransformadorRomano.calcular(499));// --> CDXCIX\n assertEquals(\"D\", TransformadorRomano.calcular(500));// --> D\n assertEquals(\"DX\", TransformadorRomano.calcular(510));// --> DX\n assertEquals(\"DLXXX\", TransformadorRomano.calcular(580));// --> DLXXX\n assertEquals(\"DXCIX\", TransformadorRomano.calcular(599));// --> DXCIX\n assertEquals(\"DC\", TransformadorRomano.calcular(600));// --> DC\n assertEquals(\"DCX\", TransformadorRomano.calcular(610));// --> DCX\n assertEquals(\"DCL\", TransformadorRomano.calcular(650));// --> DCL\n assertEquals(\"DCXCV\", TransformadorRomano.calcular(695));// --> DCXCV\n assertEquals(\"DCC\", TransformadorRomano.calcular(700));// --> DCC\n assertEquals(\"DCCC\", TransformadorRomano.calcular(800));// --> DCCC\n assertEquals(\"DCCCXL\", TransformadorRomano.calcular(840));// --> DCCCXL\n assertEquals(\"CM\", TransformadorRomano.calcular(900));// --> CM\n assertEquals(\"CML\", TransformadorRomano.calcular(950));// --> CML\n assertEquals(\"CMXCIX\", TransformadorRomano.calcular(999));// --> CMXCIX\n assertEquals(\"M\", TransformadorRomano.calcular(1000));// --> M\n\n }", "public void realizaroperacionesdosvariables (ArrayList <String> funcion) {\n\n\t\tif(calculounavariable !=null) {\n\t\t\tcalculounavariable.clear();\n\t\t}\n\n\t\t//recorremos arraylist\n\t\tfor(int i=0; i<funcion.size();i++) {\n\n\t\t\t//recorremos cadena de arraylist\n\t\t//\tfor (int x =0; x<funcion.get(i).length();x++) {\n\n\t\t\t\t//recorremos cadena de arraylist otra vez, solo para evitar error al final\n\t\t\t\tfor (int x=0, z =1; z<funcion.get(i).length();z++, x++) {\n\t\t\t\t\t//validar posicion final para que no de error\n\t\t\t\t\tif (z == funcion.get(i).length()) {\n\t\t\t\t\t\tz-=1;\n\t\t\t\t\t}\n\t\t\t\t\tif (x == funcion.get(i).length()) {\n\t\t\t\t\t\tx-=1;\n\t\t\t\t\t}\n\n\t\t\t\t\t//chequear si tiene mas de dos operaciones\n\t\t\t\t\tif (String.valueOf(funcion.get(i).charAt(x)).equals(\" \")) {\n\t\t\t\t\t\tif(String.valueOf(funcion.get(i).charAt(z)).equals(\"0\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"1\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"2\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"3\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"4\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"5\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"6\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"7\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"8\") || String.valueOf(funcion.get(i).charAt(z)).equals(\"9\") ) {\n\t\t\t\t\t\t\tcontadorespacios++;\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//agregar a array de mas de dosvariables\n\t\t\t\tif (contadorespacios> 1) {\n\n\t\t\t\t\tStringTokenizer tokens = new StringTokenizer(funcion.get(i));\n\t\t\t\t\tString tokensignosoperacion = tokens.nextToken();\n\t\t\t\t\tint operando1;\n\t\t\t\t\tint operando2;\n\n\t\t\t\t\twhile (tokens.hasMoreTokens()) {\n\n\t\t\t\t\t\tString siguientetoken = tokens.nextToken();\n\n\t\t\t\t\t\t//Chequear si el siguiente token para saber si es otra operacion, si lo es empezar a realizar calculos\n\t\t\t\t\t\tif (siguientetoken.equals(\"+\")|| siguientetoken.equals(\"-\")|| siguientetoken.equals(\"*\")|| siguientetoken.equals(\"/\")) {\n\t\t\t\t\t\t\ttokensignosoperacion = siguientetoken;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//realizar operacion si es suma\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"+\")) {\n\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\t\tresultadocalculosperaciones += Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//realizar operacion si es resta\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"-\")) {\n\t\t\t\t\t\t\tint contador =0;\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\t\t\t//condicion para realizar resta y darle el primer valor que encuentre para que no reste por cero la primera vez\n\t\t\t\t\t\t\t\tif (contador<1) {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones=Double.parseDouble(siguientetoken);\n\t\t\t\t\t\t\t\t\tcontador++;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones -= Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t\t}\n\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//realizar operacion si es multiplicacion\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"*\")) {\n\t\t\t\t\t\t\t//darle el valor de 1 para que la primera multiplicacion no sea 0\n\t\t\t\t\t\t\tresultadocalculosperaciones =1;\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\t\t\t\t\t\t\tresultadocalculosperaciones *= Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t//realizar operacion si es division\n\t\t\t\t\t\tif (tokensignosoperacion.equals(\"/\")) {\n\t\t\t\t\t\t\tint contador=0;\n\t\t\t\t\t\t\twhile(!siguientetoken.equals(\"+\")&& !siguientetoken.equals(\"-\")&& !siguientetoken.equals(\"*\")&& !siguientetoken.equals(\"/\") ) {\n\n\t\t\t\t\t\t\t\t//condicion para realizar division y darle el primer valor que encuentre\n\t\t\t\t\t\t\t\tif (contador<1) {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones=Double.parseDouble(siguientetoken);\n\t\t\t\t\t\t\t\t\tcontador++;\n\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\t\tresultadocalculosperaciones /= Double.parseDouble(siguientetoken);\n\n\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t//atrapar error de que no hay ningun siguiente token\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tsiguientetoken= tokens.nextToken();\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tcatch(NoSuchElementException errorelemento) {\n\t\t\t\t\t\t\t\tsiguientetoken = \"+\";\n\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\t//lista donde se van a almacenar los datos operados\n\t\t\t\t\tcalculounavariable.add(tokensignosoperacion + \" \"+String.valueOf(resultadocalculosperaciones));\n\t\t\t\t\tcontadorespacios=0;\n\t\t\t\t\tresultadocalculosperaciones=0;\n\n\t\t\t\t}\n\n\t\t\t\t//lista donde se van a almacenar si solo encuentra un dato para operar\n\t\t\t\telse {\n\t\t\t\t\tcalculounavariable.add(funcion.get(i));\n\t\t\t\t\tcontadorespacios=0;\n\t\t\t\t\tresultadocalculosperaciones=0;\n\n\t\t\t\t}\n\n\t\t}\n\t}", "public boolean ut()\n {\n //definir dados\n int lin, col;\n int i, j;\n boolean answer = true;\n \n //obter dimensoes \n lin = lines();\n col = columns();\n \n //verificar se tabela e' valida\n if(table == null)\n {\n System.out.println(\"ERRO: Tabela invalida. \");\n } //end\n else\n {\n //verificar se quantidade e' valida\n if(lin <= 0 || col <= 0)\n {\n System.out.println(\"ERRO: Quantidade invalida. \");\n } //end\n else\n {\n //verificar se e' quadrada\n if( lin == col )\n {\n for(i = 0; i < lin; i++)\n {\n for(j = 0; j < col; j++)\n {\n if(i > j)\n {\n answer = answer && (IO.getString(table[i][j]).equals((\"0\")));\n } //end\n } //end repetir\n } //end repetir\n } //end se\n } //end \n } //end se\n //retornar resposta\n return( answer );\n }", "public static void main(String[] args){\n java.util.Scanner read = new java.util.Scanner(System.in);\n\n char[][] one = {\n {' ',' ',' '},\n {' ','|',' '},\n {' ','|',' '},\n };\n char[][] two = {\n {' ','_',' '},\n {' ','_','|'},\n {'|','_',' '},\n };\n char[][] three = {\n {' ','_',' '},\n {' ','_','|'},\n {' ','_','|'},\n };\n char[][] four = {\n {' ',' ',' '},\n {'|','_','|'},\n {' ',' ','|'},\n };\n char[][] five = {\n {' ','_',' '},\n {'|','_',' '},\n {' ','_','|'},\n };\n char[][] six = {\n {' ','_',' '},\n {'|','_',' '},\n {'|','_','|'},\n };\n char[][] seven = {\n {' ','_',' '},\n {'|',' ','|'},\n {' ',' ','|'},\n };\n char[][] eighth = {\n {' ','_',' '},\n {'|','_','|'},\n {'|','_','|'},\n };\n char[][] nine = {\n {' ','_',' '},\n {'|','_','|'},\n {' ',' ','|'},\n };\n char[][] zero = {\n {' ','_',' '},\n {'|',' ','|'},\n {'|','_','|'},\n };\n\n double num = read.nextDouble();\n\n int k = 0;\n while(num>1 ) {\n num = num/10;\n k++;\n }\n char[][] canvas = new char[3][k*3];\n int[] dig = new int[k];\n for(int l= 0;l<k;l++){\n num = (num*10)-(((int)num)*10);\n dig[l] = (int)num;\n }\n\n\n //asignar para imprimir\n int w = 0;\n int o =0;\n //filas\n for(int n = 0;n<3;n++){\n w=0;\n o=0;\n //columnas\n while(w<k){\n //asignacion\n for(int j = 0;j<3;j++){\n if(dig[w] == 1) {\n canvas[n][o+j] = one[n][j];\n }\n else if(dig[w] == 2) {\n canvas[n][o+j] = two[n][j];\n }\n else if(dig[w] == 3) {\n canvas[n][o+j] = three[n][j];\n }\n else if(dig[w] == 4) {\n canvas[n][o+j] = four[n][j];\n }\n else if(dig[w] == 5) {\n canvas[n][o+j] = five[n][j];\n }\n else if(dig[w] == 6) {\n canvas[n][o+j] = six[n][j];\n }\n else if(dig[w] == 7) {\n canvas[n][o+j] = seven[n][j];\n }\n else if(dig[w] == 8) {\n canvas[n][o+j] = eighth[n][j];\n }\n else if(dig[w] == 9) {\n canvas[n][o+j] = nine[n][j];\n }\n else if(dig[w] == 0) {\n canvas[n][o+j] = zero[n][j];\n }\n }\n o+=3;\n w++;\n }\n }\n //print\n for(int u =0;u<3;u++)\n {\n for (int i = 0; i < k*3; i++) {\n System.out.print(canvas[u][i]);\n }\n System.out.println();\n }\n }", "public void tablero(){\r\n System.out.println(\" X \");\r\n System.out.println(\" 1 2 3\");\r\n System.out.println(\" | |\");\r\n //imprimir primera fila\r\n System.out.println(\" 1 \"+gato[0][0]+\" | \"+gato[0][1]+\" | \"+gato[0][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir segunda fila\r\n System.out.println(\"Y 2 \"+gato[1][0]+\" | \"+gato[1][1]+\" | \"+gato[1][2]+\" \");\r\n System.out.println(\" _____|_____|_____\");\r\n System.out.println(\" | |\");\r\n //imprimir tercera fila\r\n System.out.println(\" 3 \"+gato[2][0]+\" | \"+gato[2][1]+\" | \"+gato[2][2]+\" \");\r\n System.out.println(\" | |\");\r\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix transpose () { throw new RuntimeException(); }", "private static int[][] transpose4(int[][] grid) {\r\n int[][] transposed = new int[4][4];\r\n for (int i = 0; i < 4; i++) {\r\n for (int j = 0; j < 4; j++) {\r\n transposed[j][i] = grid[i][j];\r\n }\r\n }\r\n return transposed;\r\n }", "@Test\n\tpublic void testDiagonalIzquierda() {\n\n\t\ttablero.agregar(0, 0, jugador1);\n\t\ttablero.agregar(1, 2, jugador1);\n\t\ttablero.agregar(2, 1, jugador1);\n\n\t\tassertEquals(jugador1.getPieza(), reglas.getGanador(jugador1));\n\t}", "private String auxOperacion(int operando1, int operando2, String valor1, String valor2, int op) {\n if (ManejadorMemoria.isInt(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n System.out.println(valor1 + \" \" + valor2 + \" \" + (Integer.parseInt(valor1) > Integer.parseInt(valor2)));\n return (Integer.parseInt(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Integer.parseInt(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Integer.parseInt(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Integer.parseInt(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Integer.parseInt(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Integer.parseInt(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Integer.parseInt(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Integer.parseInt(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Integer.parseInt(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Integer.parseInt(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Integer.parseInt(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isFloat(operando1)) {\n if (ManejadorMemoria.isInt(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Integer.parseInt(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Integer.parseInt(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Integer.parseInt(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Integer.parseInt(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Integer.parseInt(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Integer.parseInt(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Integer.parseInt(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Integer.parseInt(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Integer.parseInt(valor2)) + \"\";\n }\n } else if (ManejadorMemoria.isFloat(operando2)) {\n switch (op) {\n case Codigos.SUMA:\n return (Double.parseDouble(valor1) + Double.parseDouble(valor2)) + \"\";\n case Codigos.RESTA:\n return (Double.parseDouble(valor1) - Double.parseDouble(valor2)) + \"\";\n case Codigos.MULT:\n return (Double.parseDouble(valor1) * Double.parseDouble(valor2)) + \"\";\n case Codigos.DIV:\n return (Double.parseDouble(valor1) / Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYOR:\n return (Double.parseDouble(valor1) > Double.parseDouble(valor2)) + \"\";\n case Codigos.MENOR:\n return (Double.parseDouble(valor1) < Double.parseDouble(valor2)) + \"\";\n case Codigos.MAYORIG:\n return (Double.parseDouble(valor1) >= Double.parseDouble(valor2)) + \"\";\n case Codigos.MENORIG:\n return (Double.parseDouble(valor1) <= Double.parseDouble(valor2)) + \"\";\n case Codigos.IGUAL:\n return (Double.parseDouble(valor1) == Double.parseDouble(valor2)) + \"\";\n case Codigos.DIFERENTE:\n return (Double.parseDouble(valor1) != Double.parseDouble(valor2)) + \"\";\n }\n }\n } else if (ManejadorMemoria.isString(operando1)) {\n return valor1 + valor2;\n } else if(ManejadorMemoria.isBool(operando1)){\n switch(op){\n case Codigos.AND:\n return (Boolean.parseBoolean(valor1) && Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.OR:\n return (Boolean.parseBoolean(valor1) || Boolean.parseBoolean(valor2)) + \"\";\n case Codigos.NOT:\n return (! Boolean.parseBoolean(valor1))+ \"\";\n }\n }\n\n return \"\";\n }", "BigDecimal[][] toTriangular();", "@Before\n public void setUp() {\n transpose = new Transpose();\n }", "@Test\r\n public void testCompliment1() {\r\n int actual[] = set1.getComplement();\r\n Assert.assertArrayEquals(new int[] { 100, 200, 456, 234, 890, 990, 100,\r\n 210, 500, 700, 900 }, actual);\r\n }", "public static boolean isTranspose(String i3label) {\r\n \t\tif (i3label == null || !i3label.equals(Labels.getLabel(\"paste.transpose\")))\r\n \t\t\treturn false;\r\n \t\treturn true;\r\n \t}", "public void\nsetTranspElt(SoNode node, int numtransp, \n\t\tFloatMemoryBuffer transp, SoColorPacker packer )\n{\n this.coinstate.transpnodeid = get_transp_node_id(node, numtransp, new FloatArray(0,transp));\n this.coinstate.transparray = new FloatArray(0,transp);\n this.coinstate.numtransp = numtransp;\n this.coinstate.stipplenum = SbBasic.SbClamp((int)(transp.getFloat(0) * 64.0f), 0, 64);\n\n this.coinstate.istransparent = false;\n for (int i = 0; i < numtransp; i++) {\n if (transp.getFloat(i) > 0.0f) {\n this.coinstate.istransparent = true;\n break;\n }\n }\n\n}", "@Test\n\tpublic void armarGananciasDeLosResultantes() {\n\t\t/*\n\t\t * me salieron 24 arboles, que me interesan los campos \n\t\t * NodeID_24 : para saber que hoja del arbol fue \n\t\t * PredictedProbability_2_24 : para saber que probabilidad de baja mas 2 fue \n\t\t * SampleAssignment_24 : para saber si fue tomado para test o train tengoq ue correr el script siguient para persistirlo en la DB\n\t\t * \n\t\t * los nombres de las variables van como anteriorlmente , el inicial no\n\t\t * tiene subindice, pero se lo cambi oy le pongo 0 cosa de que arranque\n\t\t * en 0\nIF (A_default_prob >= 0.025 AND clase_int=2) A_default_ganancia=7800. \nEXECUTE. \nRECODE A_default_ganancia (SYSMIS=-200). \nEXECUTE.\n\nSAVE TRANSLATE /TYPE=ODBC \n /CONNECT='DSN=dmkd-dmf;' \n /ENCRYPTED \n /MISSING=RECODE \n /SQL='CREATE TABLE historico_201503_default_tree_result (numero_de_cliente double , foto_mes double , A_default_node double , A_default_prob double, A_default_ganancia double )' \n /REPLACE \n /TABLE='SPSS_TEMP' \n /KEEP=numero_de_cliente, foto_mes, A_default_node, A_default_prob ,A_default_ganancia\n /SQL='INSERT INTO historico_201503_default_tree_result (numero_de_cliente, foto_mes, A_default_node, A_default_prob,A_default_ganancia) SELECT numero_de_cliente, foto_mes, A_default_node, A_default_prob,A_default_ganancia FROM SPSS_TEMP' \n /SQL='DROP TABLE SPSS_TEMP'. \nEXECUTE.\nDATASET CLOSE.\nEXECUTE.\n\n\nPredictedProbability_2_24\n\t\t * \n\t\t */\n\t\t// de 0 a 24\n\t\tString separator = System.getProperty(\"line.separator\");\n\t\tString outFolder = ArbolFileSources.userFolder + \"/Dropbox/julio_box/educacion/maestria_explotacion_datos_uba/materias/cuat_2_dm_finanzas/entregable/historia/\";\n\t\tString timeStampFolder = UtilidadesGenerales.getTimeStamp(null, null);\n\t\tStringBuilder build = new StringBuilder();\n\t\tfor (int i = 0; i < 25; i++) {\n\t\t\t\n\t\t\tString nombreProba = \"PredictedProbability_2_\"+i;\n\t\t\tString nombreGanancia= \"ganancia_\"+i;\n\t\t\tString nombreNodo= \"NodeID_\"+i;\n\t\t\tString nombreTrain= \"SampleAssignment_\"+i;\n\t\t\tString nombreTabla = \"corridaCiega_\"+i;\n\t\t\t\n\t\t\t/* recode de ganancia */\n\t\t\tbuild.append(\"IF (PredictedProbability_2_\").append(i).append(\" >= 0.025 AND clase_int=2 ) ganancia_\").append(i).append(\"=7800.\").append(separator);\n\t\t\tbuild.append(\"EXECUTE.\").append(separator);\n\t\t\tbuild.append(\"RECODE ganancia_\").append(i).append(\"(SYSMIS=-200).\").append(separator);\n\t\t\tbuild.append(\"EXECUTE.\").append(separator);\n\t\t\t\n\t\t\t \n\t\t\t/* save sql */\n\t\t\tbuild.append(\"SAVE TRANSLATE /TYPE=ODBC\").append(separator);\n\t\t\tbuild.append(\"/CONNECT='DSN=dmkd-dmf;'\").append(separator);\n\t\t\tbuild.append(\"/ENCRYPTED \").append(separator);\n\t\t\tbuild.append(\"/MISSING=RECODE \").append(separator);\n\t\t\tbuild.append(\"/SQL='CREATE TABLE \").append(nombreTabla).append(\" (numero_de_cliente double , foto_mes double , '+\").append(separator);\n\t\t\t\n\t\t\tbuild.append(\"' \").append(nombreProba).append(\" double , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreGanancia).append(\" double , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreNodo).append(\" double , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreTrain).append(\" double ) '\").append(separator);\n\t\t\t\n \n\t\t\tbuild.append(\"/REPLACE \").append(separator);\n\t\t\tbuild.append(\"/TABLE='SPSS_TEMP' \").append(separator);\n\t\t\tbuild.append(\"/KEEP=numero_de_cliente, foto_mes, \").append(separator);\n\t\t\tbuild.append(nombreProba).append(\" , \").append(separator);\n\t\t\tbuild.append(nombreGanancia).append(\" , \").append(separator);\n\t\t\tbuild.append(nombreNodo).append(\" , \").append(separator);\n\t\t\tbuild.append(nombreTrain).append(\" \").append(separator);\n\t\t\t\n\t\t\tbuild.append(\"/SQL='INSERT INTO \").append(nombreTabla).append(\" (numero_de_cliente, foto_mes, '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreProba).append(\" , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreGanancia).append(\" , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreNodo).append(\" , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreTrain).append(\" '+\").append(separator);\n\t\t\tbuild.append(\"' ) SELECT numero_de_cliente, foto_mes, '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreProba).append(\" , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreGanancia).append(\" , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreNodo).append(\" , '+\").append(separator);\n\t\t\tbuild.append(\"' \").append(nombreTrain).append(\" '+\").append(separator);\n\t\t\tbuild.append(\"' FROM SPSS_TEMP'\").append(separator);\n\t\t\t\n\t\t\tbuild.append(\"/SQL='DROP TABLE SPSS_TEMP'.\").append(separator); \n\t\t\tbuild.append(\"EXECUTE.\").append(separator).append(separator);\n\t\t\t\n\t\t\t\n\t\t}\n\t\tUtilidadesGenerales.writeToFile(build.toString(), \"UTF-8\", outFolder + timeStampFolder + \"_syntax_corridaCiega_.txt\");\n\t}", "public static String[][] acomodamiento(char direccion, String[][] cuadricula) {\n int numeroA;\n int espacios;\n for (int fila = 0; fila < 4; fila++) {\n\n for (int columna = 0; columna < 4; columna++) {\n\n switch (direccion) {\n case 'w':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia, cuando la encuentra mueve desde esa posicion hacia arriba\n del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[columna][fila].equals(\" \") == false) {\n for (int vecesMovimiento = columna; vecesMovimiento > 0; vecesMovimiento--) {\n //Verigica si hay un numero igual arriba suyo para sumarse\n if (cuadricula[vecesMovimiento][fila].equals(cuadricula[vecesMovimiento - 1][fila])) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de arriba\n */\n numeroA = Integer.parseInt(cuadricula[vecesMovimiento][fila].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[vecesMovimiento - 1][fila] = Integer.toString(numeroA);\n /* desde la parte de espacios = 4 - cuadricula[vecesMovimiento-1]... hasta el for solo es el numero de espacios agregados al numero que dara\n para que se mantenga posicionado junto con la cuadricula\n */\n espacios = 4 - cuadricula[vecesMovimiento - 1][fila].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[vecesMovimiento - 1][fila] += \" \";\n }\n cuadricula[vecesMovimiento][fila] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion arriba la sustituye la de abajo\n else if (cuadricula[vecesMovimiento - 1][fila].equals(\" \")) {\n cuadricula[vecesMovimiento - 1][fila] = cuadricula[vecesMovimiento][fila];\n cuadricula[vecesMovimiento][fila] = \" \";\n }\n }\n }\n break;\n\n case 's':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia,tomando en cuenta que inicia a contar de abajo para arriba, cuando la encuentra mueve\n desde esa posicion hacia abajo del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[3 - columna][fila].equals(\" \") == false) {\n //Empezamos el ciclo en una posicion de abajo de la matriz\n // llegaremos hasta 2 ya que sigue comparando con una posicion abajo extra gracias al +1\n for (int vecesMovimiento = 3 - columna; vecesMovimiento < 3; vecesMovimiento++) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de abajo\n */\n if (cuadricula[vecesMovimiento][fila].equals(cuadricula[vecesMovimiento + 1][fila])) {\n numeroA = Integer.parseInt(cuadricula[vecesMovimiento][fila].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[vecesMovimiento + 1][fila] = Integer.toString(numeroA);\n /* desde la parte de espacios = 4 - cuadricula[vecesMovimiento-1]... hasta el for solo es el numero de espacios agregados al numero que dara\n para que se mantenga posicionado junto con la cuadricula\n */\n espacios = 4 - cuadricula[vecesMovimiento + 1][fila].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[vecesMovimiento + 1][fila] += \" \";\n }\n cuadricula[vecesMovimiento][fila] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion abajo la sustituye la de arriba\n else if (cuadricula[vecesMovimiento + 1][fila].equals(\" \")) {\n cuadricula[vecesMovimiento + 1][fila] = cuadricula[vecesMovimiento][fila];\n cuadricula[vecesMovimiento][fila] = \" \";\n }\n }\n }\n break;\n\n case 'a':\n /*Creamos una condicion que empezara a mover los numeros si la posicion en esa parte\n de la matriz no esta vacia,tomando en cuenta que inicia a contar de izquierda a derecha, cuando la encuentra mueve\n desde esa posicion hacia la izquierda del cuadro y si se encuentra alguna parte igual la suma , si esta vacia la remplaza y si no se queda igual\n */\n if (cuadricula[fila][columna].equals(\" \") == false) {\n //Empezamos el ciclo en una posicion de la izquierda de la matriz, es decir inicializada en 0\n for (int vecesMovimiento = columna; vecesMovimiento > 0; vecesMovimiento--) {\n /* Como los numeros son iguales se toma uno, se convierte el string de esa parte de la cuadricula a\n numeroA la duplica y se la agrega a la posicion de izquierda\n */\n if (cuadricula[fila][vecesMovimiento].equals(cuadricula[fila][vecesMovimiento - 1])) {\n numeroA = Integer.parseInt(cuadricula[fila][vecesMovimiento].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[fila][vecesMovimiento - 1] = Integer.toString(numeroA);\n espacios = 4 - cuadricula[fila][vecesMovimiento - 1].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[fila][vecesMovimiento - 1] += \" \";\n }\n cuadricula[fila][vecesMovimiento] = \" \";\n } //Condicion que indica si hay un espacio vacio en una posicion izquierda la sustituye la de derecha\n else if (cuadricula[fila][vecesMovimiento - 1].equals(\" \")) {\n cuadricula[fila][vecesMovimiento - 1] = cuadricula[fila][vecesMovimiento];\n cuadricula[fila][vecesMovimiento] = \" \";\n }\n }\n }\n break;\n\n //Lo mismo establecido pero orientado a la derecha, y en lugar del -1 de los vectores lo pasamos como +1 siguiendo la estructura\n //de la opcion 's'\n case 'd':\n if (cuadricula[fila][3 - columna].equals(\" \") == false) {\n for (int vecesMovimiento = 3 - columna; vecesMovimiento < 3; vecesMovimiento++) {\n if (cuadricula[fila][vecesMovimiento].equals(cuadricula[fila][vecesMovimiento + 1])) {\n numeroA = Integer.parseInt(cuadricula[fila][vecesMovimiento].replaceAll(\" \", \"\"));\n numeroA += numeroA;\n cuadricula[fila][vecesMovimiento + 1] = Integer.toString(numeroA);\n espacios = 4 - cuadricula[fila][vecesMovimiento + 1].length();\n for (int barras = espacios; barras > 0; barras--) {\n cuadricula[fila][vecesMovimiento + 1] += \" \";\n }\n cuadricula[fila][vecesMovimiento] = \" \";\n } else if (cuadricula[fila][vecesMovimiento + 1].equals(\" \")) {\n cuadricula[fila][vecesMovimiento + 1] = cuadricula[fila][vecesMovimiento];\n cuadricula[fila][vecesMovimiento] = \" \";\n }\n }\n }\n break;\n\n }\n\n }\n }\n return cuadricula;\n }", "public void inicialAleatorio() {\n //aqui adiciona naquele vetor que de auxilio\n alocacao.add(Estados.ELETRICISTAS);\n alocacao.add(Estados.ELETRICISTAS2);\n alocacao.add(Estados.QUALIDADE);\n alocacao.add(Estados.QUALIDADE2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL2);\n alocacao.add(Estados.FABRICACAO_ESTRUTURAL3);\n alocacao.add(Estados.PLANEJAMENTO);\n\n //biblioteca que sorteia aleatoriamente os departamentos\n Collections.shuffle(alocacao);\n\n for (int i = 0; i < 4; i++) {\n matrix[1][i] = alocacao.get(i);\n\n }\n\n for (int i = 0; i < 4; i++) {\n matrix[3][i] = alocacao.get(i + 4);\n }\n\n }", "public void rePintarTablero() {\n int colorArriba = turnoComputadora != 0 ? turnoComputadora : -1;\n for (int x = 0; x < 8; x++) {\n for (int y = 0; y < 8; y++) {\n if (x % 2 == 0) {\n tablero[x][y].setFondo(y % 2 == 1 ? getNegro() : getBlanco());\n tablero[x][y].setResaltar(y % 2 == 1 ? getNegroResaltado() : getBlancoResaltado());\n } else {\n tablero[x][y].setFondo(y % 2 == 0 ? getNegro() : getBlanco());\n tablero[x][y].setResaltar(y % 2 == 0 ? getNegroResaltado() : getBlancoResaltado());\n }\n tablero[x][y].setBounds(anchoCuadro * (colorArriba == -1 ? x : (7 - x)), altoCuadro * (colorArriba == -1 ? y : (7 - y)), anchoCuadro, altoCuadro);\n }\n }\n }", "public void movR(){\r\n\t\t\r\n\t\tint aux1[][]= new int [3][1];\r\n\t\tint aux2[][]= new int [3][1];\r\n\t\tint aux3[][]= new int [3][1];\r\n\t\tint aux4[][]= new int [3][1];\r\n\t\t\r\n\t\tint aux5[][]= new int [3][1];\r\n\t\t\r\n\t\tint aux6[][]= new int [3][1];\r\n\t\t\r\n\t\tint aux7[][]= new int [3][1];\r\n\t\t\r\n\t\taux1=cloneC(5,2);\r\n\t\taux2=cloneC(1,2);\r\n\t\taux3=cloneC(4,2);\r\n\t\taux4=cloneC(3,0);\r\n\t\t\r\n\t\taux5=cloneF(2,0);\r\n\t\taux6=cloneF(2,1);\r\n\t\taux7=cloneF(2,2);\r\n\t\t\r\n\t\t\r\n\t\tthis.copiaEnColumnaUnaColumna(aux1, 1, 2);\r\n\t\tthis.copiaEnColumnaUnaColumna(aux2, 4, 2);\r\n\t\tthis.copiaEnColumnaUnaColumnaReves(aux3, 3, 0);\r\n\t\tthis.copiaEnColumnaUnaColumnaReves(aux4, 5, 2);\r\n\t\t\r\n\t\tthis.copiaEnColumnaUnaFila(aux5, 2, 2);\r\n\t\tthis.copiaEnColumnaUnaFila(aux6, 2, 1);\r\n\t\tthis.copiaEnColumnaUnaFila(aux7, 2, 0);\r\n\t\t\r\n\t}", "private void triFusion(int debut,int fin) {\n\t\tint[] tFusion = new int[fin-debut +1];\n\t\tint milieu = (debut +fin) / 2;\n\t\t//Indices des elements à comparer\n\t\tint i1 = debut,i2 = milieu +1;\n\t\t//indice de la prochaine case du tableau tFusion à remplir\n\t\tint iFusion = 0;\n\t\twhile (i1 <= milieu && i2 <= fin) {\n\t\t\tif(getTab()[i1] < getTab()[i2]) {\n\t\t\t\ttFusion[iFusion++] = getTab()[i1++];\n\t\t\t}else {\n\t\t\t\ttFusion[iFusion++] = getTab()[i2++];\n\t\t\t}\n\t\t}\n\t\tif(i1 > milieu) {\n\t\t\t//la 1ere tranche est epuisée\n\t\t\tfor(int i=i2;i<=fin;) {\n\t\t\t\ttFusion[iFusion++] = getTab()[i++];\n\t\t\t}\n\t\t}else {\n\t\t\t//la deuxieme tranche est epuisée\n\t\t\tfor(int i=i1;i<=milieu;) {\n\t\t\t\ttFusion[iFusion++] = getTab()[i++];\n\t\t\t}\n\t\t}\n\t\t//Copie TFusion dans t\n\t\tfor (int i= 0,j = debut ; i <=fin-debut;) {\n\t\t\tsetValueTab(j++, tFusion[i++]);\n\t\t}\n\t}", "private void arretes_fY(){\n\t\tthis.cube[49] = this.cube[46]; \n\t\tthis.cube[46] = this.cube[48];\n\t\tthis.cube[48] = this.cube[52];\n\t\tthis.cube[52] = this.cube[50];\n\t\tthis.cube[50] = this.cube[49];\n\t}", "public void setValuesJTableResultados(){\n int alternativas = views.useController().getProblema().getAlternativas();\n TableModelPersonalizado modelo = new TableModelPersonalizado(alternativas, 1);\n jTableVectorResultados.setModel(modelo);\n jTableVectorResultados.setEnabled(false);\n jTableVectorResultados.getTableHeader().setResizingAllowed(false);\n jTableVectorResultados.getTableHeader().setReorderingAllowed(false);\n //HEADERS DE LA TABLA\n jTableVectorResultados.getColumnModel().getColumn(0).setHeaderValue(\" \"); \n //CONTENIDO DE LA TABLA\n for(int f = 0; f < alternativas; f++){\n modelo.setValueAt(df.format(views.useController().getProblema().getResult().getPriorityVector().get(f, 0)), f, 0);\n } \n }", "public void transpose(int steps) {\n\t\tfor ( Note n : this.alMelodie )\n\t\t\tn.transpose(steps);\n\t}", "public RelNode genScriptPlan(\n HiveParserASTNode trfm, HiveParserQB qb, List<RexNode> operands, RelNode input)\n throws SemanticException {\n boolean isAllRexRef = operands.stream().allMatch(node -> node instanceof RexInputRef);\n int[] transformFieldIndices;\n if (!isAllRexRef) {\n input =\n LogicalProject.create(\n input, Collections.emptyList(), operands, (List<String>) null);\n transformFieldIndices = IntStream.range(0, operands.size()).toArray();\n HiveParserRowResolver rowResolver = new HiveParserRowResolver();\n // record the column info for the project node\n for (int i = 0; i < operands.size(); i++) {\n ColumnInfo oColInfo =\n new ColumnInfo(\n getColumnInternalName(i),\n HiveParserTypeConverter.convert(operands.get(i).getType()),\n null,\n false);\n rowResolver.put(null, getColumnInternalName(i), oColInfo);\n }\n relToRowResolver.put(input, rowResolver);\n } else {\n transformFieldIndices =\n operands.stream()\n .flatMapToInt(node -> IntStream.of(((RexInputRef) node).getIndex()))\n .toArray();\n }\n\n ArrayList<ColumnInfo> inputSchema = relToRowResolver.get(input).getColumnInfos();\n\n // If there is no \"AS\" clause, the output schema will be \"key,value\"\n ArrayList<ColumnInfo> outputCols = new ArrayList<>();\n int inputSerDeNum = 1, inputRecordWriterNum = 2;\n int outputSerDeNum = 4, outputRecordReaderNum = 5;\n int outputColsNum = 6;\n boolean outputColNames = false, outputColSchemas = false;\n int execPos = 3;\n boolean defaultOutputCols = false;\n\n // Go over all the children\n if (trfm.getChildCount() > outputColsNum) {\n HiveParserASTNode outCols = (HiveParserASTNode) trfm.getChild(outputColsNum);\n if (outCols.getType() == HiveASTParser.TOK_ALIASLIST) {\n outputColNames = true;\n } else if (outCols.getType() == HiveASTParser.TOK_TABCOLLIST) {\n outputColSchemas = true;\n }\n }\n\n // If column type is not specified, use a string\n if (!outputColNames && !outputColSchemas) {\n // output schema will be \"key, value\"\n String[] outputAlias = new String[] {\"key\", \"value\"};\n for (int i = 0; i < outputAlias.length; i++) {\n String intName = getColumnInternalName(i);\n ColumnInfo colInfo =\n new ColumnInfo(intName, TypeInfoFactory.stringTypeInfo, null, false);\n colInfo.setAlias(outputAlias[i]);\n outputCols.add(colInfo);\n }\n defaultOutputCols = true;\n } else {\n // column name or type is specified\n HiveParserASTNode collist = (HiveParserASTNode) trfm.getChild(outputColsNum);\n int ccount = collist.getChildCount();\n Set<String> colAliasNamesDuplicateCheck = new HashSet<>();\n for (int i = 0; i < ccount; i++) {\n ColumnInfo colInfo =\n getColumnInfoInScriptTransform(\n (HiveParserASTNode) collist.getChild(i),\n outputColSchemas,\n i,\n colAliasNamesDuplicateCheck);\n outputCols.add(colInfo);\n }\n }\n\n // input schema info\n StringBuilder inpColumns = new StringBuilder();\n StringBuilder inpColumnTypes = new StringBuilder();\n for (int i = 0; i < transformFieldIndices.length; i++) {\n if (i != 0) {\n inpColumns.append(\",\");\n inpColumnTypes.append(\",\");\n }\n inpColumns.append(inputSchema.get(transformFieldIndices[i]).getInternalName());\n inpColumnTypes.append(\n inputSchema.get(transformFieldIndices[i]).getType().getTypeName());\n }\n\n // output schema info\n StringBuilder outColumns = new StringBuilder();\n StringBuilder outColumnTypes = new StringBuilder();\n List<RelDataType> outDataTypes = new ArrayList<>();\n List<String> outColNames = new ArrayList<>();\n HiveParserRowResolver scriptRR = new HiveParserRowResolver();\n RelDataTypeFactory dtFactory = cluster.getRexBuilder().getTypeFactory();\n for (int i = 0; i < outputCols.size(); i++) {\n if (i != 0) {\n outColumns.append(\",\");\n outColumnTypes.append(\",\");\n }\n\n outColumns.append(outputCols.get(i).getInternalName());\n outColumnTypes.append(outputCols.get(i).getType().getTypeName());\n\n scriptRR.put(\n qb.getParseInfo().getAlias(), outputCols.get(i).getAlias(), outputCols.get(i));\n\n outDataTypes.add(HiveParserUtils.toRelDataType(outputCols.get(i).getType(), dtFactory));\n outColNames.add(outputCols.get(i).getInternalName());\n }\n\n String serdeName = LazySimpleSerDe.class.getName();\n int fieldSeparator = Utilities.tabCode;\n if (HiveConf.getBoolVar(hiveConf, HiveConf.ConfVars.HIVESCRIPTESCAPE)) {\n fieldSeparator = Utilities.ctrlaCode;\n }\n\n // Input and Output Serdes\n HiveParserBaseSemanticAnalyzer.SerDeClassProps inSerDeClassProps;\n if (trfm.getChild(inputSerDeNum).getChildCount() > 0) {\n // use user specified serialize class and properties\n HiveParserASTNode inputSerDeNode = (HiveParserASTNode) trfm.getChild(inputSerDeNum);\n inSerDeClassProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.analyzeSerDeInfo(\n (HiveParserASTNode) inputSerDeNode.getChild(0),\n inpColumns.toString(),\n inpColumnTypes.toString(),\n false);\n } else {\n // use default serialize class and properties\n Map<String, String> inSerdeProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.getDefaultSerDeProps(\n serdeName,\n String.valueOf(fieldSeparator),\n inpColumns.toString(),\n inpColumnTypes.toString(),\n false,\n true);\n inSerDeClassProps =\n new HiveParserBaseSemanticAnalyzer.SerDeClassProps(serdeName, inSerdeProps);\n }\n HiveParserBaseSemanticAnalyzer.SerDeClassProps outSerDeClassProps;\n if (trfm.getChild(outputSerDeNum).getChildCount() > 0) {\n // use user specified deserialize class and properties\n HiveParserASTNode outSerDeNode = (HiveParserASTNode) trfm.getChild(outputSerDeNum);\n outSerDeClassProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.analyzeSerDeInfo(\n (HiveParserASTNode) outSerDeNode.getChild(0),\n outColumns.toString(),\n outColumnTypes.toString(),\n false);\n } else {\n // use default deserialize class and properties\n Map<String, String> outSerdeProps =\n HiveParserBaseSemanticAnalyzer.SerDeClassProps.getDefaultSerDeProps(\n serdeName,\n String.valueOf(fieldSeparator),\n outColumns.toString(),\n outColumnTypes.toString(),\n defaultOutputCols,\n true);\n outSerDeClassProps =\n new HiveParserBaseSemanticAnalyzer.SerDeClassProps(serdeName, outSerdeProps);\n }\n\n // script input record writer\n Tree recordWriterASTNode = trfm.getChild(inputRecordWriterNum);\n String inRecordWriter =\n recordWriterASTNode.getChildCount() == 0\n ? TextRecordWriter.class.getName()\n : unescapeSQLString(recordWriterASTNode.getChild(0).getText());\n\n // script output record readers\n Tree recordReaderASTNode = trfm.getChild(outputRecordReaderNum);\n String outRecordReader =\n recordReaderASTNode.getChildCount() == 0\n ? TextRecordReader.class.getName()\n : unescapeSQLString(recordReaderASTNode.getChild(0).getText());\n\n RelDataType rowDataType = dtFactory.createStructType(outDataTypes, outColNames);\n\n String script = unescapeSQLString(trfm.getChild(execPos).getText());\n\n ScriptTransformIOInfo inputOutSchema =\n new ScriptTransformIOInfo(\n inSerDeClassProps.getSerdeClassName(),\n inSerDeClassProps.getProperties(),\n outSerDeClassProps.getSerdeClassName(),\n outSerDeClassProps.getProperties(),\n inRecordWriter,\n outRecordReader,\n new JobConfWrapper(new JobConf(hiveConf)));\n\n LogicalScriptTransform scriptTransform =\n LogicalScriptTransform.create(\n input, transformFieldIndices, script, inputOutSchema, rowDataType);\n\n relToHiveColNameCalcitePosMap.put(scriptTransform, buildHiveToCalciteColumnMap(scriptRR));\n relToRowResolver.put(scriptTransform, scriptRR);\n\n // todo\n // Add URI entity for transform script. script assumed t be local unless downloadable\n return scriptTransform;\n }", "@Test\n public void testSolution() {\n assertArrayEquals(new int[]{3,2,1} , new Task().reverse3( new int[]{1, 2, 3}));\n assertArrayEquals(new int[]{5, 11, 9} , new Task().reverse3( new int[]{9, 11, 5}));\n assertArrayEquals(new int[]{7, 0, 0} , new Task().reverse3( new int[]{0, 0, 7}));\n assertArrayEquals(new int[]{2, 1, 2} , new Task().reverse3( new int[]{2, 1, 2}));\n assertArrayEquals(new int[]{1, 2, 1} , new Task().reverse3( new int[]{1, 2, 1}));\n assertArrayEquals(new int[]{2, 11, 3} , new Task().reverse3( new int[]{3, 11, 2}));\n assertArrayEquals(new int[]{7, 2, 3} , new Task().reverse3( new int[]{3, 2, 7}));\n\n }", "private static int[][] transpose(int[][] array) {\n if (array.length == 0 || array[0].length == 0)\n return array;\n int[][] transposed = new int[array[0].length][];\n for (int row = 0; row < array[0].length; row++)\n transposed[row] = new int[array.length];\n for (int row = 0; row < array[0].length; row++)\n for (int col = 0; col < array.length; col++)\n transposed[row][col] = array[col][row];\n return transposed;\n }", "private static ArrayList<Integer> expressionEvaluator(Expression expression, Table tableToApplySelectionOn) throws IOException, ParseException {\n\t\t\n\t\t\n\t\t\n\t\t// this is the actual list of indices that stores the indices of the tuples that satisfy all the conditions\n\t\tArrayList<Integer> listOfIndices = new ArrayList<Integer>();\n\n\t\t// this Table contains the resultant table after applying selection operation\n\t\tTable resultantTable = new Table(tableToApplySelectionOn);\n\t\tresultantTable.tableName = \"resultTable\";\n\n\t\t// the following conditions are to evaluate the EQUAL expression\n\t\tif (expression instanceof EqualsTo) {\n\t\t\t// this extracts the equal to clause in the WHERE clause\n\t\t\tEqualsTo equalsExpression = (EqualsTo) expression;\n\t\t\t\n\t\t\t// this extracts the left and the right expressions in the equal to clause\n\t\t\tExpression leftExpression = ((Expression) equalsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) equalsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(equalsExpression, tableToApplySelectionOn);\n\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\t//System.out.println(tableToApplySelectionOn);\n\t\t\t\t//System.out.println(tableToApplySelectionOn.columnDescriptionList);\n\t\t\t\t//System.out.println(tableToApplySelectionOn.columnIndexMap);\n\t\t\t\t/*System.out.println(leftVal);\n\t\t\t\tSystem.out.println(tableToApplySelectionOn.columnIndexMap.get(leftVal));\n\t\t\t\t*/\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\t\t\t\t\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"string\") || type.equalsIgnoreCase(\"char\") || type.equalsIgnoreCase(\"varchar\")) {\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\tif (array[index].equals(rightArray[rightIndex])) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif (array[index].equals(rightArray[rightIndex].substring(1,rightArray[rightIndex].length() - 1))) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) == Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0]) && Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1]) && Integer.parseInt(leftDate[2]) == Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\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} else if (expression instanceof NotEqualsTo) {\n\n\t\t\n\t\t\t\n\t\t\t// this extracts the equal to clause in the WHERE clause\n\t\t\tNotEqualsTo equalsExpression = (NotEqualsTo) expression;\n\t\t\t\n\t\t\t// this extracts the left and the right expressions in the equal to clause\n\t\t\tExpression leftExpression = ((Expression) equalsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) equalsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(equalsExpression, tableToApplySelectionOn);\n\n\t\t\t} else {\n\t\t\n\t\t\t\t\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\t\t\t\t\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"string\") || type.equalsIgnoreCase(\"char\") || type.equalsIgnoreCase(\"varchar\")) {\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\tif (!array[index].equals(rightArray[rightIndex])) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\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\n\t\t\t\t\t\t\tif (!array[index].equals(rightArray[rightIndex].substring(1,rightArray[rightIndex].length() - 1))) {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) != Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) != Integer.parseInt(rightDate[0]) && Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1]) && Integer.parseInt(leftDate[2]) != Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\n\t\t}\n\n\t\telse if (expression instanceof GreaterThanEquals) {\n\t\t\t\n\t\t\tGreaterThanEquals greaterThanEqualsExpression = (GreaterThanEquals) expression;\n\t\t\tExpression leftExpression = ((Expression) greaterThanEqualsExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) greaterThanEqualsExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(greaterThanEqualsExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) >= Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) < Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) < Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) < Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/*if(tableToApplySelectionOn.tableName.equalsIgnoreCase(\"lineitem\") && expression.toString().equals(\"lineitem.receiptdate >= date('1994-01-01')\")){\n\t\t\t\t\t//System.out.println(listOfIndices);\n\t\t\t\t\t}*/\n\t\t\t}\n\t\t} else if (expression instanceof GreaterThan) {\n\t\t\t\n\t\t\tGreaterThan greaterThanExpression = (GreaterThan) expression;\n\t\t\tExpression leftExpression = ((Expression) greaterThanExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) greaterThanExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(greaterThanExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) > Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) < Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) < Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) <= Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t\telse if (expression instanceof MinorThan) {\n\t\t\tMinorThan minorThanExpression = (MinorThan) expression;\n\n\t\t\tExpression leftExpression = ((Expression) minorThanExpression.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) minorThanExpression.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression|| rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(minorThanExpression, tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) < Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\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\tif (Integer.parseInt(leftDate[0]) > Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) > Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) >= Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\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\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\t/*if(tableToApplySelectionOn.tableName.equalsIgnoreCase(\"lineitem\") && expression.toString().equals(\"lineitem.commitdate < lineitem.receiptdate\")){\n\t\t\t\t\tSystem.out.println(listOfIndices);\n\t\t\t\t\t}*/\n\t\t\t}\n\t\t}\n\t\telse if (expression instanceof MinorThanEquals) {\n\t\t\t\n\t\t\tMinorThanEquals minorEqualsThan = (MinorThanEquals) expression;\n\t\t\tExpression leftExpression = ((Expression) minorEqualsThan.getLeftExpression());\n\t\t\tExpression rightExpression = ((Expression) minorEqualsThan.getRightExpression());\n\n\t\t\tif (leftExpression instanceof BinaryExpression || rightExpression instanceof BinaryExpression) {\n\t\t\t\tlistOfIndices = alegbricExpressionEvaluator(minorEqualsThan,tableToApplySelectionOn);\n\t\t\t} else {\n\t\t\t\tString leftVal = leftExpression.toString();\n\t\t\t\tString rightVal = rightExpression.toString();\n\t\t\t\tString type = tableToApplySelectionOn.columnDescriptionList.get(tableToApplySelectionOn.columnIndexMap.get(leftVal)).getColDataType().getDataType();\n\n\t\t\t\tString tuple = null;\n\t\t\t\tint tupleNo = 0;\n\n\t\t\t\twhile ((tuple = tableToApplySelectionOn.returnTuple()) != null) {\n\t\t\t\t\ttupleNo++;\n\t\t\t\t\tString array[] = tuple.split(\"\\\\|\");\n\t\t\t\t\tint index = tableToApplySelectionOn.columnIndexMap.get(leftVal);\n\n\t\t\t\t\tString[] rightArray = null;\n\t\t\t\t\tint rightIndex = 0;\n\n\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\trightIndex = tableToApplySelectionOn.columnIndexMap.get(rightVal);\n\t\t\t\t\t\trightArray = array;\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightArray = new String[1];\n\t\t\t\t\t\trightArray[0] = rightVal;\n\t\t\t\t\t}\n\n\t\t\t\t\tif (type.equalsIgnoreCase(\"int\") || type.equalsIgnoreCase(\"decimal\")) {\n\n\t\t\t\t\t\tif (Double.parseDouble(array[index]) <= Double.parseDouble(rightArray[rightIndex])) {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (type.equalsIgnoreCase(\"date\")) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tString leftDate[] = array[index].split(\"-\");\n\t\t\t\t\t\t\n\t\t\t\t\t\tString rightDate[] = null;\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (tableToApplySelectionOn.columnIndexMap.containsKey(rightVal)) {\n\t\t\t\t\t\t\trightDate = rightArray[rightIndex].split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\trightDate = rightArray[rightIndex].substring(6, rightArray[rightIndex].length() - 2).split(\"-\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tif (Integer.parseInt(leftDate[0]) > Integer.parseInt(rightDate[0])) {\n\n\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[0]) == Integer.parseInt(rightDate[0])) {\n\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[1]) > Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t} else if (Integer.parseInt(leftDate[1]) == Integer.parseInt(rightDate[1])) {\n\t\t\t\t\t\t\t\tif (Integer.parseInt(leftDate[2]) > Integer.parseInt(rightDate[2])) {\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tlistOfIndices.add(tupleNo);\n\t\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} else if (expression instanceof AndExpression) {\n\t\t\t\n\t\t\tAndExpression andExpression = (AndExpression) expression;\n\t\t\tExpression leftVal = ((Expression) andExpression.getLeftExpression());\n\t\t\tExpression rightVal = ((Expression) andExpression.getRightExpression());\n\n\t\t\tArrayList<Integer> leftArr = expressionEvaluator(leftVal, tableToApplySelectionOn);\n\t\t\tArrayList<Integer> rightArr = expressionEvaluator(rightVal, tableToApplySelectionOn);\n\n\t\t\tArrayList<Integer> set = new ArrayList<Integer>();\n\t\t\tfor (int i : leftArr) {\n\t\t\t\tif (rightArr.contains(i)) {\n\t\t\t\t\tset.add(i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tlistOfIndices = set;\n\t\t}\n\n\t\telse if (expression instanceof OrExpression) {\n\t\t\t\n\t\t\t\n\t\t\tOrExpression orExpression = (OrExpression) expression;\n\t\t\tExpression leftVal = ((Expression) orExpression.getLeftExpression());\n\t\t\tExpression rightVal = ((Expression) orExpression.getRightExpression());\n\n\t\t\tArrayList<Integer> leftArr = expressionEvaluator(leftVal, tableToApplySelectionOn);\n\t\t\tArrayList<Integer> rightArr = expressionEvaluator(rightVal, tableToApplySelectionOn);\n\t\t\t\t\t\t\n\t\t\tTreeSet<Integer> set = new TreeSet<Integer>();\n\t\t\t\n\t\t\tfor (int i : leftArr) {\n\t\t\t\tset.add(i);\n\t\t\t}\n\t\t\tfor (int i : rightArr) {\n\t\t\t\tset.add(i);\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i : set) {\n\t\t\t\tlistOfIndices.add(i);\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}\n\t\telse if (expression instanceof Parenthesis){\n\t\t\t\n\t\t\tArrayList<Integer> expArr = expressionEvaluator(((Parenthesis)expression).getExpression(), tableToApplySelectionOn);\n\t\t\t\n\t\t\tfor(int i:expArr){\n\t\t\t\tlistOfIndices.add(i);\n\t\t\t}\n\t\t}\n\n\t\t\n\t\treturn listOfIndices;\n\t}", "public void calculEtatSuccesseur() { \r\n\t\tboolean haut = false,\r\n\t\t\t\tbas = false,\r\n\t\t\t\tgauche = false,\r\n\t\t\t\tdroite = false,\r\n\t\t\t\thautGauche = false,\r\n\t\t\t\tbasGauche = false,\r\n\t\t\t\thautDroit = false,\r\n\t\t\t\tbasDroit = false;\r\n\t\t\r\n\t\tString blanc = \" B \";\r\n\t\tString noir = \" N \";\r\n\t\tfor(Point p : this.jetonAdverse()) {\r\n\t\t\tString [][]plateau;\r\n\t\t\tplateau= copieEtat();\r\n\t\t\tint x = (int) p.getX();\r\n\t\t\tint y = (int) p.getY();\r\n\t\t\tif(this.joueurActuel.getCouleur() == \"noir\") { //dans le cas ou le joueur pose un pion noir\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) { //on regarde uniquement le centre du plateaau \r\n\t\t\t\t\t//on reinitialise x,y et plateau a chaque étape\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tdroite = getDroite(x,y,blanc);\r\n\t\t\t\t\thaut = getHaut(x, y, blanc);\r\n\t\t\t\t\tbas = getBas(x, y, blanc);\r\n\t\t\t\t\tgauche = getGauche(x, y, blanc);\r\n\t\t\t\t\thautDroit = getDiagHautdroite(x, y, blanc);\r\n\t\t\t\t\thautGauche = getDiagHautGauche(x, y, blanc);\r\n\t\t\t\t\tbasDroit = getDiagBasDroite(x, y, blanc);\r\n\t\t\t\t\tbasGauche = getDiagBasGauche(x, y, blanc);\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y-1]==noir) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(droite) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//1\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==noir) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(bas) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==noir) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(gauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= noir;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(haut) {\r\n\t\t\t\t\t\t\t//System.out.println(\"regarde en dessous\");\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==noir) {\r\n\t\t\t\t\t\tif(hautGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(basGauche) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit : OK!\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==noir) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(hautDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==noir) {\r\n\t\t\t\t\t\tif(basDroit) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == blanc) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = noir;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=noir;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, noir, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t\t//System.out.println(\"ajouté!\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\telse {//si le joueur actuel a les pions blanc\r\n\t\t\t\tif(p.getY()>0 && p.getY()<plateau[0].length-1 && p.getX()>0 && p.getX()<plateau.length-1) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x][y-1]==blanc) {//regarder si à gauche du pion blanc il y a un pion noir\r\n\t\t\t\t\t\t//on regarde si il est possible de poser un pion noir à droite\r\n\t\t\t\t\t\tif(getDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t}//1.1\r\n\t\t\t\t\t\r\n\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x-1][y]==blanc) {//regardre au dessus si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getBas(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//2.2\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(this.plateau[x][y+1]==blanc) { //regarde a droite si le pion est noir\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getGauche(x, y, noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//3.3\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\tif(this.plateau[x+1][y] == blanc) {\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif(getHaut(x, y, noir)) {\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//4.4\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautgauche\r\n\t\t\t\t\tif(this.plateau[x+1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]= blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//5.5\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagbasGauche\r\n\t\t\t\t\tif(this.plateau[x-1][y+1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasGauche(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty--;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//6.6\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diaghautDroit\r\n\t\t\t\t\tif(this.plateau[x+1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagHautdroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx--;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t}//7.7\r\n\t\t\t\t\t\r\n\t\t\t\t\tx = (int) p.getX();\r\n\t\t\t\t\ty = (int) p.getY();\r\n\t\t\t\t\tplateau= copieEtat();\r\n\t\t\t\t\t//diagBasDroit\r\n\t\t\t\t\tif(this.plateau[x-1][y-1]==blanc) {\r\n\t\t\t\t\t\tif(getDiagBasDroite(x,y,noir)) {\r\n\t\t\t\t\t\t\twhile(plateau[x][y] == noir) {\r\n\t\t\t\t\t\t\t\tplateau[x][y] = blanc;\r\n\t\t\t\t\t\t\t\tx++;\r\n\t\t\t\t\t\t\t\ty++;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tplateau[x][y]=blanc;\r\n\t\t\t\t\t\t\tplateau=pionPosé(x, y, blanc, plateau);\r\n\t\t\t\t\t\t\tthis.setSuccesseur(new EtatReversi(this, plateau));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}//8.8\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void sacaOperadores(Stack PilaNumeros, Stack PilaOperadores, String operador) {\n //Todas las funciones que se manejan como paréntesis de apertura\n final String parentesis = \"( ln log abs sen sin cos tan sec csc cot sgn asen asin acos \"\n + \"atan asec acsc acot senh sinh cosh tanh sech csch coth \"\n + \"sqrt round asenh asinh acosh atanh asech acsch acoth\";\n\n //mientras la pila no esté vacía, el operador que sigue no sea un \n //paréntesis de apertura, la longitud del operador sea uno (para que sea un operador), y la prioridad indique\n //que tiene que seguir sacando elementos\n while (!PilaOperadores.empty() && !parentesis.contains((String) PilaOperadores.peek())\n && ((String) PilaOperadores.peek()).length() == 1\n && prioridad(((String) PilaOperadores.peek()).charAt(0)) >= prioridad(operador.charAt(0))) {\n sacaOperador(PilaNumeros, PilaOperadores); //Saca el siguiente operador\n }\n PilaOperadores.push(operador);//Al final mete el nuevo operador luego de sacar todo lo que tenía que sacar.\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner (System.in);\r\n\t\t\r\n\t\tint matriz[][]=new int[4][4];\r\n\t\tmatriz[0][0] = 1;\r\n\t\tmatriz[0][1] = 2;\r\n\t\tmatriz[0][2] = 3;\r\n\t\tmatriz[0][3] = 4;\r\n\t\tmatriz[1][0] = 5;\r\n\t\tmatriz[1][1] = 6;\r\n\t\tmatriz[1][2] = 7;\r\n\t\tmatriz[1][3] = 8;\r\n\t\tmatriz[2][0] = 9;\r\n\t\tmatriz[2][1] = 10;\r\n\t\tmatriz[2][2] = 11;\r\n\t\tmatriz[2][3] = 12;\r\n\t\tmatriz[3][0] = 13;\r\n\t\tmatriz[3][1] = 14;\r\n\t\tmatriz[3][2] = 15;\r\n\t\tmatriz[3][3] = 16;\r\n\t\t\r\n\t\t\r\n\t\tint vectorfila[]=new int[4];\r\n\t\tint vectorcolumna[]=new int[4];\r\n\t\t\r\n\t\t\r\n\t\tvectorfila[0]=matriz[0][0]+matriz[0][1]+matriz[0][2]+matriz[0][3];\r\n\t\tvectorfila[1]=matriz[1][0]+matriz[1][1]+matriz[1][2]+matriz[1][3];\r\n\t\tvectorfila[2]=matriz[2][0]+matriz[2][1]+matriz[2][2]+matriz[2][3];\r\n\t\tvectorfila[3]=matriz[3][0]+matriz[3][1]+matriz[3][2]+matriz[3][3];\r\n\t\t\r\n\t\tvectorcolumna[0]=matriz[0][0]+matriz[1][0]+matriz[2][0]+matriz[3][0];\r\n\t\tvectorcolumna[1]=matriz[0][1]+matriz[1][1]+matriz[2][1]+matriz[3][1];\r\n\t\tvectorcolumna[2]=matriz[0][2]+matriz[1][2]+matriz[2][2]+matriz[3][2];\r\n\t\tvectorcolumna[3]=matriz[0][3]+matriz[1][3]+matriz[2][3]+matriz[3][3];\r\n\t\t\r\n\t\tsc.close();\r\n\t}", "public TreeTransformer collinizerEvalb()\n/* */ {\n/* 168 */ return collinizer();\n/* */ }", "public static void generar_arbol(ArrayList columna,ArrayList valores,Double infodeT,ArrayList arbol, int profundidad) throws SQLException{\n\t\tHashMap mapa=new HashMap();\n\t\tArrayList nodo=new ArrayList();\n\t\tArrayList valores_aux=new ArrayList();\n\t\tArrayList valores_col_decision=new ArrayList();\n\t\tint ultimo_valor=0;\n\t\tint ultima_columna=0;\n\t\tmapa=DataBase.ParseoDB(columna, valores);\n\t\tSystem.out.println(\"columna: \"+columna);\n\t\tSystem.out.println(\"valores:\"+valores);\n\t\tvalores_col_decision=DataBase.getCantidadValores(columna, valores);\n\t\tnodo=calcular_nodo(mapa,valores_col_decision);\n\t\tinfodeT=Double.parseDouble(nodo.get(1).toString());\n\t\tif(infodeT != 0 && !nodo.get(0).equals(\"\")){\n\t\t\t//if(!nodo.get(0).equals(\"\")){\n\t\t\t\tcolumna.add(nodo.get(0));\n\t\t\t\t//arbol.add(\",\");\n\t\t\t\tarbol.add(nodo.get(0));\n\t\t\t\n\t\t\t\tvalores_aux=DataBase.getValoresCol(nodo.get(0).toString());\n\t\t\t\tarbol.add(\"@\");\n\t\t\t//}\n\t\t\tint aux_modificar_arbol;\n\t\t\twhile(!valores_aux.isEmpty()){\n\t\t\t\tarbol.add(profundidad);\n\t\t\t\tvalores.add(valores_aux.get(0));\n\t\t\t\tarbol.add(valores_aux.get(0));\n\t\t\t\tvalores_aux.remove(0);\n\t\t\t\tgenerar_arbol(columna, valores, infodeT,arbol, profundidad+1);\n\t\t\t\taux_modificar_arbol=arbol.size()-1;\n\t\t\t\tif(!arbol.get(aux_modificar_arbol).equals(\"\")){\n\t\t\t\t\tarbol.add(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\tarbol.remove(aux_modificar_arbol);\n\t\t\t\t\tarbol.remove(aux_modificar_arbol-1);\n\t\t\t\t\tarbol.remove(aux_modificar_arbol-2);\n\t\t\t\t}\n\t\t\t}\n\t\t\tultima_columna=columna.size()-1;\n\t\t\tcolumna.remove(ultima_columna);\n\t\t\t//arbol.add(\"#\");\n\t\t\tif(!valores.isEmpty()){\n\t\t\t\tultimo_valor=valores.size()-1;\n\t\t\t\tvalores.remove(ultimo_valor);\n\t\t\t}\n\t\t}else{\n\t\t\tultimo_valor=valores.size()-1;\n\t\t\tvalores.remove(ultimo_valor);\n\t\t\tif(!nodo.get(2).equals(\"\")){\n\t\t\t\tarbol.add(nodo.get(2));\n\t\t\t\tSystem.out.println(\"\\nEs un nodo hoja con valor \"+nodo.get(2)+\"\\n\");\n\t\t\t}\n\t\t\tif(nodo.get(3).toString().equals(\"0\")){\n\t\t\t\tultimo_valor=arbol.size()-1;\n\t\t\t\tarbol.remove(ultimo_valor);\n\t\t\t\tarbol.add(\"\");\n\t\t\t}\n\t\t}\n\t\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 }", "Proof contraConvert(Proof p) {\n Expression a = ((Implication) p.lastExpr()).statement;\n Expression b = ((Implication) p.lastExpr()).consequence;\n return mpBack(contra(a, b), p);\n }", "public void reversarComprobanteContabilidad() {\r\n String ide_cnccc = ser_comprobante.reversarComprobante(tab_tabla1.getValorSeleccionado(), null);\r\n if (guardarPantalla().isEmpty()) {\r\n utilitario.agregarMensaje(\"Se genero el Comprobante Num: \", ide_cnccc);\r\n }\r\n }", "private int checkerboardToState(int[][] paraCheckerboard) {\n\t\tint resultState = 0;\n\t\tint tempExponential = 1;\n\t\tfor (int i = 0; i < SIZE; i++) {\n\t\t\tfor (int j = 0; j < SIZE; j++) {\n\t\t\t\tresultState += paraCheckerboard[i][j] * tempExponential;\n\t\t\t\ttempExponential *= SIZE;\n\t\t\t} // Of for j\n\t\t} // Of for i\n\n\t\treturn resultState;\n\t}", "void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }", "public Matrix transpose(){\r\n \tMatrix tmat = new Matrix(this.ncol, this.nrow);\r\n \tdouble[][] tarray = tmat.getArrayReference();\r\n \tfor(int i=0; i<this.ncol; i++){\r\n \t\tfor(int j=0; j<this.nrow; j++){\r\n \t\ttarray[i][j]=this.matrix[j][i];\r\n \t\t}\r\n \t}\r\n \treturn tmat;\r\n \t}", "public Nodo espaciosJustos(Nodo nodo){\n System.out.println(\"----------------inicio heuristica espaciosJustos--------------\");\n Operadores operadores = new Operadores();\n //variables de matriz\n int numFilas,numColumnas,numColores;\n \n numColumnas = nodo.getnColumnas();\n numFilas = nodo.getnFilas();\n numColores = nodo.getnColores();\n \n String [][] matriz = new String [numFilas][numColumnas];\n matriz = operadores.clonarMatriz(nodo.getMatriz());\n //-------------------\n \n //variables de filas y columnas\n ArrayList<ArrayListColumna> columnas = new ArrayList<ArrayListColumna>();\n columnas = (ArrayList<ArrayListColumna>)nodo.getColumnas();\n \n ArrayList<ArrayListFila> filas = new ArrayList<ArrayListFila>();\n filas = (ArrayList<ArrayListFila>)nodo.getFilas();\n //---------------------------\n \n ArrayListFila auxListFila = new ArrayListFila();\n ArrayListColumna auxListColumna = new ArrayListColumna();\n \n int cambio=1;\n int changue=0;\n while(cambio!=0){\n cambio=0;\n \n nodo.setCambio(0);\n for(int i=0;i<numFilas;i++){\n auxListFila = (ArrayListFila)filas.get(i);\n for(int j=0;j<numColores;j++){\n Color auxColor = new Color();\n auxColor = auxListFila.getColor(j);\n\n if(auxColor.getNumero() > 0){\n int contador=0;\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n contador++;\n }\n }\n }\n }\n \n if(auxColor.getNumero() == contador){\n changue=1;\n cambio=1;\n auxColor.setNumero(0);\n for(int c=0;c<numColumnas;c++){\n auxListColumna=(ArrayListColumna)columnas.get(c);\n\n for(int j1=0;j1<numColores;j1++){\n Color auxColor1 = new Color();\n auxColor1 = auxListColumna.getColor(j1);\n if(auxColor1.getNumero() > 0){\n if(auxColor.getColor().equals(auxColor1.getColor()) && operadores.isPosicionVaciaFila(nodo.getMatriz(), i, c)){\n \n auxColor1.setNumero(auxColor1.getNumero()-1);\n\n matriz = operadores.pintarPosicion(matriz, i, c, auxColor.getColor());\n\n nodo.setMatriz(matriz);\n }\n }\n }\n }\n System.out.println(\"-----\");\n operadores.imprimirMatriz(nodo.getMatriz());\n System.out.println(\"-----\");\n \n \n }\n }\n }\n }\n \n }\n if(changue==1) nodo.setCambio(1);\n System.out.println(\"----------------fin heuristica espaciosJustos-------------- \");\n return (Nodo)nodo;\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 }", "private void colidiuBloco(Bloco[] linhaBloco) {\n\n\t\tfor (int i = 0; i < blocoArray; i++) {\n\t\t\tif (linhaBloco[i].bateu(bola)) {\n\t\t\t\tbola.invertVertical();\n\t\t\t\tscore = score + 100;\n\t\t\t} // fecha if\n\t\t} // fecha for\n\n\t}", "void solveBooleanFunction() \r\n {\r\n// throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n /* it covers all the cases of eight pair row wise */ \r\n if(checkRowForOctPair(0,3)==true)\r\n {\r\n booleanEquationForRow(0,3);\r\n System.out.print(\"+\"); \r\n }\r\n for(int i=0;i<3;i++)\r\n {\r\n if(checkRowForOctPair(i,i+1)==true)\r\n {\r\n booleanEquationForRow(i,i+1);\r\n System.out.print(\"+\"); \r\n }\r\n }\r\n /* it covers all the cases of eight pair by coloumn wise */\r\n if(checkColoumnForOctPair(0,3)==true)\r\n {\r\n booleanEquationForColoumn(0,3);\r\n System.out.print(\"+\");\r\n }\r\n for(int i=0;i<3;i++)\r\n {\r\n if(checkColoumnForOctPair(i,i+1)==true)\r\n {\r\n booleanEquationForColoumn(i,i+1);\r\n System.out.print(\"+\"); \r\n }\r\n }\r\n /* it covers four pair case row wise */ \r\n for(int i=0;i<4;i++)\r\n {\r\n if(checkRowForQuadPair(i)==true)\r\n {\r\n giveBooleanFunctionForSingleRow(i);\r\n \r\n System.out.print(\"+\"); \r\n }\r\n } \r\n /* it covers four pair case coloumn wise */ \r\n for(int j=0;j<4;j++)\r\n {\r\n if(checkColoumnForQuadPair(j)==true)\r\n {\r\n giveBooleanFunctionForSingleColoumn(j);\r\n System.out.print(\"+\");\r\n }\r\n }\r\n /* its check a box of four 1's */ \r\n for(int i=0;i<4;i++)\r\n {\r\n for(int j=0;j<4;j++)\r\n {\r\n if(Kmap[i][j]==1)\r\n {\r\n /*increament and decreament row inde and coloumn index in rotating manner using modulo architecture */\r\n int rowInc=(i+1)%4;\r\n int rowDec=(i-1+4)%4;\r\n int coloumnInc=(j+1)%4;\r\n int coloumnDec=(j-1+4)%4;\r\n /*check four 1's block clockwise down */\r\n if(Kmap[i][j]==1 && (Kmap[i][coloumnInc]==1 || Kmap[i][coloumnInc]==-1) && (Kmap[rowInc][coloumnInc]==1 || Kmap[rowInc][coloumnInc]==-1) && (Kmap[rowInc][j]==1 || Kmap[rowInc][j]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[i][coloumnInc]=-1;\r\n Kmap[rowInc][coloumnInc]=-1;\r\n Kmap[rowInc][j]=-1;\r\n booleanEquationForRow(i,rowInc);\r\n booleanEquationForColoumn(j,coloumnInc);\r\n System.out.print(\"+\"); \r\n }\r\n /*check four 1's block anticlockwise down */\r\n else if(Kmap[i][j]==1 && (Kmap[i][coloumnDec]==1 || Kmap[i][coloumnDec]==-1) && (Kmap[rowInc][coloumnDec]==1 || Kmap[rowInc][coloumnDec]==-1) && (Kmap[rowInc][j]==1 || Kmap[rowInc][j]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[i][coloumnDec]=-1;\r\n Kmap[rowInc][coloumnDec]=-1;\r\n Kmap[rowInc][j]=-1;\r\n booleanEquationForRow(i,rowInc);\r\n booleanEquationForColoumn(j,coloumnDec);\r\n System.out.print(\"+\"); \r\n }\r\n /*check four 1's block anticlockwise up */\r\n else if(Kmap[i][j]==1 && (Kmap[i][coloumnInc]==1 || Kmap[i][coloumnInc]==-1) && (Kmap[rowDec][coloumnInc]==1 || Kmap[rowDec][coloumnInc]==-1) && (Kmap[rowDec][j]==1 || Kmap[rowDec][j]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[i][coloumnInc]=-1;\r\n Kmap[rowDec][coloumnInc]=-1;\r\n Kmap[rowDec][j]=-1;\r\n booleanEquationForRow(i,rowDec);\r\n booleanEquationForColoumn(j,coloumnInc);\r\n System.out.print(\"+\"); \r\n }\r\n /*check four 1's block clockwise up */\r\n /*it will cover four corner case also */\r\n else if(Kmap[i][j]==1 && (Kmap[i][coloumnDec]==1 || Kmap[i][coloumnDec]==-1) && (Kmap[rowDec][coloumnDec]==1 || Kmap[rowDec][coloumnDec]==-1) && (Kmap[rowDec][j]==1 || Kmap[rowDec][j]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[i][coloumnDec]=-1;\r\n Kmap[rowDec][coloumnDec]=-1;\r\n Kmap[rowDec][j]=-1;\r\n booleanEquationForRow(i,rowDec);\r\n booleanEquationForColoumn(j,coloumnDec);\r\n System.out.print(\"+\"); \r\n }\r\n }\r\n }\r\n }\r\n /* its check of two 1's pair for rows and coloumns*/ \r\n for(int i=0;i<4;i++)\r\n {\r\n for(int j=0;j<4;j++)\r\n {\r\n if(Kmap[i][j]==1)\r\n {\r\n /*increament and decreament row inde and coloumn index in rotating manner using modulo architecture */\r\n int rowInc=(i+1)%4;\r\n int rowDec=(i-1+4)%4;\r\n int coloumnInc=(j+1)%4;\r\n int coloumnDec=(j-1+4)%4;\r\n /*check four 1's block clockwise down */\r\n if(Kmap[i][j]==1 && (Kmap[i][coloumnInc]==1 || Kmap[i][coloumnInc]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[i][coloumnInc]=-1;\r\n giveBooleanFunctionForSingleRow(i);\r\n booleanEquationForColoumn(j,coloumnInc);\r\n System.out.print(\"+\"); \r\n }\r\n /*check four 1's block anticlockwise down */\r\n else if(Kmap[i][j]==1 && (Kmap[i][coloumnDec]==1 || Kmap[i][coloumnDec]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[i][coloumnDec]=-1;\r\n giveBooleanFunctionForSingleRow(i);\r\n booleanEquationForColoumn(j,coloumnDec);\r\n System.out.print(\"+\"); \r\n }\r\n /*check four 1's block anticlockwise up */\r\n else if(Kmap[i][j]==1 && (Kmap[rowInc][j]==1 || Kmap[rowInc][j]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[rowInc][j]=-1;\r\n booleanEquationForRow(i,rowInc);\r\n giveBooleanFunctionForSingleColoumn(j);\r\n System.out.print(\"+\"); \r\n }\r\n /*check four 1's block clockwise up */\r\n /*it will cover four corner case also */\r\n else if(Kmap[i][j]==1 && (Kmap[rowDec][j]==1 || Kmap[rowDec][j]==-1))\r\n {\r\n Kmap[i][j]=-1;\r\n Kmap[rowDec][j]=-1;\r\n booleanEquationForRow(i,rowDec);\r\n giveBooleanFunctionForSingleColoumn(j);\r\n System.out.print(\"+\"); \r\n }\r\n }\r\n }\r\n }\r\n \r\n /*it covers remaining single one's */\r\n for(int i=0;i<4;i++)\r\n {\r\n for(int j=0;j<4;j++)\r\n {\r\n if(Kmap[i][j]==1)\r\n {\r\n Kmap[i][j]=-1;\r\n giveBooleanFunctionForSingleRow(i);\r\n giveBooleanFunctionForSingleColoumn(j);\r\n System.out.print(\"+\");\r\n }\r\n }\r\n }\r\n }", "public VariableUnit solve() {\n LinkedList<VariableUnit> processor = new LinkedList<VariableUnit>();\n\n VariableUnit vu1 = new VariableUnit(250.0, 'x');\n VariableUnit vu2 = new VariableUnit('+');\n VariableUnit vu3 = new VariableUnit(250.0, 'x');\n VariableUnit vu4 = new VariableUnit(501.0, 'x');\n VariableUnit vu5 = new VariableUnit('y');\n VariableUnit vu6 = new VariableUnit('-');\n alpha_arr.get(('x' - 'a')).addLast(vu1);\n alpha_arr.get(('x' - 'a')).addLast(vu2);\n alpha_arr.get(('x' - 'a')).addLast(vu3);\n op_order.add(vu1); op_order.add(vu2); op_order.add(vu3); op_order.add(vu6);\n op_order.add(vu4); op_order.add(vu6); op_order.add(vu5);\n assignValue(2.0, 'x');\n \n System.out.print(vu1); System.out.print(vu2); System.out.print(vu3);\n System.out.print(vu6); System.out.print(vu4); System.out.print(vu6);\n System.out.print(vu5);\n System.out.println();\n System.out.println(\"------------------------------\");\n \n VariableUnit temp, temp1;\n for (int i = 0; i < op_order.size(); i++) {\n \ttemp = op_order.pollFirst();\n \t\n \t\tswitch (temp.getVariable()) {\n \tcase '+':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().add(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tcase '-':\n \t\t//if processor.isEmpty(): throw an exception\n \t\ttemp1 = processor.pop().subtract(op_order.pollFirst());\n \t\tprocessor.push(temp1);\n \t\tbreak;\n \tdefault:\n \t\tprocessor.push(temp);\n \t\t}\n }\n\n /*\n * System.out.println(\"This equation is currently unsolvable.\");\n \tSystem.out.println(\"Try assigning values to some of the variables.\");\n */\n while (!processor.isEmpty()) {\n \top_order.addFirst(processor.pop());\n }\n \n ListIterator<VariableUnit> iter = op_order.listIterator();\n \n while ( iter.hasNext() ) {\n \tVariableUnit iter_temp = iter.next();\n \t//System.out.print(iter_temp.hasValue());\n \tif (iter_temp.hasValue()) {\n \t\tSystem.out.print( Double.toString(iter_temp.subValue()) );\n \t}\n \telse {\n \t\tSystem.out.print(iter_temp);\n \t}\n };\n System.out.println();\n \n return new VariableUnit(Double.NaN, ' ');\n }" ]
[ "0.60607034", "0.58427566", "0.5653219", "0.55344117", "0.549915", "0.54401046", "0.52785325", "0.52733165", "0.5220596", "0.51700246", "0.5165286", "0.5129374", "0.51277375", "0.5127247", "0.5119001", "0.50935066", "0.5072861", "0.5070598", "0.5057713", "0.503858", "0.49421015", "0.49307317", "0.49029425", "0.48954117", "0.4894946", "0.48773783", "0.48736703", "0.48545566", "0.4832402", "0.47987676", "0.47909963", "0.47883278", "0.47847912", "0.47837615", "0.47736612", "0.47683358", "0.4760758", "0.4756851", "0.47514448", "0.47418022", "0.47400612", "0.47388837", "0.4737189", "0.47353396", "0.47334692", "0.47307992", "0.47268137", "0.4722429", "0.472215", "0.47219208", "0.47116244", "0.47114635", "0.47097662", "0.47033042", "0.47028446", "0.46937516", "0.4693422", "0.4680066", "0.46770298", "0.46759766", "0.46752506", "0.46743095", "0.46670207", "0.46501467", "0.46442917", "0.46432152", "0.46431428", "0.46430573", "0.46417564", "0.46414852", "0.4639098", "0.4630427", "0.4626803", "0.4623376", "0.46219075", "0.46168685", "0.46093687", "0.46084714", "0.46010268", "0.4599669", "0.4594824", "0.45938474", "0.45851353", "0.45847532", "0.45799", "0.4577997", "0.45769218", "0.45762837", "0.4576255", "0.45697075", "0.4568088", "0.4567237", "0.4566792", "0.4564932", "0.4561928", "0.4561672", "0.45524544", "0.45510754", "0.45457527", "0.45325875" ]
0.68522143
0